mxe/src/libgeotiff.mk

33 lines
1.1 KiB
Makefile
Raw Normal View History

2012-03-28 14:46:58 +01:00
# This file is part of MXE.
2012-03-29 11:14:15 +01:00
# See index.html for further information.
2008-11-09 02:00:32 +00:00
PKG := libgeotiff
$(PKG)_IGNORE :=
$(PKG)_VERSION := 1.4.0
2012-04-20 19:33:45 +01:00
$(PKG)_CHECKSUM := 4c6f405869826bb7d9f35f1d69167e3b44a57ef0
$(PKG)_SUBDIR := libgeotiff-$($(PKG)_VERSION)
$(PKG)_FILE := libgeotiff-$($(PKG)_VERSION).tar.gz
$(PKG)_URL := http://download.osgeo.org/geotiff/libgeotiff/$($(PKG)_FILE)
$(PKG)_URL_2 := ftp://ftp.remotesensing.org/geotiff/libgeotiff/$($(PKG)_FILE)
$(PKG)_DEPS := gcc zlib jpeg tiff proj
2008-11-09 02:00:32 +00:00
define $(PKG)_UPDATE
$(WGET) -q -O- 'http://trac.osgeo.org/geotiff/' | \
2008-11-09 02:00:32 +00:00
$(SED) -n 's,.*libgeotiff-\([0-9][^>]*\)\.tar.*,\1,p' | \
head -1
endef
define $(PKG)_BUILD
$(SED) -i 's,/usr/local,@prefix@,' '$(1)/bin/Makefile.in'
touch '$(1)/configure'
2008-11-09 02:00:32 +00:00
cd '$(1)' && ./configure \
--host='$(TARGET)' \
--disable-shared \
2010-05-12 00:58:55 +01:00
--prefix='$(PREFIX)/$(TARGET)' \
LIBS="`'$(TARGET)-pkg-config' --libs libtiff-4` -ljpeg -lz"
$(MAKE) -C '$(1)' -j 1 all install EXEEXT=.remove-me MAKE='$(MAKE)'
2008-11-09 02:00:32 +00:00
rm -fv '$(PREFIX)/$(TARGET)'/bin/*.remove-me
endef
$(PKG)_BUILD_SHARED =