- Add support for graphics/vigra

PR:		ports/158952
Submitted by:	Rainer Hurling <rhurlin@gwdg.de> (maintainer)
This commit is contained in:
Beech Rintoul 2011-07-16 17:10:27 +00:00
parent e96b1a3d0c
commit 696e4a5adc
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=277808
2 changed files with 13 additions and 2 deletions

View file

@ -7,7 +7,7 @@
PORTNAME= saga
PORTVERSION= 2.0.7
PORTREVISION= 2
PORTREVISION= 3
CATEGORIES= math
MASTER_SITES= SF/saga-gis/SAGA%20-%20${PORTVERSION:C/\.[[:digit:]]*$//}/SAGA%20${PORTVERSION}
DISTNAME= ${PORTNAME}_${PORTVERSION}
@ -38,7 +38,8 @@ DESKTOP_ENTRIES= "SAGA GIS" "${COMMENT}" "${DATADIR}/saga_icon_32.xpm" \
OPTIONS= UNICODE "Enable Unicode Support" On \
PYTHON "Enable Python bindings" On \
HARU "Enable Haru Free PDF Library (optional)" Off
HARU "Enable Haru Free PDF Library (optional)" Off \
VIGRA "Enable 'Vision with Generic Algorithms' Library" Off
.include <bsd.port.options.mk>
@ -69,6 +70,14 @@ PLIST_SUB+= HARU=""
PLIST_SUB+= HARU="@comment "
.endif
.if defined(WITH_VIGRA)
BUILD_DEPENDS+= ${LOCALBASE}/lib/libvigraimpex.so:${PORTSDIR}/graphics/vigra
RUN_DEPENDS+= ${LOCALBASE}/lib/libvigraimpex.so:${PORTSDIR}/graphics/vigra
PLIST_SUB+= VIGRA=""
.else
PLIST_SUB+= VIGRA="@comment "
.endif
.include <bsd.port.pre.mk>
post-patch:

View file

@ -138,6 +138,8 @@ lib/saga/libtin_viewer.la
lib/saga/libtin_viewer.so
lib/saga/libtransect.la
lib/saga/libtransect.so
%%VIGRA%%lib/saga/libvigra.la
%%VIGRA%%lib/saga/libvigra.so
share/saga/saga_icon_32.xpm
share/saga/saga_tip.txt
@dirrm share/saga