Mercurial > mxe-octave
changeset 165:0b4277f483b2
translated package: geos
author | Volker Grabsch <vog@notjusthosting.com> |
---|---|
date | Sun, 09 Nov 2008 02:36:56 +0100 |
parents | 43f7cae42987 |
children | 5d8d63318729 |
files | src/geos.mk |
diffstat | 1 files changed, 28 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/geos.mk Sun Nov 09 02:36:56 2008 +0100 @@ -0,0 +1,28 @@ +# GEOS +# http://geos.refractions.net/ + +PKG := geos +$(PKG)_VERSION := 3.0.0 +$(PKG)_SUBDIR := geos-$($(PKG)_VERSION) +$(PKG)_FILE := geos-$($(PKG)_VERSION).tar.bz2 +$(PKG)_URL := http://geos.refractions.net/downloads/$($(PKG)_FILE) +$(PKG)_DEPS := gcc + +define $(PKG)_UPDATE + wget -q -O- 'http://geos.refractions.net/' | \ + $(SED) -n 's,.*geos-\([0-9][^>]*\)\.tar.*,\1,p' | \ + head -1 +endef + +define $(PKG)_BUILD + $(SED) 's,-lgeos,-lgeos -lstdc++,' -i '$(1)/tools/geos-config.in' + # timezone and gettimeofday are in <time.h> since MinGW runtime 3.10 + $(SED) 's,struct timezone {,struct timezone_disabled {,' -i '$(1)/source/headers/geos/timeval.h' + $(SED) 's,int gettimeofday,int gettimeofday_disabled,' -i '$(1)/source/headers/geos/timeval.h' + cd '$(1)' && ./configure \ + --host='$(TARGET)' \ + --disable-shared \ + --prefix='$(PREFIX)/$(TARGET)' \ + --disable-swig + $(MAKE) -C '$(1)' -j '$(JOBS)' install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS= +endef