Ticket #10872: Portfile

File Portfile, 1.8 KB (added by mark.m.fredrickson@…, 18 years ago)

Patch to upgrade gdal to 1.3.2

Line 
1# $Id: Portfile,v 1.5 2005/10/05 15:25:24 mww Exp $
2
3PortSystem 1.0
4name            gdal
5version         1.3.2
6maintainers     fulton@cmu.edu
7platforms       darwin
8description     GDAL - Geospatial Data Abstraction Library
9long_description        GDAL is a translator library for raster geospatial \
10                        data formats that is released under an X/MIT style \
11                        Open Source license. As a library, it presents a \
12                        single abstract data model to the calling application \
13                        for all supported formats. The related OGR library \
14                        (which lives within the GDAL source tree) provides a \
15                        similar capability for simple features vector data.
16homepage        http://www.gdal.org
17master_sites  http://www.gdal.org/dl/ \
18              ftp://ftp.remotesensing.org/pub/gdal/
19categories      science
20checksums       md5 67ed02dcea21e93f5e123bb0d322898a
21
22depends_lib     port:zlib port:libpng port:tiff port:libgeotiff port:jpeg \
23        port:giflib port:sqlite3 port:proj
24
25configure.args  --without-python --with-libz=${prefix} --with-png=${prefix} \
26        --with-libtiff=${prefix} --with-geotiff=${prefix} --with-jpeg=${prefix} \
27        --with-gif=${prefix} --without-pg --without-mysql --with-sqlite=${prefix} \
28        --mandir=\\\${prefix}/share/man -with-static-proj4=${prefix}
29
30platform darwin 8 {
31        configure.env   CC=/usr/bin/gcc-4.0 CPP=/usr/bin/cpp-4.0 CXX=/usr/bin/g++-4.0
32}
33
34variant postgresql {
35        depends_lib-append      port:postgresql81
36        configure.args-delete --without-pg
37        configure.args-append   --with-pg=${prefix}/lib/postgresql81/bin/pg_config
38}
39
40variant geos {
41        depends_lib-append      port:geos
42        configure.args-append   --with-geos=${prefix}/bin/geos-config
43}
44
45build.target
46
47destroot.destdir        prefix=${destroot}${prefix}
48
49post-destroot {
50        xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
51        xinstall -m 644 -W ${worksrcpath} HOWTO-RELEASE NEWS VERSION \
52                ${destroot}${prefix}/share/doc/${name}
53}