summaryrefslogtreecommitdiffstats
path: root/src/tiff.mk
blob: e30344021a5fdecbd881a735918818d7514e7323 (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
# LibTIFF
# http://www.remotesensing.org/libtiff/

PKG            := tiff
$(PKG)_VERSION := 3.8.2
$(PKG)_SUBDIR  := tiff-$($(PKG)_VERSION)
$(PKG)_FILE    := tiff-$($(PKG)_VERSION).tar.gz
$(PKG)_URL     := http://download.osgeo.org/libtiff/$($(PKG)_FILE)
$(PKG)_URL_2   := ftp://ftp.remotesensing.org/pub/libtiff/$($(PKG)_FILE)
$(PKG)_DEPS    := gcc pthreads zlib jpeg

define $(PKG)_UPDATE
    wget -q -O- 'http://www.remotesensing.org/libtiff/' | \
    $(SED) -n 's,.*>v\([0-9][^<]*\)<.*,\1,p' | \
    head -1
endef

define $(PKG)_BUILD
    cd '$(1)' && ./configure \
        --host='$(TARGET)' \
        --disable-shared \
        --prefix='$(PREFIX)/$(TARGET)' \
        PTHREAD_LIBS='-lpthread -lws2_32' \
        --without-x
    $(MAKE) -C '$(1)' -j '$(JOBS)' install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS=
endef