Changeset 116166


Ignore:
Timestamp:
Jan 20, 2014, 2:20:40 PM (6 years ago)
Author:
mojca@…
Message:

grass: replace hard-coded gcc with configure.cc (#32797)

File:
1 edited

Legend:

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

    r116164 r116166  
    5151    patch-Makefile.diff \
    5252    patch-ffmpeg.diff
     53
     54post-patch {
     55    reinplace "s|@@APPLICATIONS_DIR@@|${applications_dir}|" ${worksrcpath}/configure
     56    # http://trac.osgeo.org/grass/ticket/2169
     57    reinplace "s|CC=gcc|CC=${configure.cc}|" ${worksrcpath}/gem/Makefile
     58}
    5359
    5460# List of all python scripts. Used later to ensure usage of python26/python27
     
    326332        # for some reason it fails if python_bin is not defined inside post-patch (figure out why)
    327333        set python_bin ${frameworks_dir}/Python.framework/Versions/2.6/bin/python2.6
    328         reinplace "s|@@APPLICATIONS_DIR@@|${applications_dir}|" ${worksrcpath}/configure
    329334        reinplace "s|@@PYTHON@@|${python_bin}|" ${worksrcpath}/lib/init/grass.src
    330335        foreach f $python_scripts {
     
    342347    post-patch {
    343348        set python_bin ${frameworks_dir}/Python.framework/Versions/2.7/bin/python2.7
    344         reinplace "s|@@APPLICATIONS_DIR@@|${applications_dir}|" ${worksrcpath}/configure
    345349        reinplace "s|@@PYTHON@@|${python_bin}|" ${worksrcpath}/lib/init/grass.src
    346350        foreach f $python_scripts {
Note: See TracChangeset for help on using the changeset viewer.