From 55c8e83f041169594c01ffbcc998a4cc31d4e879 Mon Sep 17 00:00:00 2001 From: beech Date: Sat, 16 Jul 2011 17:10:27 +0000 Subject: - Add support for graphics/vigra PR: ports/158952 Submitted by: Rainer Hurling (maintainer) --- math/saga/Makefile | 13 +++++++++++-- math/saga/pkg-plist | 2 ++ 2 files changed, 13 insertions(+), 2 deletions(-) (limited to 'math') diff --git a/math/saga/Makefile b/math/saga/Makefile index f4bfef977213..d83a7111c2f3 100644 --- a/math/saga/Makefile +++ b/math/saga/Makefile @@ -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 @@ -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 post-patch: diff --git a/math/saga/pkg-plist b/math/saga/pkg-plist index f46e829e1d0b..500420ee384e 100644 --- a/math/saga/pkg-plist +++ b/math/saga/pkg-plist @@ -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 -- cgit