[140213] trunk/dports/science/plplot/Portfile

takeshi at macports.org takeshi at macports.org
Sat Sep 12 05:59:37 PDT 2015


Revision: 140213
          https://trac.macports.org/changeset/140213
Author:   takeshi at macports.org
Date:     2015-09-12 05:59:37 -0700 (Sat, 12 Sep 2015)
Log Message:
-----------
plplot: use cmake portgroup, closing #37034

Modified Paths:
--------------
    trunk/dports/science/plplot/Portfile

Modified: trunk/dports/science/plplot/Portfile
===================================================================
--- trunk/dports/science/plplot/Portfile	2015-09-12 01:08:09 UTC (rev 140212)
+++ trunk/dports/science/plplot/Portfile	2015-09-12 12:59:37 UTC (rev 140213)
@@ -2,6 +2,7 @@
 # $Id$
 
 PortSystem      1.0
+PortGroup       cmake     1.0
 PortGroup       compilers 1.0
 PortGroup       wxWidgets 1.0
 
@@ -25,19 +26,23 @@
 long_description    ${description_base} This port uses double precision.
 
 compilers.choose    fc f90
-compilers.setup
+compilers.setup     -dragonegg
 
-depends_build   port:cmake \
+depends_build-append \
                 port:pkgconfig
 depends_lib     port:qhull \
+                port:antigraingeometry \
                 port:fontconfig \
                 port:freefont-ttf \
                 port:freetype \
                 port:libtool \
                 port:libLASi \
                 port:swig-tcl \
+                port:shapelib \
                 port:tcl
 
+cmake.out_of_source yes
+
 patchfiles      patch-cmake-modules-pkg-config.cmake.diff
 
 post-patch {
@@ -54,27 +59,9 @@
 
 configure.cppflags-append   -DUSE_INTERP_RESULT \
                             -DTcl_Import_TCL_DECLARED
-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.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 \
+configure.args-append   -DTCL_LIBRARY=${prefix}/lib/libtcl.dylib \
                         -DFREETYPE_INCLUDE_DIR_ft2build=${prefix}/include/freetype2 \
                         -DFREETYPE_LIBRARIES=${prefix}/lib/libfreetype.dylib \
                         -DPL_FREETYPE_FONT_PATH=${prefix}/share/fonts/freefont-ttf \
@@ -83,6 +70,10 @@
                         -DWITH_FREETYPE=ON \
                         -DQHULL_INCLUDE_DIR=${prefix}/include \
                         -DQHULL_LIBRARIES=${prefix}/lib/libqhull.dylib \
+                        -DAGG_INCLUDE_DIRS=${prefix}/include/agg2 \
+                        -DAGG_LIBRARY=${prefix}/lib/libagg.dylib \
+                        -DSHAPELIB_INCLUDE_DIR=${prefix}/include \
+                        -DSHAPELIB_LIBRARY=${prefix}/lib/libshp.dylib \
                         -DPLD_aqt=OFF \
                         -DPLD_extcairo=ON \
                         -DPLD_memcairo=ON \
@@ -128,9 +119,9 @@
                         -DENABLE_tk=OFF \
                         -DENABLE_wxwidgets=OFF \
                         -DBUILD_TEST=OFF \
-                        -DHAVE_AGG=OFF \
+                        -DHAVE_SHAPELIB=ON \
+                        -DHAVE_AGG=ON \
                         -DSWIG_DIR=${prefix}/bin
-configure.post_args     ../${distname}
 
 pre-configure {
     file mkdir ${workpath}/build
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20150912/2e5304b6/attachment-0001.html>


More information about the macports-changes mailing list