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

takeshi at macports.org takeshi at macports.org
Wed Nov 21 20:26:50 PST 2012


Revision: 99949
          https://trac.macports.org/changeset/99949
Author:   takeshi at macports.org
Date:     2012-11-21 20:26:50 -0800 (Wed, 21 Nov 2012)
Log Message:
-----------
plplot: clean up Portfile using PortGroup cmake, closing #37034

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

Modified: trunk/dports/science/plplot/Portfile
===================================================================
--- trunk/dports/science/plplot/Portfile	2012-11-22 01:58:56 UTC (rev 99948)
+++ trunk/dports/science/plplot/Portfile	2012-11-22 04:26:50 UTC (rev 99949)
@@ -2,10 +2,11 @@
 # $Id$
 
 PortSystem      1.0
+PortGroup       cmake 1.0
 
 name            plplot
 version         5.9.9
-revision        7
+revision        8
 platforms       darwin
 maintainers     takeshi openmaintainer
 categories      science
@@ -23,8 +24,7 @@
     and device drivers which control how the plots are presented       \
     in non-interactive and interactive plotting contexts.
 
-depends_build   port:cmake \
-                path:bin/pkg-config:pkgconfig
+depends_build   path:bin/pkg-config:pkgconfig
 depends_lib     port:expat \
                 port:qhull \
                 port:fontconfig \
@@ -52,18 +52,8 @@
     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 \
+configure.args          -DTCL_INCLUDE_PATH=${prefix}/include \
                         -DTCL_LIBRARY=${prefix}/lib/libtcl.dylib \
                         -DTK_INCLUDE_PATH=${prefix}/include \
                         -DTK_LIBRARY=${prefix}/lib/libtk.dylib \
@@ -107,15 +97,7 @@
                         -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 {
@@ -127,8 +109,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: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20121121/66946153/attachment.html>


More information about the macports-changes mailing list