view src/gdal.mk @ 6516:5ef7d51c2195

readline: Update to version 8.2-001. * src/readline.mk: Update version and checksum. * src/readline-0-001-upstream.patch: Upstream patch re-formatted to apply in MXE Octave. See: https://ftp.gnu.org/pub/gnu/readline/readline-8.2-patches/readline82-001 * src/readline-0-002-upstream.patch: Remove upstream patch for previous version. * src/readline-1-input.patch, src/readline-1-sigwinch.patch: Update patches. * src/readline-3-fd_set.patch: Add patch to guard functions that use types that aren't available on Windows. * src/gdb-1-readline-8.2.patch: Cherry-pick upstream patch. * dist-files.mk: Update files in list.
author Markus Mützel <markus.muetzel@gmx.de>
date Sat, 12 Nov 2022 17:00:41 +0100
parents 2124aba1e8af
children 6b51e5fcf32b
line wrap: on
line source

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

PKG             := gdal
$(PKG)_IGNORE   :
$(PKG)_VERSION  := 3.5.3
$(PKG)_CHECKSUM := 8ff34bb19570237a73a1de8d1a919f043243a521
$(PKG)_SUBDIR   := gdal-$($(PKG)_VERSION)
$(PKG)_FILE     := gdal-$($(PKG)_VERSION).tar.gz
$(PKG)_URL      := https://github.com/OSGeo/gdal/archive/refs/tags/v$($(PKG)_VERSION).tar.gz
$(PKG)_DEPS     := zlib libpng tiff libgeotiff libiconv jpeg jasper giflib expat sqlite curl postgresql gta proj pcre qhull

define $(PKG)_UPDATE
    $(WGET) -q -O- 'https://github.com/OSGeo/gdal/tags' | \
    $(SED) -n 's|.*releases/tag/v\([^"]*\).*|\1|p' | $(GREP) -v "RC" | $(SORT) -V | \
    tail -1
endef

define $(PKG)_BUILD
    cd '$(1)' && ./autogen.sh && ./configure \
        $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \
	$(CONFIGURE_CPPFLAGS) $(CONFIGURE_LDFLAGS) \
        $(ENABLE_SHARED_OR_STATIC) \
        --prefix='$(HOST_PREFIX)' \
        --with-cpp14 \
        --with-pam \
        --with-libz='$(HOST_PREFIX)' \
        --with-png='$(HOST_PREFIX)' \
        --with-libtiff='$(HOST_PREFIX)' \
        --with-geotiff='$(HOST_PREFIX)' \
        --with-jpeg='$(HOST_PREFIX)' \
        --with-jasper='$(HOST_PREFIX)' \
        --with-gif='$(HOST_PREFIX)' \
        --with-expat='$(HOST_PREFIX)' \
        --with-sqlite3='$(HOST_PREFIX)' \
        --with-curl='$(HOST_BINDIR)/curl-config' \
        --without-geos \
        --with-pg \
        --with-gta='$(HOST_PREFIX)' \
        --with-xml2 \
        --without-odbc \
        --without-xerces \
        --without-grass \
        --without-libgrass \
        --without-spatialite \
        --without-cfitsio \
        --without-pcraster \
        --without-netcdf \
        --without-pcidsk \
        --without-ogdi \
        --without-fme \
        --without-hdf4 \
        --without-hdf5 \
        --without-ecw \
        --without-kakadu \
        --without-mrsid \
        --without-jp2mrsid \
        --without-msg \
        --without-oci \
        --without-mysql \
        --without-ingres \
        --without-dods-root \
        --without-idb \
        --without-epsilon \
        --without-perl \
        --without-python \
        LIBS="-ljpeg `'$(MXE_PKG_CONFIG)' --libs libtiff-4`"
    $(MAKE) -C '$(1)'       -j '$(JOBS)' lib-target
    $(MAKE) -C '$(1)'       -j 1 install-lib
    $(MAKE) -C '$(1)/port'  -j 1 install
    $(MAKE) -C '$(1)/gcore' -j 1 install
    $(MAKE) -C '$(1)/frmts' -j 1 install
    $(MAKE) -C '$(1)/alg'   -j 1 install
    $(MAKE) -C '$(1)/ogr'   -j 1 install OGR_ENABLED=
    $(MAKE) -C '$(1)/apps'  -j 1 install BIN_LIST=
    $(MAKE) -C '$(1)/generated_headers'  -j 1 install
    $(MAKE) -C '$(1)'       -j 1 gdal.pc
    $(INSTALL) -d '$(HOST_LIBDIR)/pkgconfig'
    $(INSTALL) '$(1)/gdal.pc' '$(HOST_LIBDIR)/pkgconfig/'
    if [ $(MXE_NATIVE_BUILD) = no ]; then \
      $(INSTALL) -m755 '$(HOST_BINDIR)/gdal-config' '$(BUILD_TOOLS_PREFIX)/bin/$(MXE_TOOL_PREFIX)gdal-config'; \
    fi
endef