view src/libgeotiff.mk @ 7186:19a46de50b18 default tip @

* src/jasper.mk: update to v4.2.4
author John Donoghue <john.donoghue@ieee.org>
date Thu, 02 May 2024 09:22:30 -0400
parents 4b8764444acb
children
line wrap: on
line source

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

PKG             := libgeotiff
$(PKG)_IGNORE   :=
$(PKG)_VERSION  := 1.7.1
$(PKG)_CHECKSUM := 75b2bdc9478b9e8b3c684b9ad0e9b154e75bd843
$(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     := zlib jpeg tiff proj

define $(PKG)_UPDATE
    $(call GITHUB_PKG_UPDATE,OSGeo,libgeotiff,)
endef

define $(PKG)_BUILD
    $(SED) -i 's,/usr/local,@prefix@,' '$(1)/bin/Makefile.in'
    touch '$(1)/configure'
    cd '$(1)' && autoreconf -fi
    cd '$(1)' && ./configure \
        $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \
        $(ENABLE_SHARED_OR_STATIC) \
        --prefix='$(HOST_PREFIX)' \
        --with-zlib=$(HOST_PREFIX) \
        --with-jpeg=$(HOST_PREFIX) \
        --with-libtiff=$(HOST_PREFIX) \
        --with-proj=$(HOST_PREFIX) 

    $(MAKE) -C '$(1)' -j $(JOBS) 
    $(MAKE) -C '$(1)' -j 1 install
endef