view src/tiff.mk @ 4308:411ddca4207f

More dont install dependancy docs * src/tiff.mk: add MXE_DISABLE_DOCS to install * Makefile.in: add dist_manX_MANS targets to MXE_DISABLE_DOCS * src/pcre.mk: remove html and man pages from installed files * src/libssh2.mk: add MXE_DISABLE_DOCS to install
author John D
date Sat, 31 Dec 2016 09:54:08 -0500
parents ae464c78bf92
children 3cc8c0187b44
line wrap: on
line source

# This file is part of MXE.
# See index.html for further information.

PKG             := tiff
$(PKG)_IGNORE   :=
$(PKG)_VERSION  := 4.0.7
$(PKG)_CHECKSUM := 2c1b64478e88f93522a42dd5271214a0e5eae648
$(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/libtiff/$($(PKG)_FILE)
$(PKG)_DEPS     := zlib jpeg
ifneq ($(MXE_SYSTEM),msvc)
    $(PKG)_DEPS += xz
endif

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 \
        $(CONFIGURE_CPPFLAGS) $(CONFIGURE_LDFLAGS) \
        $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \
        $(ENABLE_SHARED_OR_STATIC) \
        --prefix='$(HOST_PREFIX)' \
        --without-x && $(CONFIGURE_POST_HOOK)
    $(MAKE) -C '$(1)' -j '$(JOBS)' $(MXE_DISABLE_PROGS) DESTDIR='$(3)'
    $(MAKE) -C '$(1)' -j 1 install $(MXE_DISABLE_PROGS) $(MXE_DISABLE_DOCS) DESTDIR='$(3)'

    rm -f '$(3)$(HOST_LIBDIR)/libtiff.la'
    rm -f '$(3)$(HOST_LIBDIR)/libtiffxx.la'
endef