1 | # $Id: Portfile,v 1.5 2005/10/05 15:25:24 mww Exp $ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | name gdal |
---|
5 | version 1.3.2 |
---|
6 | maintainers fulton@cmu.edu |
---|
7 | platforms darwin |
---|
8 | description GDAL - Geospatial Data Abstraction Library |
---|
9 | long_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. |
---|
16 | homepage http://www.gdal.org |
---|
17 | master_sites http://www.gdal.org/dl/ \ |
---|
18 | ftp://ftp.remotesensing.org/pub/gdal/ |
---|
19 | categories science |
---|
20 | checksums md5 67ed02dcea21e93f5e123bb0d322898a |
---|
21 | |
---|
22 | depends_lib port:zlib port:libpng port:tiff port:libgeotiff port:jpeg \ |
---|
23 | port:giflib port:sqlite3 port:proj |
---|
24 | |
---|
25 | configure.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 | |
---|
30 | platform 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 | |
---|
34 | variant 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 | |
---|
40 | variant geos { |
---|
41 | depends_lib-append port:geos |
---|
42 | configure.args-append --with-geos=${prefix}/bin/geos-config |
---|
43 | } |
---|
44 | |
---|
45 | build.target |
---|
46 | |
---|
47 | destroot.destdir prefix=${destroot}${prefix} |
---|
48 | |
---|
49 | post-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 | } |
---|