Mercurial > mxe-octave
annotate src/geos.mk @ 165:0b4277f483b2
translated package: geos
author | Volker Grabsch <vog@notjusthosting.com> |
---|---|
date | Sun, 09 Nov 2008 02:36:56 +0100 |
parents | |
children | f880a27a0e9e |
rev | line source |
---|---|
165
0b4277f483b2
translated package: geos
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
1 # GEOS |
0b4277f483b2
translated package: geos
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
2 # http://geos.refractions.net/ |
0b4277f483b2
translated package: geos
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
3 |
0b4277f483b2
translated package: geos
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
4 PKG := geos |
0b4277f483b2
translated package: geos
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
5 $(PKG)_VERSION := 3.0.0 |
0b4277f483b2
translated package: geos
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
6 $(PKG)_SUBDIR := geos-$($(PKG)_VERSION) |
0b4277f483b2
translated package: geos
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
7 $(PKG)_FILE := geos-$($(PKG)_VERSION).tar.bz2 |
0b4277f483b2
translated package: geos
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
8 $(PKG)_URL := http://geos.refractions.net/downloads/$($(PKG)_FILE) |
0b4277f483b2
translated package: geos
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
9 $(PKG)_DEPS := gcc |
0b4277f483b2
translated package: geos
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
10 |
0b4277f483b2
translated package: geos
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
11 define $(PKG)_UPDATE |
0b4277f483b2
translated package: geos
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
12 wget -q -O- 'http://geos.refractions.net/' | \ |
0b4277f483b2
translated package: geos
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
13 $(SED) -n 's,.*geos-\([0-9][^>]*\)\.tar.*,\1,p' | \ |
0b4277f483b2
translated package: geos
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
14 head -1 |
0b4277f483b2
translated package: geos
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
15 endef |
0b4277f483b2
translated package: geos
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
16 |
0b4277f483b2
translated package: geos
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
17 define $(PKG)_BUILD |
0b4277f483b2
translated package: geos
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
18 $(SED) 's,-lgeos,-lgeos -lstdc++,' -i '$(1)/tools/geos-config.in' |
0b4277f483b2
translated package: geos
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
19 # timezone and gettimeofday are in <time.h> since MinGW runtime 3.10 |
0b4277f483b2
translated package: geos
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
20 $(SED) 's,struct timezone {,struct timezone_disabled {,' -i '$(1)/source/headers/geos/timeval.h' |
0b4277f483b2
translated package: geos
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
21 $(SED) 's,int gettimeofday,int gettimeofday_disabled,' -i '$(1)/source/headers/geos/timeval.h' |
0b4277f483b2
translated package: geos
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
22 cd '$(1)' && ./configure \ |
0b4277f483b2
translated package: geos
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
23 --host='$(TARGET)' \ |
0b4277f483b2
translated package: geos
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
24 --disable-shared \ |
0b4277f483b2
translated package: geos
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
25 --prefix='$(PREFIX)/$(TARGET)' \ |
0b4277f483b2
translated package: geos
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
26 --disable-swig |
0b4277f483b2
translated package: geos
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
27 $(MAKE) -C '$(1)' -j '$(JOBS)' install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS= |
0b4277f483b2
translated package: geos
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
28 endef |