summaryrefslogtreecommitdiffstats
path: root/src/libgeotiff.mk
blob: 67591e2bc10a662db36906a6bc277609f77ac8d5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# GeoTiff
# http://trac.osgeo.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://download.osgeo.org/geotiff/libgeotiff/$($(PKG)_FILE)
$(PKG)_DEPS    := gcc zlib jpeg tiff proj

define $(PKG)_UPDATE
    wget -q -O- 'http://trac.osgeo.org/geotiff/' | \
    $(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 '$(1)/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