[51258] trunk/dports/devel/cableswig/Portfile
dweber at macports.org
dweber at macports.org
Thu May 21 15:35:28 PDT 2009
Revision: 51258
http://trac.macports.org/changeset/51258
Author: dweber at macports.org
Date: 2009-05-21 15:35:27 -0700 (Thu, 21 May 2009)
Log Message:
-----------
Upstream fix for SWIGlib install path in cvs; now using the cvs date 20090521 to get the upstream fix; this port likely to remain a cvs checkout for some time, but check the www.itk.org web site for potential updates, especially a 'stable' release.
Modified Paths:
--------------
trunk/dports/devel/cableswig/Portfile
Modified: trunk/dports/devel/cableswig/Portfile
===================================================================
--- trunk/dports/devel/cableswig/Portfile 2009-05-21 21:53:32 UTC (rev 51257)
+++ trunk/dports/devel/cableswig/Portfile 2009-05-21 22:35:27 UTC (rev 51258)
@@ -4,7 +4,7 @@
PortSystem 1.0
name cableswig
-version 20090514
+version 20090521
# CableSwig is only available from cvs and there are no release tags, using date
# of cvs checkout for the version number.
@@ -22,17 +22,16 @@
fetch.type cvs
cvs.root :pserver:anonymous at public.kitware.com:/cvsroot/CableSwig
cvs.module CableSwig
-cvs.date "14-May-2009"
+cvs.date "21-May-2009"
post-extract {
move ${workpath}/CableSwig ${worksrcpath}
}
depends_build port:cmake \
- port:byacc \
+ port:gmake \
port:bison \
port:gawk
-depends_lib port:gccxml
# Use gmake and build in a separate directory from the source
build.type gnu
@@ -43,21 +42,37 @@
system "cd ${build.dir} && cmake ${configure.args} ${worksrcpath}"
}
-configure.args \
- -DCMAKE_OSX_SYSROOT=${universal_sysroot} \
+configure.args-append \
+ -DBISON_YACC:FILEPATH=${prefix}/bin/bison \
-DCMAKE_BUILD_TYPE:STRING=Release \
- -DBUILD_SHARED_LIBS:BOOL=ON \
- -DCMAKE_BUILD_WITH_INSTALL_RPATH:BOOL=ON \
- -DCMAKE_INSTALL_RPATH:STRING=${prefix}/lib/cableswig \
-DCMAKE_INSTALL_PREFIX:PATH=${prefix} \
- -DCMAKE_INCLUDE_PATH:PATH=${prefix}/include \
- -DCMAKE_LIBRARY_PATH:PATH=${prefix}/lib \
+ -DCMAKE_OSX_SYSROOT=${universal_sysroot} \
+ -DCMAKE_SKIP_RPATH:BOOL=OFF \
-DCMAKE_VERBOSE_MAKEFILE:BOOL=ON \
- -DCSWIG_USE_SYSTEM_GCCXML:BOOL=ON
+ -DCSWIG_USE_SYSTEM_GCCXML:BOOL=OFF \
+ -DSWIG_BUILD_EXAMPLES:BOOL=OFF \
+ -DBUILD_TESTING:BOOL=OFF
-#post-destroot {
-# xinstall -d ${destroot}${docdir}
-# xinstall -m 0644 -W ${worksrcpath} ANNOUNCE CHANGES FUTURE LICENSE NEW README \
-# TODO ${destroot}${docdir}
-#}
+variant examples description "provide examples" {
+ configure.args-delete \
+ -DSWIG_BUILD_EXAMPLES:BOOL=OFF
+ configure.args-append \
+ -DSWIG_BUILD_EXAMPLES:BOOL=ON
+}
+variant testing description "provide testing" {
+ configure.args-delete \
+ -DBUILD_TESTING:BOOL=OFF
+ configure.args-append \
+ -DBUILD_TESTING:BOOL=ON
+}
+
+variant gccxml description "use port:gccxml" {
+ depends_lib-append \
+ port:gccxml
+ configure.args-delete \
+ -DCSWIG_USE_SYSTEM_GCCXML:BOOL=OFF
+ configure.args-append \
+ -DCSWIG_USE_SYSTEM_GCCXML:BOOL=ON
+}
+
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090521/e70b7f28/attachment.html>
More information about the macports-changes
mailing list