[136207] trunk/dports/devel/cableswig/Portfile
larryv at macports.org
larryv at macports.org
Mon May 11 16:48:21 PDT 2015
Revision: 136207
https://trac.macports.org/changeset/136207
Author: larryv at macports.org
Date: 2015-05-11 16:48:21 -0700 (Mon, 11 May 2015)
Log Message:
-----------
cableswig: Use cmake-1.0
This appears to fix #39361. Unintentional, but I'll take it.
Modified Paths:
--------------
trunk/dports/devel/cableswig/Portfile
Modified: trunk/dports/devel/cableswig/Portfile
===================================================================
--- trunk/dports/devel/cableswig/Portfile 2015-05-11 23:48:18 UTC (rev 136206)
+++ trunk/dports/devel/cableswig/Portfile 2015-05-11 23:48:21 UTC (rev 136207)
@@ -2,6 +2,7 @@
# $Id$
PortSystem 1.0
+PortGroup cmake 1.0
name cableswig
version 20090521
@@ -31,8 +32,7 @@
supported.
homepage http://www.itk.org/ITK/resources/CableSwig.html
-depends_build port:bison \
- port:cmake \
+depends_build-append port:bison \
port:gawk \
port:gmake
@@ -45,29 +45,16 @@
move ${workpath}/CableSwig ${worksrcpath}
}
-# Use gmake and build in a separate directory from the source
-build.type gnu
-build.dir ${workpath}/cableswig-build
+cmake.out_of_source yes
-configure {
- xinstall -d -m 755 ${build.dir}
- system "cd ${build.dir} && cmake ${configure.args} ${worksrcpath}"
-}
+configure.args-append -DBISON_YACC:FILEPATH=${prefix}/bin/bison \
+ -DBUILD_TESTING:BOOL=OFF \
+ -DCMAKE_SKIP_RPATH:BOOL=OFF \
+ -DCSWIG_USE_SYSTEM_GCCXML:BOOL=OFF \
+ -DSWIG_BUILD_EXAMPLES:BOOL=OFF
-configure.args-append \
- -DBISON_YACC:FILEPATH=${prefix}/bin/bison \
- -DBUILD_TESTING:BOOL=OFF \
- -DCMAKE_BUILD_TYPE:STRING=Release \
- -DCMAKE_INSTALL_PREFIX:PATH=${prefix} \
- -DCMAKE_SKIP_RPATH:BOOL=OFF \
- -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON \
- -DCSWIG_USE_SYSTEM_GCCXML:BOOL=OFF \
- -DSWIG_BUILD_EXAMPLES:BOOL=OFF
+build.type gnu
-if {[info exists universal_sysroot]} {
- configure.args-append -DCMAKE_OSX_SYSROOT=${universal_sysroot}
-}
-
variant examples description "Provide examples" {
configure.args-replace -DSWIG_BUILD_EXAMPLES:BOOL=OFF \
-DSWIG_BUILD_EXAMPLES:BOOL=ON
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20150511/f69383b4/attachment.html>
More information about the macports-changes
mailing list