Ticket #17984: wbxml-to-libwbxml-upgrade.path

File wbxml-to-libwbxml-upgrade.path, 2.0 KB (added by brunofr@…, 16 years ago)

This patch upgrades to the latest version of wbxml2 (now called libwbxml)

Line 
1--- Portfile.orig       2009-01-13 18:26:07.000000000 +0000
2+++ Portfile    2009-01-13 19:37:28.000000000 +0000
3@@ -1,29 +1,44 @@
4 # $Id: Portfile 28571 2007-09-03 20:57:11Z mww@macports.org $
5 PortSystem        1.0
6-name              wbxml2
7-version           0.9.0
8+name              libwbxml
9+version           0.10.1
10 categories        textproc devel
11 maintainers       glasser@mit.edu
12 description       converts between XML and Wireless Binary XML (WBXML)
13 long_description  ${description}
14-homepage          http://libwbxml.aymerick.com/
15+homepage          http://libwbxml.opensync.org/
16 
17 master_sites      sourceforge
18-master_sites.mirror_subdir wbxmllib
19+master_sites.mirror_subdir libwbxml
20 
21-distfiles  ${name}-${version}-src.tar.gz
22-checksums md5 3f9b5bf104ec523b8eebe69f93919ded
23+distfiles  ${name}-${version}.tar.gz
24+checksums md5 10d65c41ac70d970009c5400d7732828
25 
26 depends_lib lib:libexpat:expat bin:glibtoolize:libtool
27+depends_build       port:cmake
28 
29-use_automake yes
30-automake.args --add-missing
31-
32-use_autoconf yes
33+use_parallel_build  yes
34+worksrcdir          build
35+pre-configure       { file mkdir ${worksrcpath} }
36+
37+configure.cmd       cmake
38+configure.ccache    no
39+configure.args  ../${distname} -DBUILD_SHARED_LIBS=ON \
40+                -DCMAKE_VERBOSE_MAKEFILE=ON \
41+                -DCMAKE_BUILD_TYPE=Release \
42+                -DCMAKE_SYSTEM_PREFIX_PATH=\"${prefix}\;/usr\" \
43+                -DCMAKE_INSTALL_PREFIX=${prefix} \
44+                -DCMAKE_INSTALL_NAME_DIR=${prefix}/lib \
45+                -DCMAKE_OSX_SYSROOT=${universal_sysroot} \
46+                -Wno-dev
47+
48+variant universal {
49+    configure.universal_args-delete  --disable-dependency-tracking
50+    configure.args-append       -DCMAKE_OSX_ARCHITECTURES=\"[strsed ${configure.
51+universal_archs} "g| |;|"]\"
52+}
53 
54-pre-configure {
55-    cd ${worksrcpath}
56-    system "glibtoolize"
57-    system "aclocal"
58-    system "autoheader"
59+variant debug description "Enable debug binaries" {
60+        configure.args-delete   -DCMAKE_BUILD_TYPE=Release
61+        configure.args-append   -DCMAKE_BUILD_TYPE=debugFull
62 }