[140230] trunk/dports/science/plplot510/Portfile

takeshi at macports.org takeshi at macports.org
Sat Sep 12 22:47:13 PDT 2015


Revision: 140230
          https://trac.macports.org/changeset/140230
Author:   takeshi at macports.org
Date:     2015-09-12 22:47:13 -0700 (Sat, 12 Sep 2015)
Log Message:
-----------
plplot510: use PortGroup cmake. add dependency to libharu

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

Modified: trunk/dports/science/plplot510/Portfile
===================================================================
--- trunk/dports/science/plplot510/Portfile	2015-09-13 05:24:32 UTC (rev 140229)
+++ trunk/dports/science/plplot510/Portfile	2015-09-13 05:47:13 UTC (rev 140230)
@@ -2,12 +2,13 @@
 # $Id$
 
 PortSystem      1.0
+PortGroup       cmake     1.0
 PortGroup       compilers 1.0
 PortGroup       wxWidgets 1.0
 
 name            plplot510
 version         5.10.0
-revision        3
+revision        4
 platforms       darwin
 maintainers     takeshi openmaintainer
 categories      science
@@ -28,15 +29,16 @@
 long_description    ${description_base} This port uses double precision.
 
 compilers.choose    fc f90
-compilers.setup
+compilers.setup     -dragonegg
 
 depends_build   port:cmake \
                 port:pkgconfig
 depends_lib     port:qhull \
+                port:antigraingeometry \
                 port:fontconfig \
                 port:freefont-ttf \
                 port:freetype \
-                port:libtool \
+                port:libharu \
                 port:libLASi \
                 port:swig-tcl \
                 port:tcl
@@ -56,34 +58,22 @@
     }
 }
 
+cmake.out_of_source yes
+
 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}/lib/${name}
-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 \
+configure.args-append   -DTCL_INCLUDE_PATH=${prefix}/include \
                         -DTCL_LIBRARY=${prefix}/lib/libtcl.dylib \
                         -DFREETYPE_INCLUDE_DIR=${prefix}/include/freetype2 \
                         -DFREETYPE_LIBRARY=${prefix}/lib/libfreetype.dylib \
                         -DPL_FREETYPE_FONT_PATH=${prefix}/share/fonts/freefont-ttf \
                         -DWITH_FREETYPE=ON \
                         -DQHULL_INCLUDE_DIR=${prefix}/include \
+                        -DQHULL_LIBRARIES=${prefix}/lib/libqhull.dylib \
+                        -DSHAPELIB_INCLUDE_DIR=${prefix}/include \
+                        -DSHAPELIB_LIBRARY=${prefix}/lib/libshp.dylib \
                         -DPLD_aqt=OFF \
                         -DPLD_extcairo=ON \
                         -DPLD_memcairo=ON \
@@ -128,10 +118,11 @@
                         -DENABLE_tcl=ON \
                         -DENABLE_tk=OFF \
                         -DENABLE_wxwidgets=OFF \
+                        -DENABLE_DYNDRIVERS=OFF \
                         -DBUILD_TEST=OFF \
-                        -DHAVE_AGG=OFF \
-                        -DSWIG_DIR=${prefix}/bin
-configure.post_args     ../${distname}
+                        -DHAVE_AGG=ON \
+                        -DSWIG_DIR=${prefix}/bin \
+                        -Dhpdf_INCLUDE_DIR=${prefix}/include
 
 pre-configure {
     file mkdir ${workpath}/build
@@ -148,8 +139,6 @@
     }
 }
 
-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: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20150912/703625df/attachment.html>


More information about the macports-changes mailing list