diff src/gdal.mk @ 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 9f46c7b491c9
children cd954a8ea7d7
line wrap: on
line diff
--- 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