diff options
author | beech <beech@FreeBSD.org> | 2011-06-27 02:04:46 +0800 |
---|---|---|
committer | beech <beech@FreeBSD.org> | 2011-06-27 02:04:46 +0800 |
commit | caeb50fdcbfdba4ce8796c93fd7083ce86864d19 (patch) | |
tree | 592e942b2cc9cfb743d777e93cbc730177127263 /math/saga | |
parent | e6f674f58776004d48863dbbc6a7878361b9d541 (diff) | |
download | freebsd-ports-gnome-caeb50fdcbfdba4ce8796c93fd7083ce86864d19.tar.gz freebsd-ports-gnome-caeb50fdcbfdba4ce8796c93fd7083ce86864d19.tar.zst freebsd-ports-gnome-caeb50fdcbfdba4ce8796c93fd7083ce86864d19.zip |
- Add python bindings
- Bump portrevision
Submitted by: Rainer Hurling <rhurlin@gwdg.de> (maintainer)
Diffstat (limited to 'math/saga')
-rw-r--r-- | math/saga/Makefile | 15 | ||||
-rw-r--r-- | math/saga/pkg-plist | 7 |
2 files changed, 20 insertions, 2 deletions
diff --git a/math/saga/Makefile b/math/saga/Makefile index 5eb0153d0f4b..156d4bc829b7 100644 --- a/math/saga/Makefile +++ b/math/saga/Makefile @@ -7,6 +7,7 @@ PORTNAME= saga PORTVERSION= 2.0.7 +PORTREVISION= 1 CATEGORIES= math MASTER_SITES= SF/saga-gis/SAGA%20-%20${PORTVERSION:C/\.[[:digit:]]*$//}/SAGA%20${PORTVERSION} DISTNAME= ${PORTNAME}_${PORTVERSION} @@ -36,12 +37,11 @@ DESKTOP_ENTRIES= "SAGA GIS" "${COMMENT}" "${DATADIR}/saga_icon_32.xpm" \ "saga_gui" "Application;Math;" true OPTIONS= UNICODE "Enable Unicode Support" On \ + PYTHON "Enable Python bindings" On \ HARU "Enable Haru Free PDF Library (optional)" Off .include <bsd.port.options.mk> -.include <bsd.port.pre.mk> - LDFLAGS+= -L${LOCALBASE}/lib CONFIGURE_ARGS+= CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" @@ -52,6 +52,15 @@ CONFIGURE_ARGS+= --enable-unicode CONFIGURE_ARGS+= --disable-unicode .endif +.if defined(WITH_PYTHON) +CONFIGURE_ARGS+= --enable-python +USE_PYTHON= 2.6-2.7 +PLIST_SUB+= SAGA_PYTHON="" +.else +CONFIGURE_ARGS+= --disable-python +PLIST_SUB+= SAGA_PYTHON="@comment " +.endif + .if defined(WITH_HARU) BUILD_DEPENDS+= ${LOCALBASE}/lib/libhpdf.so:${PORTSDIR}/print/libharu RUN_DEPENDS+= ${LOCALBASE}/lib/libhpdf.so:${PORTSDIR}/print/libharu @@ -60,6 +69,8 @@ PLIST_SUB+= HARU="" PLIST_SUB+= HARU="@comment " .endif +.include <bsd.port.pre.mk> + post-patch: @for f in `${FIND} '${WRKSRC}' -name Makefile.in` \ ${WRKSRC}/configure; do \ diff --git a/math/saga/pkg-plist b/math/saga/pkg-plist index e981040f752f..f46e829e1d0b 100644 --- a/math/saga/pkg-plist +++ b/math/saga/pkg-plist @@ -10,6 +10,13 @@ lib/libsaga_odbc-2.0.7.so lib/libsaga_odbc.a lib/libsaga_odbc.la lib/libsaga_odbc.so +%%SAGA_PYTHON%%%%PYTHON_SITELIBDIR%%/_saga_api-2.0.7.so +%%SAGA_PYTHON%%%%PYTHON_SITELIBDIR%%/_saga_api.a +%%SAGA_PYTHON%%%%PYTHON_SITELIBDIR%%/_saga_api.la +%%SAGA_PYTHON%%%%PYTHON_SITELIBDIR%%/_saga_api.so +%%SAGA_PYTHON%%%%PYTHON_SITELIBDIR%%/saga_api.py +%%SAGA_PYTHON%%%%PYTHON_SITELIBDIR%%/saga_api.pyc +%%SAGA_PYTHON%%%%PYTHON_SITELIBDIR%%/saga_api.pyo lib/saga/libcontrib_a_perego.la lib/saga/libcontrib_a_perego.so lib/saga/libdocs_html.la |