# HG changeset patch # User Volker Grabsch # Date 1226194616 -3600 # Node ID 0b4277f483b2c926bc8aa2c823a77d25e22ab58b # Parent 43f7cae429877cdc9dbd3aae6c2270f0b4c9d758 translated package: geos diff -r 43f7cae42987 -r 0b4277f483b2 src/geos.mk --- /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 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