[75520] trunk/dports/gis/gdal/Portfile
vince at macports.org
vince at macports.org
Fri Jan 28 08:45:19 PST 2011
Revision: 75520
http://trac.macports.org/changeset/75520
Author: vince at macports.org
Date: 2011-01-28 08:45:17 -0800 (Fri, 28 Jan 2011)
Log Message:
-----------
Bump to version 1.8, add various options (Python 2.7, OpenCL support)
Modified Paths:
--------------
trunk/dports/gis/gdal/Portfile
Modified: trunk/dports/gis/gdal/Portfile
===================================================================
--- trunk/dports/gis/gdal/Portfile 2011-01-28 16:07:25 UTC (rev 75519)
+++ trunk/dports/gis/gdal/Portfile 2011-01-28 16:45:17 UTC (rev 75520)
@@ -2,8 +2,8 @@
PortSystem 1.0
name gdal
-version 1.7.3
-revision 1
+version 1.8.0
+#revision 1
maintainers gmail.com:seanasy
platforms darwin
description GDAL - Geospatial Data Abstraction Library
@@ -18,24 +18,28 @@
master_sites http://www.gdal.org/dl/ \
http://download.osgeo.org/gdal/
categories gis
-checksums md5 c4673970bd2285032de9ae9bbd82754a \
- rmd160 ce84a12d48c85a58c56a17381aee1c4f2ba08b57 \
- sha1 58d4355fe792ad618bb74605dc1a084a0aeb7cb1
+checksums md5 c762cdab0f7e51a677ba49278a8a263d \
+ rmd160 0e116f41b23ff5b44c692f56459facab332c6201 \
+ sha1 e5a2802933054050c6fb0b0a0e1f46b5dd195b0a
depends_lib port:zlib port:libpng port:tiff port:libgeotiff port:jpeg \
path:include/gif_lib.h:giflib port:proj
set PYINST ""
+set OPENCLBASE "/System/Library/Frameworks/OpenCL.framework/"
-configure.args --with-local=${prefix} --with-libz=${prefix} \
+configure.args --with-local=${prefix} \
+ --with-libz=${prefix} --without-lzma \
--with-png=${prefix} \
--with-libtiff=${prefix} --with-geotiff=${prefix} \
- --with-jpeg=${prefix} --with-gif=${prefix} \
+ --with-jpeg=${prefix}\
+ --with-gif=${prefix} \
--with-static-proj4=${prefix} \
--without-pg --without-grass --without-libgrass \
--without-cfitsio --without-pcraster --without-netcdf \
--without-ogdi --without-fme --without-hdf4 --without-hdf5 \
- --without-jasper --without-ecw --without-kakadu \
+ --without-jasper --without-openjpeg \
+ --without-ecw --without-kakadu \
--without-mrsid \
--without-jp2mrsid --without-msg --without-bsb --without-oci \
--without-grib --without-mysql --without-ingres \
@@ -44,13 +48,15 @@
--without-curl --without-sqlite3 --without-spatialite\
--without-dwgdirect --without-idb --without-sde \
--without-geos \
+ --without-opencl \
--without-pam --without-perl \
--without-php --without-ruby \
--without-python \
--without-xerces --without-expat \
--mandir=${prefix}/share/man
# Patch to ensure that the python installation respects DESTDIR
-patchfiles patch-swig_python_GNUmakefile
+patchfiles patch-swig_python_GNUmakefile \
+ patch-gdalwarpkernel_opencl_c.diff
# Patches for universal build
@@ -66,6 +72,13 @@
# Set target to none
build.target
+variant lzma conflicts universal \
+ description {Enable LZMA (7Z) compression support} {
+ depends_lib-append port:lzma
+ configure.args-delete --without-lzma
+ configure.args-append --with-lzma=${prefix}
+}
+
variant geos description {Enable GEOS geometry engine functionality} {
depends_lib-append port:geos
configure.args-delete --without-geos
@@ -106,12 +119,23 @@
configure.args-append --with-netcdf=${prefix}
}
-variant jasper description {Enable JasPer JPEG-2000 file format} {
+#JPEG-2K
+
+variant jasper conflicts openjpeg \
+ description {Enable JasPer JPEG-2000 format support} {
depends_lib-append port:jasper
configure.args-delete --without-jasper
configure.args-append --with-jasper=${prefix}
}
+variant openjpeg conflicts jasper \
+ description {Enable OpenJPEG JPEG-2000 format support} {
+ depends_lib-append port:openjpeg
+ configure.args-delete --without-openjpeg
+ configure.args-append --with-openjpeg=${prefix}
+}
+
+
variant xerces description {Enable xerces XML support for GML file format} {
depends_lib-append port:xercesc
configure.args-delete --without-xerces
@@ -125,7 +149,8 @@
}
# Python variants
-variant python24 description {Enable Python 2.4 support} {
+variant python24 conflicts python25 python26 python27 \
+ description {Enable Python 2.4 support} {
depends_lib-append port:python24 \
port:py-numpy
configure.args-delete --without-python
@@ -134,7 +159,8 @@
build.args-append PYTHON=python2.4
}
-variant python25 description {Enable Python 2.5 support} {
+variant python25 conflicts python24 python26 python27 \
+ description {Enable Python 2.5 support} {
depends_lib-append port:python25 \
port:py25-numpy
configure.args-delete --without-python
@@ -143,7 +169,8 @@
build.args-append PYTHON=python2.5
}
-variant python26 description {Enable Python 2.6 support} {
+variant python26 conflicts python24 python25 python27 \
+ description {Enable Python 2.6 support} {
depends_lib-append port:python26 \
port:py26-numpy
configure.args-delete --without-python
@@ -154,6 +181,18 @@
use_parallel_build no
}
+variant python27 conflicts python24 python25 python26 \
+ description {Enable Python 2.7 support} {
+ depends_lib-append port:python27 \
+ port:py27-numpy
+ configure.args-delete --without-python
+ configure.args-append --with-python
+ configure.args-append
+ build.args-append PYTHON=python2.7
+ set PYINST ${frameworks_dir}/Python.framework/Versions/2.7
+ use_parallel_build no
+}
+
# Database variants
variant postgresql81 description {Enable PostgreSQL 8.1 support} {
depends_lib-append port:postgresql81
@@ -209,17 +248,37 @@
configure.args-append --with-odbc=${prefix}
}
+# OpenCL
+
+variant opencl description {Use OpenCL for parallel computations} {
+ configure.args-delete --without-opencl
+ configure.args-append --with-opencl
+ configure.args-append --with-opencl-include=${OPENCLBASE}/Headers
+ configure.args-append --with-opencl-lib='-framework OpenCL'
+}
+
# OS X Framework
variant framework description {Build as a Mac OS X framework} {
configure.args-append --with-macosx-framework
}
+# Postconfigure hack to avoid read ${include} .h files before
+# GDAL own include directories
+
+post-configure {
+ set FRMT_PATH ${worksrcpath}/ogr/ogrsf_frmts
+ foreach makefile [glob -dir $FRMT_PATH */GNUmakefile] {
+ reinplace "s|\$\(EXPAT_INCLUDE\)||" $makefile
+ }
+}
+
post-destroot {
xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
xinstall -m 644 -W ${worksrcpath} HOWTO-RELEASE NEWS VERSION \
${destroot}${prefix}/share/doc/${name}
}
+
livecheck.type regex
livecheck.url http://download.osgeo.org/gdal/
livecheck.regex ${name}-(\\d+(?:\\.\\d+)*)\\.tar
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110128/bba9d8b3/attachment.html>
More information about the macports-changes
mailing list