Changeset 106731 for trunk/dports/gis


Ignore:
Timestamp:
Jun 6, 2013, 9:05:42 PM (6 years ago)
Author:
g5pw@…
Message:

gis/grass:

fix build with tcl8.6 (#38054 #37578 #37376)
fix python build bug
add wxwidgets variant
add wxpython variant (#36904)

Location:
trunk/dports/gis/grass
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/gis/grass/Portfile

    r102822 r106731  
    4545    patch-Makefile.diff \
    4646    patch-configure.diff \
    47     patch-macosx_Makefile.diff
     47    patch-macosx_Makefile.diff \
     48    patch-visualization_nviz_src-draw_c.diff
     49
     50# List of all python scripts. Used later to ensure usage of python27 (and not
     51# the currently active python)
     52# Work around bug http://trac.osgeo.org/grass/ticket/1758
     53depends_build-append    port:python27
     54set python_scripts [ list \
     55    doc/python/example_ctypes.py \
     56    general/g.parser/test.py \
     57    gui/scripts/g.change.gui.py \
     58    gui/scripts/g.extension.py \
     59    gui/scripts/g.extension.rebuild.all.py \
     60    gui/scripts/v.type_wrapper.py \
     61    gui/wxpython/gui_modules/gmodeler.py \
     62    gui/wxpython/gui_modules/menuform.py \
     63    gui/wxpython/scripts/d.rast3d.py \
     64    gui/wxpython/scripts/p.cmd.py \
     65    gui/wxpython/scripts/p.db.py \
     66    gui/wxpython/scripts/p.mon.py \
     67    gui/wxpython/scripts/p.rast.py \
     68    gui/wxpython/scripts/p.vect.py \
     69    imagery/i.atcorr/create_iwave.py \
     70    lib/python/ctypes/ctypesgen.py \
     71    lib/python/ctypes/ctypesgencore/__init__.py \
     72    lib/python/ctypes/ctypesgencore/ctypedescs.py \
     73    lib/python/ctypes/ctypesgencore/descriptions.py \
     74    lib/python/ctypes/ctypesgencore/expressions.py \
     75    lib/python/ctypes/ctypesgencore/messages.py \
     76    lib/python/ctypes/ctypesgencore/options.py \
     77    lib/python/ctypes/ctypesgencore/parser/__init__.py \
     78    lib/python/ctypes/ctypesgencore/parser/cdeclarations.py \
     79    lib/python/ctypes/ctypesgencore/parser/cgrammar.py \
     80    lib/python/ctypes/ctypesgencore/parser/cparser.py \
     81    lib/python/ctypes/ctypesgencore/parser/ctypesparser.py \
     82    lib/python/ctypes/ctypesgencore/parser/datacollectingparser.py \
     83    lib/python/ctypes/ctypesgencore/parser/pplexer.py \
     84    lib/python/ctypes/ctypesgencore/parser/preprocessor.py \
     85    lib/python/ctypes/ctypesgencore/printer/__init__.py \
     86    lib/python/ctypes/ctypesgencore/printer/printer.py \
     87    lib/python/ctypes/ctypesgencore/processor/__init__.py \
     88    lib/python/ctypes/ctypesgencore/processor/dependencies.py \
     89    lib/python/ctypes/ctypesgencore/processor/operations.py \
     90    lib/python/ctypes/ctypesgencore/processor/pipeline.py ]
    4891
    4992post-patch {
    5093   reinplace "s|@@APPLICATIONS_DIR@@|${applications_dir}|" \
    5194      ${worksrcpath}/configure
     95   foreach f $python_scripts {
     96       reinplace "s|/usr/bin/env python|${prefix}/bin/python2.7|" $f
     97   }
    5298}
    5399
     
    75121    --with-x \
    76122    --without-postgres \
     123    --disable-python \
     124    --disable-wxwidgets \
    77125    --enable-largefile \
    78126    --with-cairo \
     
    89137build.target    default
    90138
     139build.args-append PYTHON=${frameworks_dir}/Python.framework/Versions/2.7/bin/python2.7
     140
    91141variant mysql5 description {Add MySQL 5 support} {
    92142    depends_lib-append    path:bin/mysql_config5:mysql5
     
    145195}
    146196
     197variant wxwidgets description {Add WXWidgets support} {
     198    depends_lib-append    port:wxwidgets30
     199    configure.args-delete --disable-wxwidgets
     200    configure.args-append --with-wxwidgets=${prefix}/bin/wx-config
     201}
     202
     203variant wxPython requires wxwidgets description {Enable support for wxGUI Python extensions} {
     204    depends_lib                   port:py27-wxpython30
     205    configure.args-delete --disable-python
     206    configure.args-append --with-python=${frameworks_dir}/Python.framework/Versions/2.7/bin/python2.7-config
     207}
     208
    147209livecheck.type      regex
    148210livecheck.url       http://grass.osgeo.org/devel/svntags.php
Note: See TracChangeset for help on using the changeset viewer.