ports/158952: [maintainer][patch] math/saga: adding support for graphics/vigra

Rainer Hurling rhurlin at gwdg.de
Fri Jul 15 18:10:13 UTC 2011


>Number:         158952
>Category:       ports
>Synopsis:       [maintainer][patch] math/saga: adding support for graphics/vigra
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jul 15 18:10:13 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Rainer Hurling
>Release:        FreeBSD 9.0-CURRENT amd64
>Organization:
>Environment:
FreeBSD x.x.x 9.0-CURRENT FreeBSD 9.0-CURRENT #0: Tue Jul 12 17:07:40 CEST 2011 x at x.x.x:/usr/obj/usr/src/sys/XXX amd64
>Description:
The patch adds optional support for graphics/vigra. With ViGrA library SAGA GIS is able to build the nine additional modules under category 'Imagery - ViGrA'.
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

diff -Naur saga.orig/Makefile saga/Makefile
--- saga.orig/Makefile	2011-06-29 17:30:25.000000000 +0200
+++ saga/Makefile	2011-07-15 19:25:46.000000000 +0200
@@ -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 @@
 
 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="@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:
diff -Naur saga.orig/pkg-plist saga/pkg-plist
--- saga.orig/pkg-plist	2011-06-27 09:20:52.000000000 +0200
+++ saga/pkg-plist	2011-07-15 19:24:58.000000000 +0200
@@ -138,6 +138,8 @@
 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


>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list