summaryrefslogtreecommitdiffstats
path: root/src/libgeotiff.mk
diff options
context:
space:
mode:
authorVolker Grabsch <vog@notjusthosting.com>2008-11-09 02:00:32 (GMT)
committerVolker Grabsch <vog@notjusthosting.com>2008-11-09 02:00:32 (GMT)
commit06ae4538034838a92b8f0f7752f88c9290fcffc8 (patch)
treea8f8c1b014229f9853a8e19447f85066dd3db5a6 /src/libgeotiff.mk
parent801070b4a4dd27089803bdce04e1c1e5f99ef54e (diff)
downloadmxe-06ae4538034838a92b8f0f7752f88c9290fcffc8.zip
mxe-06ae4538034838a92b8f0f7752f88c9290fcffc8.tar.gz
mxe-06ae4538034838a92b8f0f7752f88c9290fcffc8.tar.bz2
translated package: libgeotiff
Diffstat (limited to 'src/libgeotiff.mk')
-rw-r--r--src/libgeotiff.mk27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/libgeotiff.mk b/src/libgeotiff.mk
new file mode 100644
index 0000000..f2f73c6
--- /dev/null
+++ b/src/libgeotiff.mk
@@ -0,0 +1,27 @@
+# GeoTiff
+# http://www.remotesensing.org/geotiff/
+
+PKG := libgeotiff
+$(PKG)_VERSION := 1.2.4
+$(PKG)_SUBDIR := libgeotiff-$($(PKG)_VERSION)
+$(PKG)_FILE := libgeotiff-$($(PKG)_VERSION).tar.gz
+$(PKG)_URL := ftp://ftp.remotesensing.org/pub/geotiff/libgeotiff/$($(PKG)_FILE)
+$(PKG)_URL_2 := http://dl.maptools.org/dl/geotiff/libgeotiff/$($(PKG)_FILE)
+$(PKG)_DEPS := gcc zlib jpeg tiff proj
+
+define $(PKG)_UPDATE
+ wget -q -O- 'http://www.remotesensing.org/geotiff/geotiff.html' | \
+ $(SED) -n 's,.*libgeotiff-\([0-9][^>]*\)\.tar.*,\1,p' | \
+ head -1
+endef
+
+define $(PKG)_BUILD
+ $(SED) 's,/usr/local,@prefix@,' -i '$(1)/bin/Makefile.in'
+ touch configure
+ cd '$(1)' && ./configure \
+ --host='$(TARGET)' \
+ --disable-shared \
+ --prefix='$(PREFIX)/$(TARGET)'
+ $(MAKE) -C '$(1)' -j 1 all install EXEEXT=.remove-me
+ rm -fv '$(PREFIX)/$(TARGET)'/bin/*.remove-me
+endef