[23138] trunk/dports/math/gnudatalanguage/Portfile
source_changes at macosforge.org
source_changes at macosforge.org
Mon Mar 26 01:59:44 PDT 2007
Revision: 23138
http://trac.macosforge.org/projects/macports/changeset/23138
Author: takanori at macports.org
Date: 2007-03-26 01:59:43 -0700 (Mon, 26 Mar 2007)
Log Message:
-----------
Avoid conflicting with antlr.
Add +proj variant that enables map projection.
Ticket: #11612
Submitted by: takeshi at mac.com
Modified Paths:
--------------
trunk/dports/math/gnudatalanguage/Portfile
Modified: trunk/dports/math/gnudatalanguage/Portfile
===================================================================
--- trunk/dports/math/gnudatalanguage/Portfile 2007-03-26 08:49:51 UTC (rev 23137)
+++ trunk/dports/math/gnudatalanguage/Portfile 2007-03-26 08:59:43 UTC (rev 23138)
@@ -2,10 +2,11 @@
PortSystem 1.0
name gnudatalanguage
version 0.9pre4
+revision 1
categories math science
maintainers takeshi at mac.com
platforms darwin
-description a free IDL combatible icncremental compiler
+description a free IDL combatible incremental compiler
long_description \
A free IDL (Interactive Data Language) compatible \
incremental compiler (ie. runs IDL programs).
@@ -17,6 +18,7 @@
depends_lib port:bzip2 \
port:freetype \
+ port:g95 \
port:gsl \
port:hdf5 \
port:ImageMagick \
@@ -29,10 +31,28 @@
port:readline \
port:tiff \
port:zlib
-depends_build port:g95 \
- port:odcctools
-configure.env LDFLAGS="-undefined dynamic_lookup"
+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
+ foreach d {src src/antlr} {
+ reinplace "s|libantlr.a|libantlr_gdl.a|g" ${worksrcpath}/${d}/Makefile.in
+ }
+ reinplace "s|-L/usr/X11R6/lib64||" ${worksrcpath}/src/Makefile.in
+ reinplace "s|lib_proj.h|projects.h|" ${worksrcpath}/src/plotting.hpp
+}
+post-patch {
+ # Avoid using heimdal's broken fnmatch.h
+ reinplace "s|<\\(fnmatch\.h\\)>|\"/usr/include/\\1\"|" ${worksrcpath}/src/file.cpp
+}
+
+configure.env F77=${prefix}/bin/g95 FFLAGS=-O2
configure.args --with-plplotdir=${prefix} \
--with-ncursesdir=${prefix} \
--with-readlinedir=${prefix} \
@@ -52,8 +72,14 @@
}
}
-pre-activate {
- ui_msg "This port conflicts with antlr. If this port fails to"
- ui_msg "activate, uninstall or deactivate antlr and attempt to"
- ui_msg "activate this port again."
-}
\ No newline at end of file
+# fftw-3-single does not build on i386
+#variant fftw {
+# depends_lib-append port:fftw-3 port:fftw-3-single
+# configure.args-append --with-fftw=/opt/local
+#}
+
+variant proj {
+ depends_lib-append port:proj
+ configure.env-append CPPFLAGS=-DPJ_LIB__
+ configure.args-append --with-libproj4=${prefix}
+}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20070326/4887e6d0/attachment.html
More information about the macports-changes
mailing list