source: trunk/dports/gis/gdal-grass/Portfile

Last change on this file was 112580, checked in by vince@…, 4 years ago

Bump to grass 6.4.3 and transform tabulations to spaces.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.6 KB
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=2:ts=2:sts=2
2# $Id: Portfile 112580 2013-10-27 07:45:31Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6name                gdal-grass
7categories          gis
8version             1.4.3
9maintainers         vince
10description         This plugin allows GDAL to read GRASS files
11long_description    This plugin allows GDAL to read GRASS files
12
13homepage            http://grass.osgeo.org/
14
15platforms           darwin
16
17depends_lib         port:gdal \
18                    port:grass
19
20master_sites        http://download.osgeo.org/gdal/
21
22checksums           md5     2bfb7640e03b4d9d012f1a5d62c0351d \
23                    rmd160  60e3866a44d595cbf41368adb1b968387c7852b4 \
24                    sha1    63b87ad1688cc365dc6bd6c3ccc854d0e6aa637a
25
26use_configure       yes
27
28configure.args-append   --with-gdal=${prefix}/bin/gdal-config
29configure.args-append   --with-grass=${prefix}/share/grass-6.4.3
30
31post-configure {
32    if {[variant_isset universal]} {
33        # Enforce universal flags
34        reinplace -E "s|^(CXXFLAGS.*)|\\1 ${configure.universal_cxxflags}|" \
35            ${worksrcpath}/Makefile
36        reinplace -E "s|^(LD_SHARED.*)|\\1 ${configure.universal_cxxflags}|" \
37            ${worksrcpath}/Makefile
38    }
39           
40    # Fixes destroot issues
41    reinplace -E "s|^(GRASSTABLES_DIR\[^/]*)(.*)|\\1${destroot}\\2|" \
42        ${worksrcpath}/Makefile
43    reinplace -E "s|^(AUTOLOAD_DIR\[^/]*)(.*)|\\1${destroot}\\2|" \
44        ${worksrcpath}/Makefile
45    reinplace "s|mkdir|mkdir -p|" ${worksrcpath}/Makefile
46}
47
48build.target   
Note: See TracBrowser for help on using the repository browser.