diff options
author | Beech Rintoul <beech@FreeBSD.org> | 2011-06-26 18:04:46 +0000 |
---|---|---|
committer | Beech Rintoul <beech@FreeBSD.org> | 2011-06-26 18:04:46 +0000 |
commit | 1ee9d8ac62187dfbe998e676f62cb072c06906e7 (patch) | |
tree | 5105d9801261fa2f7cf449bffb59994272346516 /math/saga | |
parent | d2d0470018b1736a00232df5b2423c11e5d8e5f2 (diff) | |
download | ports-1ee9d8ac62187dfbe998e676f62cb072c06906e7.tar.gz ports-1ee9d8ac62187dfbe998e676f62cb072c06906e7.zip |
Notes
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 |