Changeset 23138 for trunk/dports/math


Ignore:
Timestamp:
Mar 26, 2007, 8:59:43 AM (13 years ago)
Author:
takanori@…
Message:

Avoid conflicting with antlr.
Add +proj variant that enables map projection.
Ticket: #11612
Submitted by: takeshi@…

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/math/gnudatalanguage/Portfile

    r22921 r23138  
    33name            gnudatalanguage
    44version         0.9pre4
     5revision        1
    56categories      math science
    67maintainers     takeshi@mac.com
    78platforms       darwin
    8 description     a free IDL combatible icncremental compiler
     9description     a free IDL combatible incremental compiler
    910long_description \
    1011                A free IDL (Interactive Data Language) compatible \
     
    1819depends_lib     port:bzip2 \
    1920                port:freetype \
     21                port:g95 \
    2022                port:gsl \
    2123                port:hdf5 \
     
    3032                port:tiff \
    3133                port:zlib
    32 depends_build   port:g95 \
    33                 port:odcctools
    3434
    35 configure.env       LDFLAGS="-undefined dynamic_lookup"
     35patch {
     36   foreach f {configure.in configure} {
     37       reinplace "s|-L\$with_hdf5/lib/hdf -L\$with_hdf5/lib/hdf5||" \
     38           ${worksrcpath}/${f}
     39       reinplace "s|-I\$with_hdf5/include/hdf -I\$with_hdf5/include/hdf5||" \
     40           ${worksrcpath}/${f}
     41       reinplace "s|-lproj4|-lproj|g" ${worksrcpath}/${f}
     42   }
     43   reinplace "s|AC_CHECK_LIB(proj4|AC_CHECK_LIB(proj|" ${worksrcpath}/configure.in
     44   foreach d {src src/antlr} {
     45       reinplace "s|libantlr.a|libantlr_gdl.a|g" ${worksrcpath}/${d}/Makefile.in
     46   }
     47   reinplace "s|-L/usr/X11R6/lib64||" ${worksrcpath}/src/Makefile.in
     48   reinplace "s|lib_proj.h|projects.h|" ${worksrcpath}/src/plotting.hpp
     49}
     50post-patch {
     51   # Avoid using heimdal's broken fnmatch.h
     52   reinplace "s|<\\(fnmatch\.h\\)>|\"/usr/include/\\1\"|" ${worksrcpath}/src/file.cpp
     53}
     54
     55configure.env       F77=${prefix}/bin/g95 FFLAGS=-O2
    3656configure.args      --with-plplotdir=${prefix} \
    3757                    --with-ncursesdir=${prefix} \
     
    5373}
    5474
    55 pre-activate {
    56     ui_msg "This port conflicts with antlr. If this port fails to"
    57     ui_msg "activate, uninstall or deactivate antlr and attempt to"
    58     ui_msg "activate this port again."
     75# fftw-3-single does not build on i386
     76#variant fftw {
     77#    depends_lib-append    port:fftw-3 port:fftw-3-single
     78#    configure.args-append --with-fftw=/opt/local
     79#}
     80
     81variant proj {
     82    depends_lib-append port:proj
     83    configure.env-append CPPFLAGS=-DPJ_LIB__
     84    configure.args-append --with-libproj4=${prefix}
    5985}
Note: See TracChangeset for help on using the changeset viewer.