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

takeshi at macports.org takeshi at macports.org
Sat Feb 20 23:52:56 PST 2010


Revision: 64064
          http://trac.macports.org/changeset/64064
Author:   takeshi at macports.org
Date:     2010-02-20 23:52:56 -0800 (Sat, 20 Feb 2010)
Log Message:
-----------
gnudatalanguage: updated for 0.9rc4.

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

Modified: trunk/dports/math/gnudatalanguage/Portfile
===================================================================
--- trunk/dports/math/gnudatalanguage/Portfile	2010-02-21 07:51:36 UTC (rev 64063)
+++ trunk/dports/math/gnudatalanguage/Portfile	2010-02-21 07:52:56 UTC (rev 64064)
@@ -4,7 +4,7 @@
 PortSystem                  1.0
 
 name                        gnudatalanguage
-version                     0.9rc3
+version                     0.9rc4
 categories                  math science
 maintainers                 takeshi igf.fuw.edu.pl:slayoo
 license                     GPLv2
@@ -17,61 +17,43 @@
 master_sites                sourceforge
 distname                    gdl-${version}
 
-checksums                   md5     94a29e13ec5d71e664659b32e421b02e \
-                            sha1    bce9b091b17ede0675f347a3aef1a46c9b0abec9 \
-                            rmd160  d5e47420462a200853fc6b33447181e477218368
+checksums                   md5     dcef0d75308a13856a799d12755c80a3 \
+                            sha1    ffd133b9bc213613c89952f341defb447a87bf1d \
+                            rmd160  504f072d4dbf30403a2e9e0ed18223537619f01a
 
-depends_build               port:pkgconfig
-depends_lib                 port:bzip2 \
-                            port:zlib \
-                            port:curl \
-                            port:freetype \
+depends_lib                 port:zlib \
                             port:gsl \
+                            port:ncurses \
+                            port:readline \
+                            port:plplot \
+                            port:netcdf \
                             port:hdf4 \
                             port:hdf5-18 \
-                            port:szip \
-                            port:netcdf \
+                            port:grib_api \
+                            port:libproj4 \
                             port:ImageMagick \
-                            port:jpeg \
-                            port:tiff \
-                            port:ncurses \
-                            port:readline \
-                            port:plplot \
-                            port:python25 \
-                            port:py25-numarray \
                             port:xorg-libX11 \
                             port:udunits2 \
                             port:fftw-3 \
                             port:fftw-3-single
 
 patch {
-   foreach f {configure.in configure} {
-       reinplace "s|-L\$with_hdf5/lib/hdf -L\$with_hdf5/lib/hdf5||" \
-           ${worksrcpath}/${f}
-       reinplace "s|-I\$with_hdf5/include/hdf -I\$with_hdf5/include/hdf5||" \
-           ${worksrcpath}/${f}
-       reinplace "s|-lproj4|-lproj|g" ${worksrcpath}/${f}
-   }
-   reinplace "s|AC_CHECK_LIB(proj4|AC_CHECK_LIB(proj|" ${worksrcpath}/configure.in
-   reinplace "s|-L/usr/X11R6/lib64 -L/usr/X11R6/lib|-L${prefix}/lib|" ${worksrcpath}/src/Makefile.am
-   reinplace "s|lib_proj.h|projects.h|" ${worksrcpath}/src/math_utl.hpp
-   foreach d {src src/antlr} {
-       reinplace "s|libantlr|libantlr_gdl|g" ${worksrcpath}/${d}/Makefile.am
-   }
+   # both patches are included in the GDL CVS version - will not be needed for >0.9rc4
+   reinplace "s|lib_LIBRARIES|noinst_LIBRARIES|" ${worksrcpath}/src/antlr/Makefile.am
+   reinplace "s|GDLLexer lexer(istr, \"\")|GDLLexer lexer(istr, \"\", GDLParser::NONE)|" ${worksrcpath}/src/widget.cpp;
 }
