Ticket #17984: wbxml2-0.10.1.patch

File wbxml2-0.10.1.patch, 2.1 KB (added by brunofr@…, 16 years ago)

Patch to move to libwbxml 0.10.1 (introduces cmake and preserves wbxml2 as port name).

  • Portfile

    old new  
    11# $Id: Portfile 28571 2007-09-03 20:57:11Z mww@macports.org $
    22PortSystem        1.0
    33name              wbxml2
    4 version           0.9.0
     4version           0.10.1
    55categories        textproc devel
    66maintainers       glasser@mit.edu
    77description       converts between XML and Wireless Binary XML (WBXML)
    88long_description  ${description}
    9 homepage          http://libwbxml.aymerick.com/
     9homepage          http://libwbxml.opensync.org/
    1010
    1111master_sites      sourceforge
    12 master_sites.mirror_subdir wbxmllib
     12master_sites.mirror_subdir libwbxml
    1313
    14 distfiles  ${name}-${version}-src.tar.gz
    15 checksums md5 3f9b5bf104ec523b8eebe69f93919ded
     14distfiles  libwbxml-${version}.tar.gz
     15checksums md5 10d65c41ac70d970009c5400d7732828
    1616
    17 depends_lib lib:libexpat:expat bin:glibtoolize:libtool
     17depends_lib lib:libexpat:expat
     18depends_build       port:cmake
    1819
    19 use_automake yes
    20 automake.args --add-missing
    21 
    22 use_autoconf yes
     20use_parallel_build  yes
     21worksrcdir          build
     22pre-configure       { file mkdir ${worksrcpath} }
     23
     24configure.cmd       cmake
     25configure.ccache    no
     26configure.args  ../libwbxml-${version} -DBUILD_SHARED_LIBS=ON \
     27                -DCMAKE_VERBOSE_MAKEFILE=ON \
     28                -DCMAKE_BUILD_TYPE=Release \
     29                -DCMAKE_SYSTEM_PREFIX_PATH=\"${prefix}\;/usr\" \
     30                -DCMAKE_INSTALL_PREFIX=${prefix} \
     31                -DCMAKE_INSTALL_NAME_DIR=${prefix}/lib \
     32                -DCMAKE_OSX_SYSROOT=${universal_sysroot} \
     33                -Wno-dev
     34
     35variant universal {
     36    configure.universal_args-delete  --disable-dependency-tracking
     37    configure.args-append       -DCMAKE_OSX_ARCHITECTURES=\"[strsed ${configure.
     38universal_archs} "g| |;|"]\"
     39}
    2340
    24 pre-configure {
    25     cd ${worksrcpath}
    26     system "glibtoolize"
    27     system "aclocal"
    28     system "autoheader"
     41variant debug description "Enable debug binaries" {
     42        configure.args-delete   -DCMAKE_BUILD_TYPE=Release
     43        configure.args-append   -DCMAKE_BUILD_TYPE=debugFull
    2944}