# $Id$ PortSystem 1.0 name gnudatalanguage version 0.9pre5 categories math science maintainers takeshi@mac.com 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 d2a740ba633ff7ace23f452d34a9c42c depends_build port:automake port:libtool 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 "-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 { 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||" ${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} foreach f {AUTHORS COPYING ChangeLog HACKING INSTALL NEWS PYTHON.txt README TODO} { eval xinstall -m 644 [glob ${worksrcpath}/${f}] ${destroot}${prefix}/share/doc/${name} } } variant 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 }