+
 post-patch {
    # Avoid using heimdal's broken fnmatch.h
    reinplace "s|<\\(fnmatch\.h\\)>|\"/usr/include/\\1\"|" ${worksrcpath}/src/file.cpp
-   file copy -force ${prefix}/share/libtool/config/ltmain.sh ${worksrcpath}
 }
 
 pre-configure {
     system "cd ${worksrcpath}; aclocal"
 }
+
 use_autoconf                yes
-configure.env-append        LIBS=-lsz
-configure.cppflags-append   "-I${prefix}/include/python2.5"
-configure.cxxflags-append   -DH5_USE_16_API
+configure.env-append        LIBS=\"-lpng -lopenjpeg\"
 configure.args              --with-plplotdir=${prefix} \
                             --with-ncursesdir=${prefix} \
                             --with-readlinedir=${prefix} \
@@ -79,21 +61,28 @@
                             --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-grib=${prefix} \
                             --with-Magick=${prefix} \
                             --disable-dependency-tracking \
                             --x-includes=${prefix}/include \
                             --x-libraries=${prefix}/lib \
                             --with-udunits=${prefix} \
-                            --with-fftw=${prefix}
+                            --with-fftw=${prefix} \
+                            --with-libproj4=${prefix} \
+                            --with-python=no \
+                            --with-openmp=no
 
+test.run                    yes
+test.target                 check
+
 destroot.destdir            prefix=${destroot}${prefix}
 destroot.target             install-strip
 
+use_parallel_build          yes
+
 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}
+   xinstall -m 644 -W ${worksrcpath} AUTHORS COPYING Doxyfile ChangeLog HACKING INSTALL NEWS MAP_INSTALL PYTHON.txt README README_GRIB TODO ${destroot}${prefix}/share/doc/${name}
    xinstall -m 755 -d ${destroot}${prefix}/share/${name}
    xinstall -m 755 -d ${destroot}${prefix}/share/${name}/py
    eval xinstall -m 644 [glob ${worksrcpath}/src/py/*.py] ${destroot}${prefix}/share/${name}/py
@@ -110,20 +99,34 @@
       ${destroot}${prefix}/share/${name}/testsuite
 }
 
-variant proj description {build with proj} {
-    depends_lib-append port:proj
-    configure.cxxflags-append -DPJ_LIB__
-    configure.args-append   --with-libproj4=${prefix}
+variant mpich description {build with support for MPICH (experimental)} {
+    depends_lib-append      port:mpich
+    configure.args-append   --with-mpich=${prefix} 
+} 
+
+variant wxWidgets description {build with support for widgets (experimental, not functional yet)} {
+    depends_lib-append      port:wxWidgets
+    configure.args-append   --with-wxWidgets=${prefix} 
+    # http://wiki.finkproject.org/index.php/Fink:Packaging:Preparing_for_10.5#OpenGL_Bug
+    #configure.env-append    LDFLAGS=\"-Wl,-dylib_file,/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib\"
 }
 
-if {![variant_isset g95]} {
-    default_variants +gcc43
+variant python description {build with support for calling Python (2.6) from GDL (using numarray - obsolete)} {
+    depends_lib-append      port:python26 \
+                            port:py26-numarray 
+    configure.args-append   --with-python=${prefix}/Library/Frameworks/Python.framework/Versions/2.6 \
+                            --enable-python_version=2.6
 }
-variant gcc43 conflicts g95 description {Build using gcc43} {
+
+variant openmp description {enabling of the support for multi-threaded matrix operations using OpenMP} {
+    configure.args-delete   --with-openmp=no
+    configure.args-append   --with-openmp=yes
+    configure.compiler      macports-gcc-4.3
     depends_build-append    port:gcc43
-    configure.compiler      macports-gcc-4.3
 }
-variant g95 conflicts gcc43 description {Build using g95} {
-    depends_build-append    port:g95
-    configure.f77           ${prefix}/bin/g95
+
+post-install {
+  ui_msg "* The SAVE and RESTORE routines require auxiliary files from the free CMSVLIB:"
+  ui_msg "* http://www.physics.wisc.edu/~craigm/idl/cmsave.html"
+  ui_msg ""
 }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20100220/1440cf8b/attachment.html>


More information about the macports-changes mailing list