[122340] trunk/dports/science/magicspp/Portfile

takeshi at macports.org takeshi at macports.org
Mon Jul 21 01:58:05 PDT 2014


Revision: 122340
          https://trac.macports.org/changeset/122340
Author:   takeshi at macports.org
Date:     2014-07-21 01:58:05 -0700 (Mon, 21 Jul 2014)
Log Message:
-----------
magicspp: allow different versions of Perl

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

Modified: trunk/dports/science/magicspp/Portfile
===================================================================
--- trunk/dports/science/magicspp/Portfile	2014-07-21 07:45:03 UTC (rev 122339)
+++ trunk/dports/science/magicspp/Portfile	2014-07-21 08:58:05 UTC (rev 122340)
@@ -4,7 +4,10 @@
 PortSystem          1.0
 PortGroup cmake     1.0
 PortGroup compilers 1.0
+PortGroup perl5     1.0
 
+perl5.branches      5.8 5.10 5.12 5.16
+
 name                magicspp
 version             2.22.6
 revision            1
@@ -42,7 +45,7 @@
                     port:mesa \
                     port:xorg-libXau \
                     port:xorg-libXdmcp \
-                    port:p5.12-xml-parser \
+                    port:p${perl5.major}-xml-parser \
                     port:gd2 \
                     path:lib/pkgconfig/pango.pc:pango \
                     port:ghostscript \
@@ -61,6 +64,7 @@
     default_variants-append +python27
 }
 
+use_configure           yes
 configure.cmd           cmake
 configure.dir           ${workpath}/build
 configure.args-append   -DBOOST_ROOT=${prefix} \
@@ -102,7 +106,7 @@
                         -DNETCDF_netcdfcpp.h_INCLUDE_DIR=${prefix}/include \
                         -DOPENJPEG_INCLUDE_DIR=${prefix}/include \
                         -DOPENJPEG_LIBRARY=${prefix}/lib/libopenjpeg.dylib \
-                        -DPERL_EXECUTABLE=${prefix}/bin/perl \
+                        -DPERL_EXECUTABLE=${perl5.bin} \
                         -DPKG_CONFIG_EXECUTABLE=${prefix}/bin/pkg-config \
                         -DPNG_LIBRARY_RELEASE=${prefix}/lib/libpng.dylib \
                         -DPNG_PNG_INCLUDE_DIR=${prefix}/include \
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140721/0dc47c60/attachment.html>


More information about the macports-changes mailing list