Mercurial > mxe-octave
annotate src/geos.mk @ 883:f266c4bf62b0
upgrade packages: atk geos glew glib libpaper pango pcre pixman
author | Mark Brand <mabrand@mabrand.nl> |
---|---|
date | Mon, 19 Apr 2010 21:54:23 +0200 |
parents | bf4bcb3370fa |
children | c92395bc3a88 |
rev | line source |
---|---|
641
dab071eac9c0
simplified file markers
Volker Grabsch <vog@notjusthosting.com>
parents:
607
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:
641
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:
397
diff
changeset
|
3 |
165
0b4277f483b2
translated package: geos
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
4 # GEOS |
306
85ffa9259036
validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents:
303
diff
changeset
|
5 PKG := geos |
448
e9afec55fd6b
improved version recognition, enable the notation of ignored (bad) package versions
Volker Grabsch <vog@notjusthosting.com>
parents:
420
diff
changeset
|
6 $(PKG)_IGNORE := |
883
f266c4bf62b0
upgrade packages: atk geos glew glib libpaper pango pcre pixman
Mark Brand <mabrand@mabrand.nl>
parents:
759
diff
changeset
|
7 $(PKG)_VERSION := 3.2.2 |
f266c4bf62b0
upgrade packages: atk geos glew glib libpaper pango pcre pixman
Mark Brand <mabrand@mabrand.nl>
parents:
759
diff
changeset
|
8 $(PKG)_CHECKSUM := 6917d6d1d4e79f58d9f931bf351024709fabbc5a |
306
85ffa9259036
validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents:
303
diff
changeset
|
9 $(PKG)_SUBDIR := geos-$($(PKG)_VERSION) |
85ffa9259036
validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents:
303
diff
changeset
|
10 $(PKG)_FILE := geos-$($(PKG)_VERSION).tar.bz2 |
85ffa9259036
validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents:
303
diff
changeset
|
11 $(PKG)_WEBSITE := http://trac.osgeo.org/geos/ |
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/geos/$($(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/geos/$($(PKG)_FILE) |
306
85ffa9259036
validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents:
303
diff
changeset
|
14 $(PKG)_DEPS := gcc |
165
0b4277f483b2
translated package: geos
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
15 |
0b4277f483b2
translated package: geos
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
16 define $(PKG)_UPDATE |
0b4277f483b2
translated package: geos
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
17 wget -q -O- 'http://geos.refractions.net/' | \ |
0b4277f483b2
translated package: geos
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
18 $(SED) -n 's,.*geos-\([0-9][^>]*\)\.tar.*,\1,p' | \ |
0b4277f483b2
translated package: geos
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
19 head -1 |
0b4277f483b2
translated package: geos
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
20 endef |
0b4277f483b2
translated package: geos
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
21 |
0b4277f483b2
translated package: geos
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
22 define $(PKG)_BUILD |
759
bf4bcb3370fa
changed coding style: make "-i" always the first argument of $(SED) (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
714
diff
changeset
|
23 $(SED) -i 's,-lgeos,-lgeos -lstdc++,' '$(1)/tools/geos-config.in' |
bf4bcb3370fa
changed coding style: make "-i" always the first argument of $(SED) (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
714
diff
changeset
|
24 $(SED) -i 's,-L\$${libdir}$$,-L$${libdir} -lgeos -lstdc++,' '$(1)/tools/geos-config.in' |
bf4bcb3370fa
changed coding style: make "-i" always the first argument of $(SED) (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
714
diff
changeset
|
25 $(SED) -i 's,\$$WARNFLAGS -ansi,\$$WARNFLAGS,' '$(1)/configure.in' |
201
b1514e8e767a
avoid unnecessary runs of aclocal, autoconf, automake after changing configure and configure.in
Volker Grabsch <vog@notjusthosting.com>
parents:
199
diff
changeset
|
26 touch '$(1)/aclocal.m4' |
759
bf4bcb3370fa
changed coding style: make "-i" always the first argument of $(SED) (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
714
diff
changeset
|
27 $(SED) -i 's,\$$WARNFLAGS -ansi,\$$WARNFLAGS,' '$(1)/configure' |
201
b1514e8e767a
avoid unnecessary runs of aclocal, autoconf, automake after changing configure and configure.in
Volker Grabsch <vog@notjusthosting.com>
parents:
199
diff
changeset
|
28 touch '$(1)/Makefile.in' |
202
c31beae48adb
avoid unnecessary runs of autoheader
Volker Grabsch <vog@notjusthosting.com>
parents:
201
diff
changeset
|
29 touch '$(1)/source/headers/config.h.in' |
c31beae48adb
avoid unnecessary runs of autoheader
Volker Grabsch <vog@notjusthosting.com>
parents:
201
diff
changeset
|
30 touch '$(1)/source/headers/geos/platform.h.in' |
165
0b4277f483b2
translated package: geos
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
31 cd '$(1)' && ./configure \ |
0b4277f483b2
translated package: geos
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
32 --host='$(TARGET)' \ |
0b4277f483b2
translated package: geos
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
33 --disable-shared \ |
0b4277f483b2
translated package: geos
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
34 --prefix='$(PREFIX)/$(TARGET)' \ |
0b4277f483b2
translated package: geos
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
35 --disable-swig |
0b4277f483b2
translated package: geos
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
36 $(MAKE) -C '$(1)' -j '$(JOBS)' install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS= |
0b4277f483b2
translated package: geos
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
37 endef |