Mercurial > mxe-octave
annotate src/gdal.mk @ 4429:6e7871c6ce48
gdal: update version to v2.2.1
* src/gdal.mk: update version, checksum
author | John D |
---|---|
date | Fri, 21 Jul 2017 16:31:31 -0400 |
parents | db93aea509a5 |
children | e1105781618a |
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 |
448
e9afec55fd6b
improved version recognition, enable the notation of ignored (bad) package versions
Volker Grabsch <vog@notjusthosting.com>
parents:
432
diff
changeset
|
5 $(PKG)_IGNORE := |
4429 | 6 $(PKG)_VERSION := 2.2.1 |
7 $(PKG)_CHECKSUM := 27ebae08dca26d999318621265eddbcbf6b5b5e4 | |
306
85ffa9259036
validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents:
265
diff
changeset
|
8 $(PKG)_SUBDIR := gdal-$($(PKG)_VERSION) |
85ffa9259036
validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents:
265
diff
changeset
|
9 $(PKG)_FILE := gdal-$($(PKG)_VERSION).tar.gz |
4090 | 10 $(PKG)_URL := http://download.osgeo.org/gdal/$($(PKG)_VERSION)/$($(PKG)_FILE) |
11 $(PKG)_URL_2 := ftp://ftp.remotesensing.org/gdal/$($(PKG)_VERSION)/$($(PKG)_FILE) | |
3048
5ef49fb3299d
treat gcc and binutils as build tools
John W. Eaton <jwe@octave.org>
parents:
3031
diff
changeset
|
12 $(PKG)_DEPS := zlib libpng tiff libgeotiff jpeg jasper giflib expat sqlite curl geos postgresql gta |
168
df943f9448f7
translated package: gdal
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
13 |
df943f9448f7
translated package: gdal
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
14 define $(PKG)_UPDATE |
2525
4d0f3a9da57e
all packages: use $(WGET) portability variable
Tony Theodore <tonyt@logyst.com>
parents:
2365
diff
changeset
|
15 $(WGET) -q -O- 'http://trac.osgeo.org/gdal/wiki/DownloadSource' | \ |
168
df943f9448f7
translated package: gdal
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
16 $(SED) -n 's,.*gdal-\([0-9][^>]*\)\.tar.*,\1,p' | \ |
df943f9448f7
translated package: gdal
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
17 head -1 |
df943f9448f7
translated package: gdal
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
18 endef |
df943f9448f7
translated package: gdal
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
19 |
df943f9448f7
translated package: gdal
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
20 define $(PKG)_BUILD |
744
b09aadb3810b
make all dependencies explicit in package gdal
Volker Grabsch <vog@notjusthosting.com>
parents:
741
diff
changeset
|
21 # The option '--without-threads' means native win32 threading without pthread. |
168
df943f9448f7
translated package: gdal
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
22 cd '$(1)' && ./configure \ |
3013
bcc26ffe9a0f
use variable for --host and --build configure arguments
John W. Eaton <jwe@octave.org>
parents:
3012
diff
changeset
|
23 $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \ |
2855
47558e958113
Allow static/shared libraries to be configured in top-level Makefile.
John W. Eaton <jwe@octave.org>
parents:
2812
diff
changeset
|
24 $(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
|
25 --prefix='$(HOST_PREFIX)' \ |
744
b09aadb3810b
make all dependencies explicit in package gdal
Volker Grabsch <vog@notjusthosting.com>
parents:
741
diff
changeset
|
26 --with-bsb \ |
b09aadb3810b
make all dependencies explicit in package gdal
Volker Grabsch <vog@notjusthosting.com>
parents:
741
diff
changeset
|
27 --with-grib \ |
b09aadb3810b
make all dependencies explicit in package gdal
Volker Grabsch <vog@notjusthosting.com>
parents:
741
diff
changeset
|
28 --with-ogr \ |
b09aadb3810b
make all dependencies explicit in package gdal
Volker Grabsch <vog@notjusthosting.com>
parents:
741
diff
changeset
|
29 --with-vfk \ |
b09aadb3810b
make all dependencies explicit in package gdal
Volker Grabsch <vog@notjusthosting.com>
parents:
741
diff
changeset
|
30 --with-pam \ |
b09aadb3810b
make all dependencies explicit in package gdal
Volker Grabsch <vog@notjusthosting.com>
parents:
741
diff
changeset
|
31 --without-threads \ |
3012
100e618349f7
Improve handling of prefix directories by defining HOST_PREFIX and
John W. Eaton <jwe@octave.org>
parents:
3006
diff
changeset
|
32 --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
|
33 --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
|
34 --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
|
35 --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
|
36 --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
|
37 --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
|
38 --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
|
39 --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
|
40 --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
|
41 --with-curl='$(HOST_BINDIR)/curl-config' \ |
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
|
42 --with-geos='$(HOST_BINDIR)/geos-config' \ |
3031
951da75fd09c
improve handling of cross tool prefix
John W. Eaton <jwe@octave.org>
parents:
3014
diff
changeset
|
43 --with-pg='$(BUILD_TOOLS_PREFIX)/bin/$(MXE_TOOL_PREFIX)pg_config' \ |
3012
100e618349f7
Improve handling of prefix directories by defining HOST_PREFIX and
John W. Eaton <jwe@octave.org>
parents:
3006
diff
changeset
|
44 --with-gta='$(HOST_PREFIX)' \ |
4093
842456617da9
gdal: explicitly provide where xml2-config is found
John Donoghue
parents:
4090
diff
changeset
|
45 --with-xml2='$(HOST_BINDIR)/xml2-config' \ |
939
096553bf7955
disable odbc support of package gdal (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
794
diff
changeset
|
46 --without-odbc \ |
744
b09aadb3810b
make all dependencies explicit in package gdal
Volker Grabsch <vog@notjusthosting.com>
parents:
741
diff
changeset
|
47 --without-static-proj4 \ |
b09aadb3810b
make all dependencies explicit in package gdal
Volker Grabsch <vog@notjusthosting.com>
parents:
741
diff
changeset
|
48 --without-xerces \ |
b09aadb3810b
make all dependencies explicit in package gdal
Volker Grabsch <vog@notjusthosting.com>
parents:
741
diff
changeset
|
49 --without-grass \ |
b09aadb3810b
make all dependencies explicit in package gdal
Volker Grabsch <vog@notjusthosting.com>
parents:
741
diff
changeset
|
50 --without-libgrass \ |
b09aadb3810b
make all dependencies explicit in package gdal
Volker Grabsch <vog@notjusthosting.com>
parents:
741
diff
changeset
|
51 --without-spatialite \ |
b09aadb3810b
make all dependencies explicit in package gdal
Volker Grabsch <vog@notjusthosting.com>
parents:
741
diff
changeset
|
52 --without-cfitsio \ |
b09aadb3810b
make all dependencies explicit in package gdal
Volker Grabsch <vog@notjusthosting.com>
parents:
741
diff
changeset
|
53 --without-pcraster \ |
b09aadb3810b
make all dependencies explicit in package gdal
Volker Grabsch <vog@notjusthosting.com>
parents:
741
diff
changeset
|
54 --without-netcdf \ |
b09aadb3810b
make all dependencies explicit in package gdal
Volker Grabsch <vog@notjusthosting.com>
parents:
741
diff
changeset
|
55 --without-pcidsk \ |
b09aadb3810b
make all dependencies explicit in package gdal
Volker Grabsch <vog@notjusthosting.com>
parents:
741
diff
changeset
|
56 --without-ogdi \ |
b09aadb3810b
make all dependencies explicit in package gdal
Volker Grabsch <vog@notjusthosting.com>
parents:
741
diff
changeset
|
57 --without-fme \ |
b09aadb3810b
make all dependencies explicit in package gdal
Volker Grabsch <vog@notjusthosting.com>
parents:
741
diff
changeset
|
58 --without-hdf4 \ |
b09aadb3810b
make all dependencies explicit in package gdal
Volker Grabsch <vog@notjusthosting.com>
parents:
741
diff
changeset
|
59 --without-hdf5 \ |
b09aadb3810b
make all dependencies explicit in package gdal
Volker Grabsch <vog@notjusthosting.com>
parents:
741
diff
changeset
|
60 --without-ecw \ |
b09aadb3810b
make all dependencies explicit in package gdal
Volker Grabsch <vog@notjusthosting.com>
parents:
741
diff
changeset
|
61 --without-kakadu \ |
b09aadb3810b
make all dependencies explicit in package gdal
Volker Grabsch <vog@notjusthosting.com>
parents:
741
diff
changeset
|
62 --without-mrsid \ |
b09aadb3810b
make all dependencies explicit in package gdal
Volker Grabsch <vog@notjusthosting.com>
parents:
741
diff
changeset
|
63 --without-jp2mrsid \ |
b09aadb3810b
make all dependencies explicit in package gdal
Volker Grabsch <vog@notjusthosting.com>
parents:
741
diff
changeset
|
64 --without-msg \ |
b09aadb3810b
make all dependencies explicit in package gdal
Volker Grabsch <vog@notjusthosting.com>
parents:
741
diff
changeset
|
65 --without-oci \ |
b09aadb3810b
make all dependencies explicit in package gdal
Volker Grabsch <vog@notjusthosting.com>
parents:
741
diff
changeset
|
66 --without-mysql \ |
b09aadb3810b
make all dependencies explicit in package gdal
Volker Grabsch <vog@notjusthosting.com>
parents:
741
diff
changeset
|
67 --without-ingres \ |
b09aadb3810b
make all dependencies explicit in package gdal
Volker Grabsch <vog@notjusthosting.com>
parents:
741
diff
changeset
|
68 --without-dods-root \ |
b09aadb3810b
make all dependencies explicit in package gdal
Volker Grabsch <vog@notjusthosting.com>
parents:
741
diff
changeset
|
69 --without-dwgdirect \ |
b09aadb3810b
make all dependencies explicit in package gdal
Volker Grabsch <vog@notjusthosting.com>
parents:
741
diff
changeset
|
70 --without-idb \ |
b09aadb3810b
make all dependencies explicit in package gdal
Volker Grabsch <vog@notjusthosting.com>
parents:
741
diff
changeset
|
71 --without-sde \ |
b09aadb3810b
make all dependencies explicit in package gdal
Volker Grabsch <vog@notjusthosting.com>
parents:
741
diff
changeset
|
72 --without-epsilon \ |
b09aadb3810b
make all dependencies explicit in package gdal
Volker Grabsch <vog@notjusthosting.com>
parents:
741
diff
changeset
|
73 --without-perl \ |
b09aadb3810b
make all dependencies explicit in package gdal
Volker Grabsch <vog@notjusthosting.com>
parents:
741
diff
changeset
|
74 --without-php \ |
b09aadb3810b
make all dependencies explicit in package gdal
Volker Grabsch <vog@notjusthosting.com>
parents:
741
diff
changeset
|
75 --without-ruby \ |
168
df943f9448f7
translated package: gdal
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
76 --without-python \ |
4213
cf9bb8eeaf1c
* gdal.mk: Omit -lsecur32 and openssl libs from LIBS.
John W. Eaton <jwe@octave.org>
parents:
4093
diff
changeset
|
77 LIBS="-ljpeg `'$(MXE_PKG_CONFIG)' --libs libtiff-4`" |
182
d1678aced603
disable parallel builds for packages pthreads, winpcap and gdal
Volker Grabsch <vog@notjusthosting.com>
parents:
181
diff
changeset
|
78 $(MAKE) -C '$(1)' -j 1 lib-target |
d1678aced603
disable parallel builds for packages pthreads, winpcap and gdal
Volker Grabsch <vog@notjusthosting.com>
parents:
181
diff
changeset
|
79 $(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
|
80 $(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
|
81 $(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
|
82 $(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
|
83 $(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
|
84 $(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
|
85 $(MAKE) -C '$(1)/apps' -j 1 install BIN_LIST= |
4090 | 86 $(MAKE) -C '$(1)' -j 1 gdal.pc |
87 $(INSTALL) -d '$(HOST_LIBDIR)/pkgconfig' | |
88 $(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
|
89 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
|
90 $(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
|
91 fi |
168
df943f9448f7
translated package: gdal
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
92 endef |