annotate src/gdal.mk @ 6361:c7c04c1e8b0e

* src/of-symbolic.mk: update to v3.0.1
author John Donoghue <john.donoghue@ieee.org>
date Thu, 11 Aug 2022 10:11:28 -0400
parents 0d34a67863cc
children fcbdc7feaf0f
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2333
f653602a0500 Rebrand to new project name MXE
Volker Grabsch <vog@notjusthosting.com>
parents: 2270
diff changeset
1 # This file is part of MXE.
2353
99516e73b368 Move doc/index.html -> index.html
Volker Grabsch <vog@notjusthosting.com>
parents: 2349
diff changeset
2 # See index.html for further information.
414
d2a6561bcb6d add a copyright notice and license to each source file
Volker Grabsch <vog@notjusthosting.com>
parents: 377
diff changeset
3
306
85ffa9259036 validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents: 265
diff changeset
4 PKG := gdal
4927
1523dcb58525 * src/gdal.mk: update to v2.4.0
John Donoghue
parents: 4850
diff changeset
5 $(PKG)_IGNORE :
6297
0d34a67863cc * src/gdal.mk: update to v3.5.1
John Donoghue <john.donoghue@ieee.org>
parents: 6272
diff changeset
6 $(PKG)_VERSION := 3.5.1
0d34a67863cc * src/gdal.mk: update to v3.5.1
John Donoghue <john.donoghue@ieee.org>
parents: 6272
diff changeset
7 $(PKG)_CHECKSUM := 86e6b03f9c7bb0fe7c01bdd0af87c7ee287ccdca
306
85ffa9259036 validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents: 265
diff changeset
8 $(PKG)_SUBDIR := gdal-$($(PKG)_VERSION)
6272
9104abd5baf5 src/gdal.mk: update to v3.5.0.3
John Donoghue <john.donoghue@ieee.org>
parents: 6230
diff changeset
9 $(PKG)_FILE := gdal-$($(PKG)_VERSION).tar.gz
9104abd5baf5 src/gdal.mk: update to v3.5.0.3
John Donoghue <john.donoghue@ieee.org>
parents: 6230
diff changeset
10 $(PKG)_URL := https://github.com/OSGeo/gdal/archive/refs/tags/v$($(PKG)_VERSION).tar.gz
6044
b07676fd56db GDAL: Update to version 3.3.3.
Markus Mützel <markus.muetzel@gmx.de>
parents: 6043
diff changeset
11 $(PKG)_DEPS := zlib libpng tiff libgeotiff libiconv jpeg jasper giflib expat sqlite curl postgresql gta proj pcre qhull
168
df943f9448f7 translated package: gdal
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
12
df943f9448f7 translated package: gdal
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
13 define $(PKG)_UPDATE
6053
3271eabb7af5 * src/gdal.mk: update gdal update rule to use github
John Donoghue <john.donoghue@ieee.org>
parents: 6044
diff changeset
14 $(WGET) -q -O- 'https://github.com/OSGeo/gdal/tags' | \
3271eabb7af5 * src/gdal.mk: update gdal update rule to use github
John Donoghue <john.donoghue@ieee.org>
parents: 6044
diff changeset
15 $(SED) -n 's|.*releases/tag/v\([^"]*\).*|\1|p' | $(GREP) -v "RC" | $(SORT) -V | \
3271eabb7af5 * src/gdal.mk: update gdal update rule to use github
John Donoghue <john.donoghue@ieee.org>
parents: 6044
diff changeset
16 tail -1
168
df943f9448f7 translated package: gdal
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
17 endef
df943f9448f7 translated package: gdal
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
18
df943f9448f7 translated package: gdal
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
19 define $(PKG)_BUILD
6272
9104abd5baf5 src/gdal.mk: update to v3.5.0.3
John Donoghue <john.donoghue@ieee.org>
parents: 6230
diff changeset
20 cd '$(1)' && ./autogen.sh && ./configure \
3013
bcc26ffe9a0f use variable for --host and --build configure arguments
John W. Eaton <jwe@octave.org>
parents: 3012
diff changeset
21 $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \
5128
d394b941d702 * src/gdal.mk: call configure with cxx and ldflags set
John Donoghue
parents: 5119
diff changeset
22 $(CONFIGURE_CPPFLAGS) $(CONFIGURE_LDFLAGS) \
2855
47558e958113 Allow static/shared libraries to be configured in top-level Makefile.
John W. Eaton <jwe@octave.org>
parents: 2812
diff changeset
23 $(ENABLE_SHARED_OR_STATIC) \
3012
100e618349f7 Improve handling of prefix directories by defining HOST_PREFIX and
John W. Eaton <jwe@octave.org>
parents: 3006
diff changeset
24 --prefix='$(HOST_PREFIX)' \
6043
e435b7ef350b GDAL: Update to version 3.2.3.
Markus Mützel <markus.muetzel@gmx.de>
parents: 6042
diff changeset
25 --with-cpp14 \
744
b09aadb3810b make all dependencies explicit in package gdal
Volker Grabsch <vog@notjusthosting.com>
parents: 741
diff changeset
26 --with-pam \
3012
100e618349f7 Improve handling of prefix directories by defining HOST_PREFIX and
John W. Eaton <jwe@octave.org>
parents: 3006
diff changeset
27 --with-libz='$(HOST_PREFIX)' \
100e618349f7 Improve handling of prefix directories by defining HOST_PREFIX and
John W. Eaton <jwe@octave.org>
parents: 3006
diff changeset
28 --with-png='$(HOST_PREFIX)' \
100e618349f7 Improve handling of prefix directories by defining HOST_PREFIX and
John W. Eaton <jwe@octave.org>
parents: 3006
diff changeset
29 --with-libtiff='$(HOST_PREFIX)' \
100e618349f7 Improve handling of prefix directories by defining HOST_PREFIX and
John W. Eaton <jwe@octave.org>
parents: 3006
diff changeset
30 --with-geotiff='$(HOST_PREFIX)' \
100e618349f7 Improve handling of prefix directories by defining HOST_PREFIX and
John W. Eaton <jwe@octave.org>
parents: 3006
diff changeset
31 --with-jpeg='$(HOST_PREFIX)' \
100e618349f7 Improve handling of prefix directories by defining HOST_PREFIX and
John W. Eaton <jwe@octave.org>
parents: 3006
diff changeset
32 --with-jasper='$(HOST_PREFIX)' \
100e618349f7 Improve handling of prefix directories by defining HOST_PREFIX and
John W. Eaton <jwe@octave.org>
parents: 3006
diff changeset
33 --with-gif='$(HOST_PREFIX)' \
100e618349f7 Improve handling of prefix directories by defining HOST_PREFIX and
John W. Eaton <jwe@octave.org>
parents: 3006
diff changeset
34 --with-expat='$(HOST_PREFIX)' \
100e618349f7 Improve handling of prefix directories by defining HOST_PREFIX and
John W. Eaton <jwe@octave.org>
parents: 3006
diff changeset
35 --with-sqlite3='$(HOST_PREFIX)' \
3014
b6c7244a2f66 Use HOST_BINDIR, HOST_LIBDIR, and HOST_INCDIR instead of MXE_BINDIR, MXE_LIBDIR, and MXE_INCDIR. Attempt to use these variables consistently instead of using $(HOST_PREFIX)/bin, $(HOST_PREFIX)/lib, and $(HOST_PREFIX)/include
John W. Eaton <jwe@octave.org>
parents: 3013
diff changeset
36 --with-curl='$(HOST_BINDIR)/curl-config' \
6044
b07676fd56db GDAL: Update to version 3.3.3.
Markus Mützel <markus.muetzel@gmx.de>
parents: 6043
diff changeset
37 --without-geos \
6042
eb62db3251f3 * src/gdal.mk: Update to version 3.1.4.
Markus Mützel <markus.muetzel@gmx.de>
parents: 5563
diff changeset
38 --with-pg \
3012
100e618349f7 Improve handling of prefix directories by defining HOST_PREFIX and
John W. Eaton <jwe@octave.org>
parents: 3006
diff changeset
39 --with-gta='$(HOST_PREFIX)' \
6042
eb62db3251f3 * src/gdal.mk: Update to version 3.1.4.
Markus Mützel <markus.muetzel@gmx.de>
parents: 5563
diff changeset
40 --with-xml2 \
939
096553bf7955 disable odbc support of package gdal (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents: 794
diff changeset
41 --without-odbc \
744
b09aadb3810b make all dependencies explicit in package gdal
Volker Grabsch <vog@notjusthosting.com>
parents: 741
diff changeset
42 --without-xerces \
b09aadb3810b make all dependencies explicit in package gdal
Volker Grabsch <vog@notjusthosting.com>
parents: 741
diff changeset
43 --without-grass \
b09aadb3810b make all dependencies explicit in package gdal
Volker Grabsch <vog@notjusthosting.com>
parents: 741
diff changeset
44 --without-libgrass \
b09aadb3810b make all dependencies explicit in package gdal
Volker Grabsch <vog@notjusthosting.com>
parents: 741
diff changeset
45 --without-spatialite \
b09aadb3810b make all dependencies explicit in package gdal
Volker Grabsch <vog@notjusthosting.com>
parents: 741
diff changeset
46 --without-cfitsio \
b09aadb3810b make all dependencies explicit in package gdal
Volker Grabsch <vog@notjusthosting.com>
parents: 741
diff changeset
47 --without-pcraster \
b09aadb3810b make all dependencies explicit in package gdal
Volker Grabsch <vog@notjusthosting.com>
parents: 741
diff changeset
48 --without-netcdf \
b09aadb3810b make all dependencies explicit in package gdal
Volker Grabsch <vog@notjusthosting.com>
parents: 741
diff changeset
49 --without-pcidsk \
b09aadb3810b make all dependencies explicit in package gdal
Volker Grabsch <vog@notjusthosting.com>
parents: 741
diff changeset
50 --without-ogdi \
b09aadb3810b make all dependencies explicit in package gdal
Volker Grabsch <vog@notjusthosting.com>
parents: 741
diff changeset
51 --without-fme \
b09aadb3810b make all dependencies explicit in package gdal
Volker Grabsch <vog@notjusthosting.com>
parents: 741
diff changeset
52 --without-hdf4 \
b09aadb3810b make all dependencies explicit in package gdal
Volker Grabsch <vog@notjusthosting.com>
parents: 741
diff changeset
53 --without-hdf5 \
b09aadb3810b make all dependencies explicit in package gdal
Volker Grabsch <vog@notjusthosting.com>
parents: 741
diff changeset
54 --without-ecw \
b09aadb3810b make all dependencies explicit in package gdal
Volker Grabsch <vog@notjusthosting.com>
parents: 741
diff changeset
55 --without-kakadu \
b09aadb3810b make all dependencies explicit in package gdal
Volker Grabsch <vog@notjusthosting.com>
parents: 741
diff changeset
56 --without-mrsid \
b09aadb3810b make all dependencies explicit in package gdal
Volker Grabsch <vog@notjusthosting.com>
parents: 741
diff changeset
57 --without-jp2mrsid \
b09aadb3810b make all dependencies explicit in package gdal
Volker Grabsch <vog@notjusthosting.com>
parents: 741
diff changeset
58 --without-msg \
b09aadb3810b make all dependencies explicit in package gdal
Volker Grabsch <vog@notjusthosting.com>
parents: 741
diff changeset
59 --without-oci \
b09aadb3810b make all dependencies explicit in package gdal
Volker Grabsch <vog@notjusthosting.com>
parents: 741
diff changeset
60 --without-mysql \
b09aadb3810b make all dependencies explicit in package gdal
Volker Grabsch <vog@notjusthosting.com>
parents: 741
diff changeset
61 --without-ingres \
b09aadb3810b make all dependencies explicit in package gdal
Volker Grabsch <vog@notjusthosting.com>
parents: 741
diff changeset
62 --without-dods-root \
b09aadb3810b make all dependencies explicit in package gdal
Volker Grabsch <vog@notjusthosting.com>
parents: 741
diff changeset
63 --without-idb \
b09aadb3810b make all dependencies explicit in package gdal
Volker Grabsch <vog@notjusthosting.com>
parents: 741
diff changeset
64 --without-epsilon \
b09aadb3810b make all dependencies explicit in package gdal
Volker Grabsch <vog@notjusthosting.com>
parents: 741
diff changeset
65 --without-perl \
168
df943f9448f7 translated package: gdal
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
66 --without-python \
4213
cf9bb8eeaf1c * gdal.mk: Omit -lsecur32 and openssl libs from LIBS.
John W. Eaton <jwe@octave.org>
parents: 4093
diff changeset
67 LIBS="-ljpeg `'$(MXE_PKG_CONFIG)' --libs libtiff-4`"
5563
1ac29cddea48 * src/gdal.mk: Use parallel make.
Markus Mützel <markus.muetzel@gmx.de>
parents: 5454
diff changeset
68 $(MAKE) -C '$(1)' -j '$(JOBS)' lib-target
182
d1678aced603 disable parallel builds for packages pthreads, winpcap and gdal
Volker Grabsch <vog@notjusthosting.com>
parents: 181
diff changeset
69 $(MAKE) -C '$(1)' -j 1 install-lib
d1678aced603 disable parallel builds for packages pthreads, winpcap and gdal
Volker Grabsch <vog@notjusthosting.com>
parents: 181
diff changeset
70 $(MAKE) -C '$(1)/port' -j 1 install
d1678aced603 disable parallel builds for packages pthreads, winpcap and gdal
Volker Grabsch <vog@notjusthosting.com>
parents: 181
diff changeset
71 $(MAKE) -C '$(1)/gcore' -j 1 install
d1678aced603 disable parallel builds for packages pthreads, winpcap and gdal
Volker Grabsch <vog@notjusthosting.com>
parents: 181
diff changeset
72 $(MAKE) -C '$(1)/frmts' -j 1 install
d1678aced603 disable parallel builds for packages pthreads, winpcap and gdal
Volker Grabsch <vog@notjusthosting.com>
parents: 181
diff changeset
73 $(MAKE) -C '$(1)/alg' -j 1 install
d1678aced603 disable parallel builds for packages pthreads, winpcap and gdal
Volker Grabsch <vog@notjusthosting.com>
parents: 181
diff changeset
74 $(MAKE) -C '$(1)/ogr' -j 1 install OGR_ENABLED=
d1678aced603 disable parallel builds for packages pthreads, winpcap and gdal
Volker Grabsch <vog@notjusthosting.com>
parents: 181
diff changeset
75 $(MAKE) -C '$(1)/apps' -j 1 install BIN_LIST=
6272
9104abd5baf5 src/gdal.mk: update to v3.5.0.3
John Donoghue <john.donoghue@ieee.org>
parents: 6230
diff changeset
76 $(MAKE) -C '$(1)/generated_headers' -j 1 install
4090
d6f9b54851b5 l: update to v1.11.4
John Donoghue
parents: 3480
diff changeset
77 $(MAKE) -C '$(1)' -j 1 gdal.pc
d6f9b54851b5 l: update to v1.11.4
John Donoghue
parents: 3480
diff changeset
78 $(INSTALL) -d '$(HOST_LIBDIR)/pkgconfig'
d6f9b54851b5 l: update to v1.11.4
John Donoghue
parents: 3480
diff changeset
79 $(INSTALL) '$(1)/gdal.pc' '$(HOST_LIBDIR)/pkgconfig/'
3216
11f8ec654cd4 Avoid copying or linking files that are the same when doing native build
John W. Eaton <jwe@octave.org>
parents: 3048
diff changeset
80 if [ $(MXE_NATIVE_BUILD) = no ]; then \
11f8ec654cd4 Avoid copying or linking files that are the same when doing native build
John W. Eaton <jwe@octave.org>
parents: 3048
diff changeset
81 $(INSTALL) -m755 '$(HOST_BINDIR)/gdal-config' '$(BUILD_TOOLS_PREFIX)/bin/$(MXE_TOOL_PREFIX)gdal-config'; \
11f8ec654cd4 Avoid copying or linking files that are the same when doing native build
John W. Eaton <jwe@octave.org>
parents: 3048
diff changeset
82 fi
168
df943f9448f7 translated package: gdal
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
83 endef