annotate src/gdal.mk @ 3006:dabfd7db980c

use cp for ln on mingw native builds
author John W. Eaton <jwe@octave.org>
date Thu, 30 May 2013 13:28:23 -0400
parents 47558e958113
children 100e618349f7
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
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 :=
2812
1094976c3a57 update package gdal
Mark Brand <mabrand@mabrand.nl>
parents: 2544
diff changeset
6 $(PKG)_CHECKSUM := 7eda6a4d735b8d6903740e0acdd702b43515e351
306
85ffa9259036 validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents: 265
diff changeset
7 $(PKG)_SUBDIR := gdal-$($(PKG)_VERSION)
85ffa9259036 validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents: 265
diff changeset
8 $(PKG)_FILE := gdal-$($(PKG)_VERSION).tar.gz
1456
c92395bc3a88 fix download URLs of package: gdal geos libgeotiff proj tiff
Volker Grabsch <vog@notjusthosting.com>
parents: 1447
diff changeset
9 $(PKG)_URL := http://download.osgeo.org/gdal/$($(PKG)_FILE)
c92395bc3a88 fix download URLs of package: gdal geos libgeotiff proj tiff
Volker Grabsch <vog@notjusthosting.com>
parents: 1447
diff changeset
10 $(PKG)_URL_2 := ftp://ftp.remotesensing.org/gdal/$($(PKG)_FILE)
2270
0f50afdf5866 rename project libgta to gta
Mark Brand <mabrand@mabrand.nl>
parents: 2269
diff changeset
11 $(PKG)_DEPS := gcc 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
12
df943f9448f7 translated package: gdal
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
13 define $(PKG)_UPDATE
2525
4d0f3a9da57e all packages: use $(WGET) portability variable
Tony Theodore <tonyt@logyst.com>
parents: 2365
diff changeset
14 $(WGET) -q -O- 'http://trac.osgeo.org/gdal/wiki/DownloadSource' | \
168
df943f9448f7 translated package: gdal
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
15 $(SED) -n 's,.*gdal-\([0-9][^>]*\)\.tar.*,\1,p' | \
df943f9448f7 translated package: gdal
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
16 head -1
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
744
b09aadb3810b make all dependencies explicit in package gdal
Volker Grabsch <vog@notjusthosting.com>
parents: 741
diff changeset
20 # The option '--without-threads' means native win32 threading without pthread.
168
df943f9448f7 translated package: gdal
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
21 cd '$(1)' && ./configure \
df943f9448f7 translated package: gdal
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
22 --host='$(TARGET)' \
2544
df1dce2b7385 update package gdal
Mark Brand <mabrand@mabrand.nl>
parents: 2525
diff changeset
23 --build="`config.guess`" \
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) \
168
df943f9448f7 translated package: gdal
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
25 --prefix='$(PREFIX)/$(TARGET)' \
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 \
181
edcc5f6538d5 package gdal: explicitly mention zlib, enable threading support
Volker Grabsch <vog@notjusthosting.com>
parents: 177
diff changeset
32 --with-libz='$(PREFIX)/$(TARGET)' \
1622
8d778d0707ed package gdal: libpng 1.5 compatibility
Mark Brand <mabrand@mabrand.nl>
parents: 1618
diff changeset
33 --with-png='$(PREFIX)/$(TARGET)' \
168
df943f9448f7 translated package: gdal
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
34 --with-libtiff='$(PREFIX)/$(TARGET)' \
df943f9448f7 translated package: gdal
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
35 --with-geotiff='$(PREFIX)/$(TARGET)' \
df943f9448f7 translated package: gdal
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
36 --with-jpeg='$(PREFIX)/$(TARGET)' \
744
b09aadb3810b make all dependencies explicit in package gdal
Volker Grabsch <vog@notjusthosting.com>
parents: 741
diff changeset
37 --with-jasper='$(PREFIX)/$(TARGET)' \
168
df943f9448f7 translated package: gdal
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
38 --with-gif='$(PREFIX)/$(TARGET)' \
188
11829aaff7d3 new package: expat
Volker Grabsch <vog@notjusthosting.com>
parents: 182
diff changeset
39 --with-expat='$(PREFIX)/$(TARGET)' \
744
b09aadb3810b make all dependencies explicit in package gdal
Volker Grabsch <vog@notjusthosting.com>
parents: 741
diff changeset
40 --with-sqlite3='$(PREFIX)/$(TARGET)' \
168
df943f9448f7 translated package: gdal
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
41 --with-curl='$(PREFIX)/$(TARGET)/bin/curl-config' \
df943f9448f7 translated package: gdal
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
42 --with-geos='$(PREFIX)/$(TARGET)/bin/geos-config' \
794
4125ce84f068 bugfix: provide the full path to pg_config in package gdal
Volker Grabsch <vog@notjusthosting.com>
parents: 782
diff changeset
43 --with-pg='$(PREFIX)/bin/$(TARGET)-pg_config' \
2269
e34b54a07244 Make GDAL depend on libgta.
Martin Lambers <marlam@marlam.de>
parents: 2205
diff changeset
44 --with-gta='$(PREFIX)/$(TARGET)' \
939
096553bf7955 disable odbc support of package gdal (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents: 794
diff changeset
45 --without-odbc \
744
b09aadb3810b make all dependencies explicit in package gdal
Volker Grabsch <vog@notjusthosting.com>
parents: 741
diff changeset
46 --without-static-proj4 \
b09aadb3810b make all dependencies explicit in package gdal
Volker Grabsch <vog@notjusthosting.com>
parents: 741
diff changeset
47 --without-xerces \
b09aadb3810b make all dependencies explicit in package gdal
Volker Grabsch <vog@notjusthosting.com>
parents: 741
diff changeset
48 --without-grass \
b09aadb3810b make all dependencies explicit in package gdal
Volker Grabsch <vog@notjusthosting.com>
parents: 741
diff changeset
49 --without-libgrass \
b09aadb3810b make all dependencies explicit in package gdal
Volker Grabsch <vog@notjusthosting.com>
parents: 741
diff changeset
50 --without-spatialite \
b09aadb3810b make all dependencies explicit in package gdal
Volker Grabsch <vog@notjusthosting.com>
parents: 741
diff changeset
51 --without-cfitsio \
b09aadb3810b make all dependencies explicit in package gdal
Volker Grabsch <vog@notjusthosting.com>
parents: 741
diff changeset
52 --without-pcraster \
b09aadb3810b make all dependencies explicit in package gdal
Volker Grabsch <vog@notjusthosting.com>
parents: 741
diff changeset
53 --without-netcdf \
b09aadb3810b make all dependencies explicit in package gdal
Volker Grabsch <vog@notjusthosting.com>
parents: 741
diff changeset
54 --without-pcidsk \
b09aadb3810b make all dependencies explicit in package gdal
Volker Grabsch <vog@notjusthosting.com>
parents: 741
diff changeset
55 --without-ogdi \
b09aadb3810b make all dependencies explicit in package gdal
Volker Grabsch <vog@notjusthosting.com>
parents: 741
diff changeset
56 --without-fme \
b09aadb3810b make all dependencies explicit in package gdal
Volker Grabsch <vog@notjusthosting.com>
parents: 741
diff changeset
57 --without-hdf4 \
b09aadb3810b make all dependencies explicit in package gdal
Volker Grabsch <vog@notjusthosting.com>
parents: 741
diff changeset
58 --without-hdf5 \
b09aadb3810b make all dependencies explicit in package gdal
Volker Grabsch <vog@notjusthosting.com>
parents: 741
diff changeset
59 --without-ecw \
b09aadb3810b make all dependencies explicit in package gdal
Volker Grabsch <vog@notjusthosting.com>
parents: 741
diff changeset
60 --without-kakadu \
b09aadb3810b make all dependencies explicit in package gdal
Volker Grabsch <vog@notjusthosting.com>
parents: 741
diff changeset
61 --without-mrsid \
b09aadb3810b make all dependencies explicit in package gdal
Volker Grabsch <vog@notjusthosting.com>
parents: 741
diff changeset
62 --without-jp2mrsid \
b09aadb3810b make all dependencies explicit in package gdal
Volker Grabsch <vog@notjusthosting.com>
parents: 741
diff changeset
63 --without-msg \
b09aadb3810b make all dependencies explicit in package gdal
Volker Grabsch <vog@notjusthosting.com>
parents: 741
diff changeset
64 --without-oci \
b09aadb3810b make all dependencies explicit in package gdal
Volker Grabsch <vog@notjusthosting.com>
parents: 741
diff changeset
65 --without-mysql \
b09aadb3810b make all dependencies explicit in package gdal
Volker Grabsch <vog@notjusthosting.com>
parents: 741
diff changeset
66 --without-ingres \
b09aadb3810b make all dependencies explicit in package gdal
Volker Grabsch <vog@notjusthosting.com>
parents: 741
diff changeset
67 --without-dods-root \
b09aadb3810b make all dependencies explicit in package gdal
Volker Grabsch <vog@notjusthosting.com>
parents: 741
diff changeset
68 --without-dwgdirect \
b09aadb3810b make all dependencies explicit in package gdal
Volker Grabsch <vog@notjusthosting.com>
parents: 741
diff changeset
69 --without-idb \
b09aadb3810b make all dependencies explicit in package gdal
Volker Grabsch <vog@notjusthosting.com>
parents: 741
diff changeset
70 --without-sde \
b09aadb3810b make all dependencies explicit in package gdal
Volker Grabsch <vog@notjusthosting.com>
parents: 741
diff changeset
71 --without-epsilon \
b09aadb3810b make all dependencies explicit in package gdal
Volker Grabsch <vog@notjusthosting.com>
parents: 741
diff changeset
72 --without-perl \
b09aadb3810b make all dependencies explicit in package gdal
Volker Grabsch <vog@notjusthosting.com>
parents: 741
diff changeset
73 --without-php \
b09aadb3810b make all dependencies explicit in package gdal
Volker Grabsch <vog@notjusthosting.com>
parents: 741
diff changeset
74 --without-ruby \
168
df943f9448f7 translated package: gdal
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
75 --without-python \
2189
dc1705c24517 package gdal gdk-pixbuf libpano13: tiff 4 detection workaround
Mark Brand <mabrand@mabrand.nl>
parents: 1946
diff changeset
76 LIBS="-ljpeg -lsecur32 `'$(TARGET)-pkg-config' --libs openssl libtiff-4`"
182
d1678aced603 disable parallel builds for packages pthreads, winpcap and gdal
Volker Grabsch <vog@notjusthosting.com>
parents: 181
diff changeset
77 $(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
78 $(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
79 $(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
80 $(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
81 $(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
82 $(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
83 $(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
84 $(MAKE) -C '$(1)/apps' -j 1 install BIN_LIST=
3006
dabfd7db980c use cp for ln on mingw native builds
John W. Eaton <jwe@octave.org>
parents: 2855
diff changeset
85 $(LN_SF) '$(PREFIX)/$(TARGET)/bin/gdal-config' '$(PREFIX)/bin/$(TARGET)-gdal-config'
168
df943f9448f7 translated package: gdal
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
86 endef