# $Id$ PortSystem 1.0 name gnudatalanguage version 0.9rc1 revision 3 categories math science maintainers takeshi@macports.org 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} checksums md5 9cf6c3603b71988761d5d2c4551ecb10 \ sha1 a897a3696c635eb7703ff53955924c70c17bcb26 \ rmd160 cce312116805b667e9aa83bcc09520606934f0da 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 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} { configure.cppflags-append "-I${prefix}/include/ImageMagick" } 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 if {${imflag}>=0} { reinplace "s|AC_CHECK_LIB(Magick|AC_CHECK_LIB(MagickCore|" ${worksrcpath}/configure.in reinplace "s|-lMagick\\.|-lMagickCore.|" ${worksrcpath}/configure reinplace "s|-lMagick\"|-lMagickCore\"|" ${worksrcpath}/configure reinplace "s|LIBS=\"-lMagick \$LIBS\"|LIBS=\"-lMagickCore \$LIBS\"|" ${worksrcpath}/configure } reinplace "s|-L/usr/X11R6/lib64||" ${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 } } post-patch { # Avoid using heimdal's broken fnmatch.h reinplace "s|<\\(fnmatch\.h\\)>|\"/usr/include/\\1\"|" ${worksrcpath}/src/file.cpp } 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} 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 xinstall -m 755 -d ${destroot}${prefix}/share/${name}/pro xinstall -m 644 -W ${worksrcpath}/src/pro README.txt STATUS UrgentNeed.txt \ ${destroot}${prefix}/share/${name}/pro eval xinstall -m 644 [glob ${worksrcpath}/src/pro/*.pro] \ ${destroot}${prefix}/share/${name}/pro xinstall -m 755 -d ${destroot}${prefix}/share/${name}/pro/dicom eval xinstall -m 644 [glob ${worksrcpath}/src/pro/dicom/*.pro] \ ${destroot}${prefix}/share/${name}/pro/dicom xinstall -m 755 -d ${destroot}${prefix}/share/${name}/testsuite eval xinstall -m 644 [glob ${worksrcpath}/testsuite/*.pro] \ ${destroot}${prefix}/share/${name}/testsuite } variant proj description {build with proj} { depends_lib-append port:proj configure.cxx "g++ -DPJ_LIB__" configure.args-append --with-libproj4=${prefix} } if {![variant_isset g95]} { default_variants +gcc42 } variant gcc42 conflicts g95 description {Build using gcc42 (default)} { depends_build-append port:gcc42 configure.f77 ${prefix}/bin/gfortran-mp-4.2 } variant g95 conflicts gcc42 description {Build using g95} { depends_build-append port:g95 configure.f77 ${prefix}/bin/g95 }