changeset 744:b09aadb3810b

make all dependencies explicit in package gdal
author Volker Grabsch <vog@notjusthosting.com>
date Mon, 15 Feb 2010 15:52:04 +0100
parents a0153c1be91d
children 8ea29766f021
files src/gdal-fix-pg.patch src/gdal.mk
diffstat 2 files changed, 60 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/gdal-fix-pg.patch	Mon Feb 15 15:52:04 2010 +0100
@@ -0,0 +1,15 @@
+This file is part of mingw-cross-env.
+See doc/index.html for further information.
+
+diff -ru gdal-1.7.1.orig/configure.in gdal-1.7.1/configure.in
+--- gdal-1.7.1.orig/configure.in	2010-02-08 20:52:34.000000000 +0100
++++ gdal-1.7.1/configure.in	2010-02-15 15:39:39.000000000 +0100
+@@ -418,7 +418,7 @@
+   AC_MSG_RESULT([yes])
+ 
+   ax_save_LIBS="${LIBS}"
+-  LIBS=-L`$PG_CONFIG --libdir`" -lpq"
++  LIBS=-L`$PG_CONFIG --libdir`" -lpq $LIBS"
+   AC_CHECK_LIB(pq,PQconnectdb,HAVE_PG=yes,HAVE_PG=no,)
+   LIBS="${ax_save_LIBS}"
+   
--- a/src/gdal.mk	Mon Feb 15 15:49:32 2010 +0100
+++ b/src/gdal.mk	Mon Feb 15 15:52:04 2010 +0100
@@ -11,7 +11,7 @@
 $(PKG)_WEBSITE  := http://www.gdal.org/
 $(PKG)_URL      := http://ftp.remotesensing.org/gdal/$($(PKG)_FILE)
 $(PKG)_URL_2    := http://download.osgeo.org/gdal/$($(PKG)_FILE)
-$(PKG)_DEPS     := gcc zlib libpng tiff libgeotiff jpeg giflib expat curl geos
+$(PKG)_DEPS     := gcc zlib libpng tiff libgeotiff jpeg jasper giflib expat sqlite curl geos postgresql libodbc++
 
 define $(PKG)_UPDATE
     wget -q -O- 'http://trac.osgeo.org/gdal/wiki/DownloadSource' | \
@@ -20,23 +20,64 @@
 endef
 
 define $(PKG)_BUILD
+    cd '$(1)' && autoconf
+    # The option '--without-threads' means native win32 threading without pthread.
     cd '$(1)' && ./configure \
         --host='$(TARGET)' \
         --disable-shared \
         --prefix='$(PREFIX)/$(TARGET)' \
-        LIBS='-ljpeg' \
-        --with-threads \
+        --with-bsb \
+        --with-grib \
+        --with-ogr \
+        --with-vfk \
+        --with-pam \
+        --without-threads \
         --with-libz='$(PREFIX)/$(TARGET)' \
         --with-png='$(PREFIX)/$(TARGET)' \
         --with-libtiff='$(PREFIX)/$(TARGET)' \
         --with-geotiff='$(PREFIX)/$(TARGET)' \
         --with-jpeg='$(PREFIX)/$(TARGET)' \
+        --with-jasper='$(PREFIX)/$(TARGET)' \
         --with-gif='$(PREFIX)/$(TARGET)' \
         --with-expat='$(PREFIX)/$(TARGET)' \
+        --with-sqlite3='$(PREFIX)/$(TARGET)' \
         --with-curl='$(PREFIX)/$(TARGET)/bin/curl-config' \
         --with-geos='$(PREFIX)/$(TARGET)/bin/geos-config' \
+        --with-pg='$(PREFIX)/$(TARGET)/bin/pg_config' \
+        --with-odbc='$(PREFIX)/$(TARGET)' \
+        --without-static-proj4 \
+        --without-xerces \
+        --without-grass \
+        --without-libgrass \
+        --without-spatialite \
+        --without-cfitsio \
+        --without-pcraster \
+        --without-netcdf \
+        --without-pcidsk \
+        --without-ogdi \
+        --without-fme \
+        --without-hdf4 \
+        --without-hdf5 \
+        --without-ecw \
+        --without-kakadu \
+        --without-mrsid \
+        --without-jp2mrsid \
+        --without-msg \
+        --without-oci \
+        --without-mysql \
+        --without-ingres \
+        --without-dods-root \
+        --without-dwgdirect \
+        --without-dwg-plt \
+        --without-idb \
+        --without-sde \
+        --without-epsilon \
+        --without-perl \
+        --without-php \
+        --without-ruby \
         --without-python \
-        --without-ngpython
+        --without-macosx-framework \
+        LIBS="-ljpeg -lsecur32 `'$(TARGET)-pkg-config' --libs openssl`"
     $(MAKE) -C '$(1)'       -j 1 lib-target
     $(MAKE) -C '$(1)'       -j 1 install-lib
     $(MAKE) -C '$(1)/port'  -j 1 install