aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--graphics/geos/Makefile23
-rw-r--r--graphics/geos/pkg-plist11
2 files changed, 29 insertions, 5 deletions
diff --git a/graphics/geos/Makefile b/graphics/geos/Makefile
index ea4601ab2d7..9156b719a3f 100644
--- a/graphics/geos/Makefile
+++ b/graphics/geos/Makefile
@@ -7,7 +7,7 @@
PORTNAME= geos
PORTVERSION= 3.3.0
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= graphics geography
MASTER_SITES= http://download.osgeo.org/geos/
@@ -17,9 +17,24 @@ COMMENT= GEOS implements all the OpenGIS "Simple Features for SQL"
LICENSE= LGPL21
USE_AUTOTOOLS= libtool
-USE_BZIP2= YES
-USE_GMAKE= YES
-USE_LDCONFIG= YES
+USE_BZIP2= yes
+USE_GMAKE= yes
+USE_LDCONFIG= yes
+GNU_CONFIGURE= yes
+
+OPTIONS= PYTHON "Enable python bindings" off
+
+.include <bsd.port.options.mk>
+
+.if defined(WITH_PYTHON)
+USE_PYTHON= yes
+CONFIGURE_ARGS+=--enable-python
+PLIST_SUB+= PYTHON=""
+BUILD_DEPENDS+= swig:${PORTSDIR}/devel/swig13
+PKGNAMESUFFIX= -python
+.else
+PLIST_SUB+= PYTHON="@comment "
+.endif
post-install:
@${LN} -s ${PREFIX}/lib/libgeos-${PORTVERSION}.so ${PREFIX}/lib/libgeos.so.0
diff --git a/graphics/geos/pkg-plist b/graphics/geos/pkg-plist
index 0dba0a8fccb..087b2355347 100644
--- a/graphics/geos/pkg-plist
+++ b/graphics/geos/pkg-plist
@@ -357,14 +357,23 @@ include/geos/util/math.h
include/geos/version.h
include/geos_c.h
lib/libgeos-3.3.0.so
-lib/libgeos.so.0
lib/libgeos.a
lib/libgeos.la
lib/libgeos.so
+lib/libgeos.so.0
lib/libgeos_c.a
lib/libgeos_c.la
lib/libgeos_c.so
lib/libgeos_c.so.8
+%%PYTHON%%%%PYTHON_SITELIBDIR%%/geos.pth
+%%PYTHON%%%%PYTHON_SITELIBDIR%%/geos/_geos.a
+%%PYTHON%%%%PYTHON_SITELIBDIR%%/geos/_geos.la
+%%PYTHON%%%%PYTHON_SITELIBDIR%%/geos/_geos.so
+%%PYTHON%%%%PYTHON_SITELIBDIR%%/geos/geos.py
+%%PYTHON%%%%PYTHON_SITELIBDIR%%/geos/geos.pyc
+%%PYTHON%%%%PYTHON_SITELIBDIR%%/geos/geos.pyo
+%%PYTHON%%@dirrm %%PYTHON_SITELIBDIR%%/geos
+%%PYTHON%%@dirrm %%PYTHON_SITELIBDIR%%
@dirrm lib/geos
@dirrm include/geos/util
@dirrm include/geos/simplify