summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTony Theodore <tonyt@logyst.com>2015-09-11 04:41:09 (GMT)
committerTony Theodore <tonyt@logyst.com>2015-09-11 04:41:09 (GMT)
commit8afc49f77d2e483a3b23642a4625afa4fde54fef (patch)
tree83c30dd02df2eaee1565a1cd6f4d311b90e985c4
parent2435d7b58fb6fd1e65c1b227fb48db856e6777e6 (diff)
downloadmxe-8afc49f77d2e483a3b23642a4625afa4fde54fef.zip
mxe-8afc49f77d2e483a3b23642a4625afa4fde54fef.tar.gz
mxe-8afc49f77d2e483a3b23642a4625afa4fde54fef.tar.bz2
gdal:unify build rule - all deps now x86_64 enabled
-rw-r--r--src/gdal.mk20
1 files changed, 3 insertions, 17 deletions
diff --git a/src/gdal.mk b/src/gdal.mk
index cd3275a..a769e9b 100644
--- a/src/gdal.mk
+++ b/src/gdal.mk
@@ -19,7 +19,7 @@ define $(PKG)_UPDATE
head -1
endef
-define $(PKG)_CONFIGURE
+define $(PKG)_BUILD
cd '$(1)' && autoreconf -fi
# The option '--without-threads' means native win32 threading without pthread.
cd '$(1)' && ./configure \
@@ -73,10 +73,9 @@ define $(PKG)_CONFIGURE
--without-perl \
--without-php \
--without-ruby \
- --without-python
-endef
+ --without-python \
+ LIBS="-ljpeg -lsecur32 -lportablexdr `'$(TARGET)-pkg-config' --libs openssl libtiff-4`"
-define $(PKG)_MAKE
$(MAKE) -C '$(1)' -j '$(JOBS)' lib-target
$(MAKE) -C '$(1)' -j '$(JOBS)' install-lib
$(MAKE) -C '$(1)/port' -j '$(JOBS)' install
@@ -87,16 +86,3 @@ define $(PKG)_MAKE
$(MAKE) -C '$(1)/apps' -j '$(JOBS)' install
ln -sf '$(PREFIX)/$(TARGET)/bin/gdal-config' '$(PREFIX)/bin/$(TARGET)-gdal-config'
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) \
- --with-netcdf='$(PREFIX)/$(TARGET)' \
- LIBS="-ljpeg -lsecur32 -lportablexdr `'$(TARGET)-pkg-config' --libs openssl libtiff-4`"
- $($(PKG)_MAKE)
-endef