Mercurial > mxe-octave
annotate src/gdal.mk @ 1235:7e9f957b3239
package openal: combine patch files, portability fixes, and add test program
author | Tony Theodore <tonyt@logyst.com> |
---|---|
date | Fri, 01 Oct 2010 02:03:08 +1000 |
parents | 9a8f1b49a25f |
children | 8d43a215ea43 |
rev | line source |
---|---|
641
dab071eac9c0
simplified file markers
Volker Grabsch <vog@notjusthosting.com>
parents:
569
diff
changeset
|
1 # This file is part of mingw-cross-env. |
714
29f1ba4559ae
point consequently to "doc/index.html" instead of "doc/index.html or doc/README"
Volker Grabsch <vog@notjusthosting.com>
parents:
694
diff
changeset
|
2 # See doc/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 |
168
df943f9448f7
translated package: gdal
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
4 # GDAL |
306
85ffa9259036
validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents:
265
diff
changeset
|
5 PKG := gdal |
448
e9afec55fd6b
improved version recognition, enable the notation of ignored (bad) package versions
Volker Grabsch <vog@notjusthosting.com>
parents:
432
diff
changeset
|
6 $(PKG)_IGNORE := |
956
9a8f1b49a25f
upgrade packages boost gdal glew gst-plugins-base gstreamer gtk libgpg_error libgsf libpng librsvg libunistring taglib
Mark Brand <mabrand@mabrand.nl>
parents:
939
diff
changeset
|
7 $(PKG)_VERSION := 1.7.2 |
9a8f1b49a25f
upgrade packages boost gdal glew gst-plugins-base gstreamer gtk libgpg_error libgsf libpng librsvg libunistring taglib
Mark Brand <mabrand@mabrand.nl>
parents:
939
diff
changeset
|
8 $(PKG)_CHECKSUM := a03127530708e3924aec7b505cc2ca4f8153f13c |
306
85ffa9259036
validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents:
265
diff
changeset
|
9 $(PKG)_SUBDIR := gdal-$($(PKG)_VERSION) |
85ffa9259036
validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents:
265
diff
changeset
|
10 $(PKG)_FILE := gdal-$($(PKG)_VERSION).tar.gz |
85ffa9259036
validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents:
265
diff
changeset
|
11 $(PKG)_WEBSITE := http://www.gdal.org/ |
420
7f58092c2316
improved download URLs for packages gdal, geos, libgeotiff, proj and tiff
Volker Grabsch <vog@notjusthosting.com>
parents:
417
diff
changeset
|
12 $(PKG)_URL := http://ftp.remotesensing.org/gdal/$($(PKG)_FILE) |
7f58092c2316
improved download URLs for packages gdal, geos, libgeotiff, proj and tiff
Volker Grabsch <vog@notjusthosting.com>
parents:
417
diff
changeset
|
13 $(PKG)_URL_2 := http://download.osgeo.org/gdal/$($(PKG)_FILE) |
939
096553bf7955
disable odbc support of package gdal (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
794
diff
changeset
|
14 $(PKG)_DEPS := gcc zlib libpng tiff libgeotiff jpeg jasper giflib expat sqlite curl geos postgresql |
168
df943f9448f7
translated package: gdal
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
15 |
df943f9448f7
translated package: gdal
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
16 define $(PKG)_UPDATE |
df943f9448f7
translated package: gdal
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
17 wget -q -O- 'http://trac.osgeo.org/gdal/wiki/DownloadSource' | \ |
df943f9448f7
translated package: gdal
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
18 $(SED) -n 's,.*gdal-\([0-9][^>]*\)\.tar.*,\1,p' | \ |
df943f9448f7
translated package: gdal
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
19 head -1 |
df943f9448f7
translated package: gdal
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
20 endef |
df943f9448f7
translated package: gdal
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
21 |
df943f9448f7
translated package: gdal
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
22 define $(PKG)_BUILD |
756
cd954a8ea7d7
bugfix for package gdal (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
744
diff
changeset
|
23 cd '$(1)' && $(LIBTOOLIZE) |
cd954a8ea7d7
bugfix for package gdal (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
744
diff
changeset
|
24 cd '$(1)' && ./autogen.sh |
744
b09aadb3810b
make all dependencies explicit in package gdal
Volker Grabsch <vog@notjusthosting.com>
parents:
741
diff
changeset
|
25 # The option '--without-threads' means native win32 threading without pthread. |
168
df943f9448f7
translated package: gdal
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
26 cd '$(1)' && ./configure \ |
df943f9448f7
translated package: gdal
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
27 --host='$(TARGET)' \ |
df943f9448f7
translated package: gdal
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
28 --disable-shared \ |
df943f9448f7
translated package: gdal
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
29 --prefix='$(PREFIX)/$(TARGET)' \ |
744
b09aadb3810b
make all dependencies explicit in package gdal
Volker Grabsch <vog@notjusthosting.com>
parents:
741
diff
changeset
|
30 --with-bsb \ |
b09aadb3810b
make all dependencies explicit in package gdal
Volker Grabsch <vog@notjusthosting.com>
parents:
741
diff
changeset
|
31 --with-grib \ |
b09aadb3810b
make all dependencies explicit in package gdal
Volker Grabsch <vog@notjusthosting.com>
parents:
741
diff
changeset
|
32 --with-ogr \ |
b09aadb3810b
make all dependencies explicit in package gdal
Volker Grabsch <vog@notjusthosting.com>
parents:
741
diff
changeset
|
33 --with-vfk \ |
b09aadb3810b
make all dependencies explicit in package gdal
Volker Grabsch <vog@notjusthosting.com>
parents:
741
diff
changeset
|
34 --with-pam \ |
b09aadb3810b
make all dependencies explicit in package gdal
Volker Grabsch <vog@notjusthosting.com>
parents:
741
diff
changeset
|
35 --without-threads \ |
181
edcc5f6538d5
package gdal: explicitly mention zlib, enable threading support
Volker Grabsch <vog@notjusthosting.com>
parents:
177
diff
changeset
|
36 --with-libz='$(PREFIX)/$(TARGET)' \ |
168
df943f9448f7
translated package: gdal
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
37 --with-png='$(PREFIX)/$(TARGET)' \ |
df943f9448f7
translated package: gdal
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
38 --with-libtiff='$(PREFIX)/$(TARGET)' \ |
df943f9448f7
translated package: gdal
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
39 --with-geotiff='$(PREFIX)/$(TARGET)' \ |
df943f9448f7
translated package: gdal
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
40 --with-jpeg='$(PREFIX)/$(TARGET)' \ |
744
b09aadb3810b
make all dependencies explicit in package gdal
Volker Grabsch <vog@notjusthosting.com>
parents:
741
diff
changeset
|
41 --with-jasper='$(PREFIX)/$(TARGET)' \ |
168
df943f9448f7
translated package: gdal
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
42 --with-gif='$(PREFIX)/$(TARGET)' \ |
188 | 43 --with-expat='$(PREFIX)/$(TARGET)' \ |
744
b09aadb3810b
make all dependencies explicit in package gdal
Volker Grabsch <vog@notjusthosting.com>
parents:
741
diff
changeset
|
44 --with-sqlite3='$(PREFIX)/$(TARGET)' \ |
168
df943f9448f7
translated package: gdal
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
45 --with-curl='$(PREFIX)/$(TARGET)/bin/curl-config' \ |
df943f9448f7
translated package: gdal
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
46 --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
|
47 --with-pg='$(PREFIX)/bin/$(TARGET)-pg_config' \ |
939
096553bf7955
disable odbc support of package gdal (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
794
diff
changeset
|
48 --without-odbc \ |
744
b09aadb3810b
make all dependencies explicit in package gdal
Volker Grabsch <vog@notjusthosting.com>
parents:
741
diff
changeset
|
49 --without-static-proj4 \ |
b09aadb3810b
make all dependencies explicit in package gdal
Volker Grabsch <vog@notjusthosting.com>
parents:
741
diff
changeset
|
50 --without-xerces \ |
b09aadb3810b
make all dependencies explicit in package gdal
Volker Grabsch <vog@notjusthosting.com>
parents:
741
diff
changeset
|
51 --without-grass \ |
b09aadb3810b
make all dependencies explicit in package gdal
Volker Grabsch <vog@notjusthosting.com>
parents:
741
diff
changeset
|
52 --without-libgrass \ |
b09aadb3810b
make all dependencies explicit in package gdal
Volker Grabsch <vog@notjusthosting.com>
parents:
741
diff
changeset
|
53 --without-spatialite \ |
b09aadb3810b
make all dependencies explicit in package gdal
Volker Grabsch <vog@notjusthosting.com>
parents:
741
diff
changeset
|
54 --without-cfitsio \ |
b09aadb3810b
make all dependencies explicit in package gdal
Volker Grabsch <vog@notjusthosting.com>
parents:
741
diff
changeset
|
55 --without-pcraster \ |
b09aadb3810b
make all dependencies explicit in package gdal
Volker Grabsch <vog@notjusthosting.com>
parents:
741
diff
changeset
|
56 --without-netcdf \ |
b09aadb3810b
make all dependencies explicit in package gdal
Volker Grabsch <vog@notjusthosting.com>
parents:
741
diff
changeset
|
57 --without-pcidsk \ |
b09aadb3810b
make all dependencies explicit in package gdal
Volker Grabsch <vog@notjusthosting.com>
parents:
741
diff
changeset
|
58 --without-ogdi \ |
b09aadb3810b
make all dependencies explicit in package gdal
Volker Grabsch <vog@notjusthosting.com>
parents:
741
diff
changeset
|
59 --without-fme \ |
b09aadb3810b
make all dependencies explicit in package gdal
Volker Grabsch <vog@notjusthosting.com>
parents:
741
diff
changeset
|
60 --without-hdf4 \ |
b09aadb3810b
make all dependencies explicit in package gdal
Volker Grabsch <vog@notjusthosting.com>
parents:
741
diff
changeset
|
61 --without-hdf5 \ |
b09aadb3810b
make all dependencies explicit in package gdal
Volker Grabsch <vog@notjusthosting.com>
parents:
741
diff
changeset
|
62 --without-ecw \ |
b09aadb3810b
make all dependencies explicit in package gdal
Volker Grabsch <vog@notjusthosting.com>
parents:
741
diff
changeset
|
63 --without-kakadu \ |
b09aadb3810b
make all dependencies explicit in package gdal
Volker Grabsch <vog@notjusthosting.com>
parents:
741
diff
changeset
|
64 --without-mrsid \ |
b09aadb3810b
make all dependencies explicit in package gdal
Volker Grabsch <vog@notjusthosting.com>
parents:
741
diff
changeset
|
65 --without-jp2mrsid \ |
b09aadb3810b
make all dependencies explicit in package gdal
Volker Grabsch <vog@notjusthosting.com>
parents:
741
diff
changeset
|
66 --without-msg \ |
b09aadb3810b
make all dependencies explicit in package gdal
Volker Grabsch <vog@notjusthosting.com>
parents:
741
diff
changeset
|
67 --without-oci \ |
b09aadb3810b
make all dependencies explicit in package gdal
Volker Grabsch <vog@notjusthosting.com>
parents:
741
diff
changeset
|
68 --without-mysql \ |
b09aadb3810b
make all dependencies explicit in package gdal
Volker Grabsch <vog@notjusthosting.com>
parents:
741
diff
changeset
|
69 --without-ingres \ |
b09aadb3810b
make all dependencies explicit in package gdal
Volker Grabsch <vog@notjusthosting.com>
parents:
741
diff
changeset
|
70 --without-dods-root \ |
b09aadb3810b
make all dependencies explicit in package gdal
Volker Grabsch <vog@notjusthosting.com>
parents:
741
diff
changeset
|
71 --without-dwgdirect \ |
b09aadb3810b
make all dependencies explicit in package gdal
Volker Grabsch <vog@notjusthosting.com>
parents:
741
diff
changeset
|
72 --without-dwg-plt \ |
b09aadb3810b
make all dependencies explicit in package gdal
Volker Grabsch <vog@notjusthosting.com>
parents:
741
diff
changeset
|
73 --without-idb \ |
b09aadb3810b
make all dependencies explicit in package gdal
Volker Grabsch <vog@notjusthosting.com>
parents:
741
diff
changeset
|
74 --without-sde \ |
b09aadb3810b
make all dependencies explicit in package gdal
Volker Grabsch <vog@notjusthosting.com>
parents:
741
diff
changeset
|
75 --without-epsilon \ |
b09aadb3810b
make all dependencies explicit in package gdal
Volker Grabsch <vog@notjusthosting.com>
parents:
741
diff
changeset
|
76 --without-perl \ |
b09aadb3810b
make all dependencies explicit in package gdal
Volker Grabsch <vog@notjusthosting.com>
parents:
741
diff
changeset
|
77 --without-php \ |
b09aadb3810b
make all dependencies explicit in package gdal
Volker Grabsch <vog@notjusthosting.com>
parents:
741
diff
changeset
|
78 --without-ruby \ |
168
df943f9448f7
translated package: gdal
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
79 --without-python \ |
744
b09aadb3810b
make all dependencies explicit in package gdal
Volker Grabsch <vog@notjusthosting.com>
parents:
741
diff
changeset
|
80 --without-macosx-framework \ |
b09aadb3810b
make all dependencies explicit in package gdal
Volker Grabsch <vog@notjusthosting.com>
parents:
741
diff
changeset
|
81 LIBS="-ljpeg -lsecur32 `'$(TARGET)-pkg-config' --libs openssl`" |
182
d1678aced603
disable parallel builds for packages pthreads, winpcap and gdal
Volker Grabsch <vog@notjusthosting.com>
parents:
181
diff
changeset
|
82 $(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
|
83 $(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
|
84 $(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
|
85 $(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
|
86 $(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
|
87 $(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
|
88 $(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
|
89 $(MAKE) -C '$(1)/apps' -j 1 install BIN_LIST= |
168
df943f9448f7
translated package: gdal
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
90 endef |