annotate src/geos.mk @ 2855:47558e958113

Allow static/shared libraries to be configured in top-level Makefile.
author John W. Eaton <jwe@octave.org>
date Thu, 15 Nov 2012 16:11:45 -0500
parents cd5e84cf026f
children 100e618349f7
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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.
2353
99516e73b368 Move doc/index.html -> index.html
Volker Grabsch <vog@notjusthosting.com>
parents: 2349
diff changeset
2 # See 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
306
85ffa9259036 validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents: 303
diff changeset
4 PKG := geos
448
e9afec55fd6b improved version recognition, enable the notation of ignored (bad) package versions
Volker Grabsch <vog@notjusthosting.com>
parents: 420
diff changeset
5 $(PKG)_IGNORE :=
2644
cd5e84cf026f update package geos
Mark Brand <mabrand@mabrand.nl>
parents: 2568
diff changeset
6 $(PKG)_CHECKSUM := 791e2b36a9a6114c7f213fae3fc995960c35a428
306
85ffa9259036 validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents: 303
diff changeset
7 $(PKG)_SUBDIR := geos-$($(PKG)_VERSION)
85ffa9259036 validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents: 303
diff changeset
8 $(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
9 $(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
10 $(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
11 $(PKG)_DEPS := gcc
165
0b4277f483b2 translated package: geos
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
12
0b4277f483b2 translated package: geos
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
13 define $(PKG)_UPDATE
2525
4d0f3a9da57e all packages: use $(WGET) portability variable
Tony Theodore <tonyt@logyst.com>
parents: 2390
diff changeset
14 $(WGET) -q -O- 'http://geos.refractions.net/' | \
165
0b4277f483b2 translated package: geos
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
15 $(SED) -n 's,.*geos-\([0-9][^>]*\)\.tar.*,\1,p' | \
0b4277f483b2 translated package: geos
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
16 head -1
0b4277f483b2 translated package: geos
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
17 endef
0b4277f483b2 translated package: geos
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
18
0b4277f483b2 translated package: geos
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
19 define $(PKG)_BUILD
0b4277f483b2 translated package: geos
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
20 cd '$(1)' && ./configure \
0b4277f483b2 translated package: geos
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
21 --host='$(TARGET)' \
2568
49d60b80df76 update package geos
Mark Brand <mabrand@mabrand.nl>
parents: 2525
diff changeset
22 --build="`config.guess`" \
2855
47558e958113 Allow static/shared libraries to be configured in top-level Makefile.
John W. Eaton <jwe@octave.org>
parents: 2644
diff changeset
23 $(ENABLE_SHARED_OR_STATIC) \
2568
49d60b80df76 update package geos
Mark Brand <mabrand@mabrand.nl>
parents: 2525
diff changeset
24 --prefix='$(PREFIX)/$(TARGET)'
165
0b4277f483b2 translated package: geos
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
25 $(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
26
04215d0b04a9 test program for package geos
Volker Grabsch <vog@notjusthosting.com>
parents: 1827
diff changeset
27 '$(TARGET)-gcc' \
04215d0b04a9 test program for package geos
Volker Grabsch <vog@notjusthosting.com>
parents: 1827
diff changeset
28 -W -Wall -Werror -ansi -pedantic \
04215d0b04a9 test program for package geos
Volker Grabsch <vog@notjusthosting.com>
parents: 1827
diff changeset
29 '$(2).c' -o '$(PREFIX)/$(TARGET)/bin/test-geos.exe' \
04215d0b04a9 test program for package geos
Volker Grabsch <vog@notjusthosting.com>
parents: 1827
diff changeset
30 -lgeos_c `'$(PREFIX)/$(TARGET)/bin/geos-config' --cflags --libs` -lstdc++
165
0b4277f483b2 translated package: geos
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
31 endef