Mercurial > mxe-octave
annotate src/geos.mk @ 2349:f48c5b085a38
Move $(PKG)_VERSION and $(PKG)_WEBSITE from src/*.mk into doc/index.html
author | Volker Grabsch <vog@notjusthosting.com> |
---|---|
date | Thu, 29 Mar 2012 11:07:07 +0200 |
parents | f653602a0500 |
children | 99516e73b368 |
rev | line source |
---|---|
2333
f653602a0500
Rebrand to new project name MXE
Volker Grabsch <vog@notjusthosting.com>
parents:
2203
diff
changeset
|
1 # This file is part of MXE. |
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 := |
2203 | 7 $(PKG)_CHECKSUM := 942b0bbc61a059bd5269fddd4c0b44a508670cb3 |
306
85ffa9259036
validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents:
303
diff
changeset
|
8 $(PKG)_SUBDIR := geos-$($(PKG)_VERSION) |
85ffa9259036
validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents:
303
diff
changeset
|
9 $(PKG)_FILE := geos-$($(PKG)_VERSION).tar.bz2 |
1456
c92395bc3a88
fix download URLs of package: gdal geos libgeotiff proj tiff
Volker Grabsch <vog@notjusthosting.com>
parents:
883
diff
changeset
|
10 $(PKG)_URL := http://download.osgeo.org/geos/$($(PKG)_FILE) |
c92395bc3a88
fix download URLs of package: gdal geos libgeotiff proj tiff
Volker Grabsch <vog@notjusthosting.com>
parents:
883
diff
changeset
|
11 $(PKG)_URL_2 := ftp://ftp.remotesensing.org/geos/$($(PKG)_FILE) |
306
85ffa9259036
validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents:
303
diff
changeset
|
12 $(PKG)_DEPS := gcc |
165
0b4277f483b2
translated package: geos
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
13 |
0b4277f483b2
translated package: geos
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
14 define $(PKG)_UPDATE |
0b4277f483b2
translated package: geos
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
15 wget -q -O- 'http://geos.refractions.net/' | \ |
0b4277f483b2
translated package: geos
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
16 $(SED) -n 's,.*geos-\([0-9][^>]*\)\.tar.*,\1,p' | \ |
0b4277f483b2
translated package: geos
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
17 head -1 |
0b4277f483b2
translated package: geos
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
18 endef |
0b4277f483b2
translated package: geos
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
19 |
0b4277f483b2
translated package: geos
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
20 define $(PKG)_BUILD |
0b4277f483b2
translated package: geos
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
21 cd '$(1)' && ./configure \ |
0b4277f483b2
translated package: geos
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
22 --host='$(TARGET)' \ |
0b4277f483b2
translated package: geos
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
23 --disable-shared \ |
0b4277f483b2
translated package: geos
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
24 --prefix='$(PREFIX)/$(TARGET)' \ |
0b4277f483b2
translated package: geos
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
25 --disable-swig |
0b4277f483b2
translated package: geos
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
26 $(MAKE) -C '$(1)' -j '$(JOBS)' install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS= |
1828
04215d0b04a9
test program for package geos
Volker Grabsch <vog@notjusthosting.com>
parents:
1827
diff
changeset
|
27 |
04215d0b04a9
test program for package geos
Volker Grabsch <vog@notjusthosting.com>
parents:
1827
diff
changeset
|
28 '$(TARGET)-gcc' \ |
04215d0b04a9
test program for package geos
Volker Grabsch <vog@notjusthosting.com>
parents:
1827
diff
changeset
|
29 -W -Wall -Werror -ansi -pedantic \ |
04215d0b04a9
test program for package geos
Volker Grabsch <vog@notjusthosting.com>
parents:
1827
diff
changeset
|
30 '$(2).c' -o '$(PREFIX)/$(TARGET)/bin/test-geos.exe' \ |
04215d0b04a9
test program for package geos
Volker Grabsch <vog@notjusthosting.com>
parents:
1827
diff
changeset
|
31 -lgeos_c `'$(PREFIX)/$(TARGET)/bin/geos-config' --cflags --libs` -lstdc++ |
165
0b4277f483b2
translated package: geos
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
32 endef |