[54003] trunk/dports/math/gnudatalanguage/Portfile

takeshi at macports.org takeshi at macports.org
Sat Jul 18 06:15:33 PDT 2009


Revision: 54003
          http://trac.macports.org/changeset/54003
Author:   takeshi at macports.org
Date:     2009-07-18 06:15:32 -0700 (Sat, 18 Jul 2009)
Log Message:
-----------
gdl: enable builds with netcdf 4 and hdf 4

Modified Paths:
--------------
    trunk/dports/math/gnudatalanguage/Portfile

Modified: trunk/dports/math/gnudatalanguage/Portfile
===================================================================
--- trunk/dports/math/gnudatalanguage/Portfile	2009-07-18 13:00:16 UTC (rev 54002)
+++ trunk/dports/math/gnudatalanguage/Portfile	2009-07-18 13:15:32 UTC (rev 54003)
@@ -1,52 +1,45 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
 # $Id$
 
-PortSystem 1.0
+PortSystem                  1.0
 
-name            gnudatalanguage
-version         0.9rc2
-categories      math science
-maintainers     takeshi
-platforms       darwin
-description     a free IDL combatible incremental compiler
+name                        gnudatalanguage
+version                     0.9rc2
+revision                    1
+categories                  math science
+maintainers                 takeshi
+platforms                   darwin
+description                 a free IDL combatible incremental compiler
 long_description \
-                A free IDL (Interactive Data Language) compatible \
-                incremental compiler (ie. runs IDL programs).
-homepage        http://gnudatalanguage.sourceforge.net/
-master_sites    sourceforge
-distname        gdl-${version}
+    A free IDL (Interactive Data Language) compatible \
+    incremental compiler (ie. runs IDL programs).
+homepage                    http://gnudatalanguage.sourceforge.net/
+master_sites                sourceforge
+distname                    gdl-${version}
 
-checksums       md5    4ae52c19cdd6f4684b8e0b6ce8a9902c         \
-                sha1   f2c87e0a6cecc9dab1e98232cf154d0c78771aa9 \
-                rmd160 79a92daa6167ed45bedc06668dd86682ee2758cb
+checksums                   md5    4ae52c19cdd6f4684b8e0b6ce8a9902c         \
+                            sha1   f2c87e0a6cecc9dab1e98232cf154d0c78771aa9 \
+                            rmd160 79a92daa6167ed45bedc06668dd86682ee2758cb
 
-depends_build   port:automake port:libtool port:pkgconfig
-depends_lib     port:bzip2 \
-                port:freetype \
-                port:gsl \
-                port:hdf5 \
-                port:ImageMagick \
-                port:jpeg \
-                port:ncurses \
-                port:netcdf \
-                port:plplot \
-                port:python24 \
-                port:py-numarray \
-                port:readline \
-                port:tiff
+depends_build               port:autoconf port:libtool port:pkgconfig
+depends_lib                 port:bzip2 \
+                            port:zlib \
+                            port:curl \
+                            port:freetype \
+                            port:gsl \
+                            port:hdf4 \
+                            port:hdf5-18 \
+                            port:szip \
+                            port:netcdf \
+                            port:ImageMagick \
+                            port:jpeg \
+                            port:tiff \
+                            port:ncurses \
+                            port:readline \
+                            port:plplot \
+                            port:python25 \
+                            port:py25-numarray
 
-configure.env       FFLAGS=-O2
-configure.cppflags-append "-I${prefix}/include/python2.4"
-configure.args      --with-plplotdir=${prefix} \
-                    --with-ncursesdir=${prefix} \
-                    --with-readlinedir=${prefix} \
-                    --with-gsldir=${prefix} \
-                    --with-netcdf=${prefix} \
-                    --without-hdf --with-hdf5=${prefix} \
-                    --with-python=${prefix}/Library/Frameworks/Python.framework/Versions/2.4 \
-                    --enable-python_version=2.4 \
-                    --with-Magick=${prefix} \
-                    --disable-dependency-tracking
-
 patch {
    set imflag [lsearch [exec pkg-config --libs-only-l ImageMagick] -lMagickCore]
    if {${imflag}>=0} {
@@ -78,9 +71,28 @@
    file copy -force ${prefix}/share/libtool/config/ltmain.sh ${worksrcpath}
 }
 
-destroot.destdir    prefix=${destroot}${prefix}
-destroot.target     install-strip
+pre-configure {
+    system "cd ${worksrcpath}; aclocal"
+}
+use_autoconf                yes
+configure.env-append        LIBS="-lhdf5_hl -lhdf5 -lz -lcurl"
+configure.cppflags-append   "-I${prefix}/include/python2.5"
+configure.cxxflags-append   -DH5_USE_16_API
+configure.args              --with-plplotdir=${prefix} \
+                            --with-ncursesdir=${prefix} \
+                            --with-readlinedir=${prefix} \
+                            --with-gsldir=${prefix} \
+                            --with-netcdf=${prefix} \
+                            --with-hdf=${prefix} \
+                            --with-hdf5=${prefix} \
+                            --with-python=${prefix}/Library/Frameworks/Python.framework/Versions/2.5 \
+                            --enable-python_version=2.5 \
+                            --with-Magick=${prefix} \
+                            --disable-dependency-tracking
 
+destroot.destdir            prefix=${destroot}${prefix}
+destroot.target             install-strip
+
 post-destroot {
    xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
    xinstall -m 644 -W ${worksrcpath} AUTHORS COPYING Doxyfile ChangeLog HACKING INSTALL NEWS MAP_INSTALL PYTHON.txt README TODO ${destroot}${prefix}/share/doc/${name}
@@ -102,8 +114,8 @@
 
 variant proj description {build with proj} {
     depends_lib-append port:proj
-    configure.cxx	"g++ -DPJ_LIB__"
-    configure.args-append --with-libproj4=${prefix}
+    configure.cxx           "g++ -DPJ_LIB__"
+    configure.args-append   --with-libproj4=${prefix}
 }
 
 if {![variant_isset g95]} {
@@ -111,10 +123,14 @@
 }
 variant gcc43 conflicts g95 description {Build using gcc43 (default)} {
     depends_build-append    port:gcc43
-    configure.f77    ${prefix}/bin/gfortran-mp-4.3
+    configure.f77           ${prefix}/bin/gfortran-mp-4.3
 }
 variant g95 conflicts gcc43 description {Build using g95} {
     depends_build-append    port:g95
-    configure.f77	${prefix}/bin/g95
+    configure.f77           ${prefix}/bin/g95
 }
 
+variant szip description {link against hdf4 +szip} {
+    configure.env-delete    LIBS="-lhdf5_hl -lhdf5 -lz -lcurl"
+    configure.env-append    LIBS="-lhdf5_hl -lhdf5 -lz -lcurl -lsz"
+}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090718/ee70e39a/attachment.html>


More information about the macports-changes mailing list