[99965] trunk/dports/science/plplot/Portfile
takeshi at macports.org
takeshi at macports.org
Thu Nov 22 21:18:38 PST 2012
Revision: 99965
https://trac.macports.org/changeset/99965
Author: takeshi at macports.org
Date: 2012-11-22 21:18:38 -0800 (Thu, 22 Nov 2012)
Log Message:
-----------
plplot: revert to r99948 since PortGroup cmake does not allow to set CMAKE_OSX_ARCHITECTURES manually.
Revision Links:
--------------
https://trac.macports.org/changeset/99948
Modified Paths:
--------------
trunk/dports/science/plplot/Portfile
Modified: trunk/dports/science/plplot/Portfile
===================================================================
--- trunk/dports/science/plplot/Portfile 2012-11-23 03:55:44 UTC (rev 99964)
+++ trunk/dports/science/plplot/Portfile 2012-11-23 05:18:38 UTC (rev 99965)
@@ -2,11 +2,10 @@
# $Id$
PortSystem 1.0
-PortGroup cmake 1.0
name plplot
version 5.9.9
-revision 8
+revision 9
platforms darwin
maintainers takeshi openmaintainer
categories science
@@ -24,7 +23,7 @@
and device drivers which control how the plots are presented \
in non-interactive and interactive plotting contexts.
-depends_build-append \
+depends_build port:cmake \
path:bin/pkg-config:pkgconfig
depends_lib port:expat \
port:qhull \
@@ -45,8 +44,26 @@
reinplace "s|-framework AquaTerm|-F${frameworks_dir} -framework AquaTerm|" ${worksrcpath}/cmake/modules/aqt.cmake
}
+if {[variant_isset universal]} {
+ set cflags "${configure.cppflags} ${configure.cflags} ${configure.universal_cflags}"
+ set cxxflags "${configure.cppflags} ${configure.cxxflags} ${configure.universal_cxxflags}"
+} else {
+ set cflags "${configure.cppflags} ${configure.cflags}"
+ set cxxflags "${configure.cppflags} ${configure.cxxflags}"
+}
+
+configure.dir ${workpath}/build
+configure.cmd cmake
configure.env HOME=${workpath}
-configure.args -DTCL_INCLUDE_PATH=${prefix}/include \
+configure.pre_args -DCMAKE_INSTALL_PREFIX=${prefix}
+configure.args -DCMAKE_VERBOSE_MAKEFILE=ON \
+ -DCMAKE_C_COMPILER=${configure.cc} \
+ -DCMAKE_C_FLAGS=\"${cflags}\" \
+ -DCMAKE_CXX_COMPILER=${configure.cxx} \
+ -DCMAKE_CXX_FLAGS=\"${cxxflags}\" \
+ -DCMAKE_INCLUDE_PATH=${prefix}/include \
+ -DCMAKE_LIBRARY_PATH=${prefix}/lib \
+ -DTCL_INCLUDE_PATH=${prefix}/include \
-DTCL_LIBRARY=${prefix}/lib/libtcl.dylib \
-DTK_INCLUDE_PATH=${prefix}/include \
-DTK_LIBRARY=${prefix}/lib/libtk.dylib \
@@ -90,7 +107,15 @@
-DBUILD_TEST=OFF \
-DHAVE_AGG=OFF \
-DSWIG_DIR=${prefix}/bin
+configure.post_args ../${distname}
+pre-configure {
+ file mkdir ${workpath}/build
+# if {[file exists ${prefix}/lib/libplplotd.dylib]} {
+# return -code error "Before upgrading plplot, please uninstall (or deactivate) the old version of plplot."
+# }
+}
+
if {[variant_isset universal]} {
configure.args-append -DCMAKE_OSX_ARCHITECTURES=\"[strsed ${configure.universal_archs} "g| |;|"]\" -DENABLE_f77:BOOL=OFF -DENABLE_f95:BOOL=OFF
} else {
@@ -102,6 +127,8 @@
}
}
+build.dir ${workpath}/build
+
pre-destroot {
set mods "${workpath}/build/bindings/f95/plplot.mod
${workpath}/build/bindings/f95/plplotp.mod
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20121122/a3d2315e/attachment-0001.html>
More information about the macports-changes
mailing list