# $Id: Portfile,v 1.5 2005/10/05 15:25:24 mww Exp $

PortSystem 1.0
name		gdal
version		1.3.1
maintainers	fulton@cmu.edu
platforms	darwin
description	GDAL - Geospatial Data Abstraction Library
long_description	GDAL is a translator library for raster geospatial \
			data formats that is released under an X/MIT style \
			Open Source license. As a library, it presents a \
			single abstract data model to the calling application \
			for all supported formats. The related OGR library \
			(which lives within the GDAL source tree) provides a \
			similar capability for simple features vector data. 
homepage	http://www.remotesensing.org/gdal/
master_sites	ftp://ftp.remotesensing.org/pub/gdal/
categories	science
checksums	md5 7ff1ceff745ee011793e1f860c02c172

depends_lib	port:zlib port:libpng port:tiff port:libgeotiff port:jpeg \
	port:giflib port:sqlite3 port:proj

configure.args	--without-python --with-libz=${prefix} --with-png=${prefix} \
	--with-libtiff=${prefix} --with-geotiff=${prefix} --with-jpeg=${prefix} \
	--with-gif=${prefix} --without-pg --without-mysql --with-sqlite=${prefix} \
	--mandir=\\\${prefix}/share/man

platform darwin 8 {
	configure.env	CC=/usr/bin/gcc-4.0 CPP=/usr/bin/cpp-4.0 CXX=/usr/bin/g++-4.0
}

build.target

destroot.destdir	prefix=${destroot}${prefix}

post-destroot {
	xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
	xinstall -m 644 -W ${worksrcpath} HOWTO-RELEASE NEWS Changelog VERSION \
		${destroot}${prefix}/share/doc/${name}
}
