annotate src/gdal.mk @ 168:df943f9448f7

translated package: gdal
author Volker Grabsch <vog@notjusthosting.com>
date Sun, 09 Nov 2008 03:37:06 +0100
parents
children e3f4909ed0d5
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
168
df943f9448f7 translated package: gdal
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
1 # GDAL
df943f9448f7 translated package: gdal
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
2 # http://www.gdal.org/
df943f9448f7 translated package: gdal
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
3
df943f9448f7 translated package: gdal
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
4 PKG := gdal
df943f9448f7 translated package: gdal
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
5 $(PKG)_VERSION := 1.5.0
df943f9448f7 translated package: gdal
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
6 $(PKG)_SUBDIR := gdal-$($(PKG)_VERSION)
df943f9448f7 translated package: gdal
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
7 $(PKG)_FILE := gdal-$($(PKG)_VERSION).tar.gz
df943f9448f7 translated package: gdal
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
8 $(PKG)_URL := http://www.gdal.org/dl/$($(PKG)_FILE)
df943f9448f7 translated package: gdal
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
9 $(PKG)_DEPS := gcc libpng tiff libgeotiff jpeg giflib curl geos
df943f9448f7 translated package: gdal
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
10
df943f9448f7 translated package: gdal
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
11 define $(PKG)_UPDATE
df943f9448f7 translated package: gdal
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
12 wget -q -O- 'http://trac.osgeo.org/gdal/wiki/DownloadSource' | \
df943f9448f7 translated package: gdal
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
13 $(SED) -n 's,.*gdal-\([0-9][^>]*\)\.tar.*,\1,p' | \
df943f9448f7 translated package: gdal
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
14 head -1
df943f9448f7 translated package: gdal
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
15 endef
df943f9448f7 translated package: gdal
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
16
df943f9448f7 translated package: gdal
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
17 define $(PKG)_BUILD
df943f9448f7 translated package: gdal
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
18 cd '$(1)' && ./configure \
df943f9448f7 translated package: gdal
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
19 --host='$(TARGET)' \
df943f9448f7 translated package: gdal
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
20 --disable-shared \
df943f9448f7 translated package: gdal
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
21 --prefix='$(PREFIX)/$(TARGET)' \
df943f9448f7 translated package: gdal
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
22 LIBS='-ljpeg' \
df943f9448f7 translated package: gdal
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
23 --with-png='$(PREFIX)/$(TARGET)' \
df943f9448f7 translated package: gdal
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
24 --with-libtiff='$(PREFIX)/$(TARGET)' \
df943f9448f7 translated package: gdal
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
25 --with-geotiff='$(PREFIX)/$(TARGET)' \
df943f9448f7 translated package: gdal
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
26 --with-jpeg='$(PREFIX)/$(TARGET)' \
df943f9448f7 translated package: gdal
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
27 --with-gif='$(PREFIX)/$(TARGET)' \
df943f9448f7 translated package: gdal
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
28 --with-curl='$(PREFIX)/$(TARGET)/bin/curl-config' \
df943f9448f7 translated package: gdal
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
29 --with-geos='$(PREFIX)/$(TARGET)/bin/geos-config' \
df943f9448f7 translated package: gdal
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
30 --with-expat=no \
df943f9448f7 translated package: gdal
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
31 --without-python \
df943f9448f7 translated package: gdal
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
32 --without-ngpython
df943f9448f7 translated package: gdal
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
33 $(MAKE) -C '$(1)' -j '$(JOBS)' lib-target
df943f9448f7 translated package: gdal
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
34 $(MAKE) -C '$(1)' -j '$(JOBS)' install-lib
df943f9448f7 translated package: gdal
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
35 $(MAKE) -C '$(1)/port' -j '$(JOBS)' install
df943f9448f7 translated package: gdal
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
36 $(MAKE) -C '$(1)/gcore' -j '$(JOBS)' install
df943f9448f7 translated package: gdal
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
37 $(MAKE) -C '$(1)/frmts' -j '$(JOBS)' install
df943f9448f7 translated package: gdal
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
38 $(MAKE) -C '$(1)/alg' -j '$(JOBS)' install
df943f9448f7 translated package: gdal
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
39 $(MAKE) -C '$(1)/ogr' -j '$(JOBS)' install OGR_ENABLED=
df943f9448f7 translated package: gdal
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
40 $(MAKE) -C '$(1)/apps' -j '$(JOBS)' install BIN_LIST=
df943f9448f7 translated package: gdal
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
41 endef