summaryrefslogtreecommitdiffstats
path: root/src/gdal.mk
diff options
context:
space:
mode:
authorTony Theodore <tonyt@logyst.com>2013-05-23 14:38:06 (GMT)
committerTony Theodore <tonyt@logyst.com>2013-06-01 12:28:04 (GMT)
commit5390e5203e5cbcf5ec736ddaba3dc58b5e2c2c6f (patch)
tree113eb3aa721a36ddcefb656d9bd56506bf99c98c /src/gdal.mk
parentb974ef08d8b4fc555259eb49c9e34ef69c411948 (diff)
downloadmxe-5390e5203e5cbcf5ec736ddaba3dc58b5e2c2c6f.zip
mxe-5390e5203e5cbcf5ec736ddaba3dc58b5e2c2c6f.tar.gz
mxe-5390e5203e5cbcf5ec736ddaba3dc58b5e2c2c6f.tar.bz2
various packages: enable/disable mingw-w64 builds
Diffstat (limited to 'src/gdal.mk')
-rw-r--r--src/gdal.mk31
1 files changed, 26 insertions, 5 deletions
diff --git a/src/gdal.mk b/src/gdal.mk
index 5489b06..23f2653 100644
--- a/src/gdal.mk
+++ b/src/gdal.mk
@@ -16,11 +16,12 @@ define $(PKG)_UPDATE
head -1
endef
-define $(PKG)_BUILD
+define $(PKG)_CONFIGURE
# The option '--without-threads' means native win32 threading without pthread.
cd '$(1)' && ./configure \
--host='$(TARGET)' \
--build="`config.guess`" \
+ --enable-static \
--disable-shared \
--prefix='$(PREFIX)/$(TARGET)' \
--with-bsb \
@@ -42,9 +43,7 @@ define $(PKG)_BUILD
--with-geos='$(PREFIX)/$(TARGET)/bin/geos-config' \
--with-pg='$(PREFIX)/bin/$(TARGET)-pg_config' \
--with-gta='$(PREFIX)/$(TARGET)' \
- --with-hdf4='$(PREFIX)/$(TARGET)' \
--with-hdf5='$(PREFIX)/$(TARGET)' \
- --with-netcdf='$(PREFIX)/$(TARGET)' \
--without-odbc \
--without-static-proj4 \
--without-xerces \
@@ -72,8 +71,10 @@ define $(PKG)_BUILD
--without-perl \
--without-php \
--without-ruby \
- --without-python \
- LIBS="-ljpeg -lsecur32 -lportablexdr `'$(TARGET)-pkg-config' --libs openssl libtiff-4`"
+ --without-python
+endef
+
+define $(PKG)_MAKE
$(MAKE) -C '$(1)' -j 1 lib-target
$(MAKE) -C '$(1)' -j 1 install-lib
$(MAKE) -C '$(1)/port' -j 1 install
@@ -84,3 +85,23 @@ define $(PKG)_BUILD
$(MAKE) -C '$(1)/apps' -j 1 install BIN_LIST=
ln -sf '$(PREFIX)/$(TARGET)/bin/gdal-config' '$(PREFIX)/bin/$(TARGET)-gdal-config'
endef
+
+define $(PKG)_BUILD
+ $($(PKG)_CONFIGURE)\
+ --with-hdf4='$(PREFIX)/$(TARGET)' \
+ --with-netcdf='$(PREFIX)/$(TARGET)' \
+ LIBS="-ljpeg -lsecur32 -lportablexdr `'$(TARGET)-pkg-config' --libs openssl libtiff-4`"
+ $($(PKG)_MAKE)
+endef
+
+define $(PKG)_BUILD_x86_64-w64-mingw32
+ $($(PKG)_CONFIGURE) \
+ LIBS="-ljpeg -lsecur32 `'$(TARGET)-pkg-config' --libs openssl libtiff-4`"
+ $($(PKG)_MAKE)
+endef
+
+define $(PKG)_BUILD_i686-w64-mingw32
+ $($(PKG)_CONFIGURE) \
+ LIBS="-ljpeg -lsecur32 -lportablexdr `'$(TARGET)-pkg-config' --libs openssl libtiff-4`"
+ $($(PKG)_MAKE)
+endef