aboutsummaryrefslogtreecommitdiffstats
path: root/graphics
diff options
context:
space:
mode:
authorahze <ahze@FreeBSD.org>2005-02-16 07:17:12 +0800
committerahze <ahze@FreeBSD.org>2005-02-16 07:17:12 +0800
commit41c56f5d6cb3736e1a9ef3a00efc2bd2ed9ffb99 (patch)
tree48d093858d63d96e3b612eedfccaa7e28e801e53 /graphics
parentc14a859880559259b55fb84b598b8b1846c70a1d (diff)
downloadfreebsd-ports-gnome-41c56f5d6cb3736e1a9ef3a00efc2bd2ed9ffb99.tar.gz
freebsd-ports-gnome-41c56f5d6cb3736e1a9ef3a00efc2bd2ed9ffb99.tar.zst
freebsd-ports-gnome-41c56f5d6cb3736e1a9ef3a00efc2bd2ed9ffb99.zip
- Add OPTIONS, WITH_SVG[1] for svg support, and WITH_PYGTK for gtk support
- Bump PORTREVISION Requested by: debugger [1]
Diffstat (limited to 'graphics')
-rw-r--r--graphics/py-cairo/Makefile11
-rw-r--r--graphics/py-cairo/pkg-plist1
2 files changed, 12 insertions, 0 deletions
diff --git a/graphics/py-cairo/Makefile b/graphics/py-cairo/Makefile
index 3872266c6f1c..0dce476d3a38 100644
--- a/graphics/py-cairo/Makefile
+++ b/graphics/py-cairo/Makefile
@@ -7,6 +7,7 @@
PORTNAME= cairo
PORTVERSION= 0.1.4
+PORTREVISION= 1
CATEGORIES= graphics python
MASTER_SITES= http://cairographics.org/snapshots/
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@@ -23,6 +24,9 @@ USE_PYTHON= yes
WANT_GNOME= yes
USE_LIBTOOL_VER=15
+OPTIONS= PYGTK "Enable PyGTK Support" On \
+ SVG "Enable SVG Support" On
+
.include <bsd.port.pre.mk>
.if ${HAVE_GNOME:Mpygtk2}!=""
@@ -36,4 +40,11 @@ USE_GNOME= pygtk2
PLIST_SUB+= GTK=""
.endif
+.if defined(WITH_SVG) || exists(${LOCALBASE}/lib/libsvg-cairo.a)
+LIB_DEPENDS+= svg-cairo.1:${PORTSDIR}/graphics/libsvg-cairo
+PLIST_SUB+= SVG=""
+.else
+PLIST_SUB+= SVG="@comment "
+.endif
+
.include <bsd.port.post.mk>
diff --git a/graphics/py-cairo/pkg-plist b/graphics/py-cairo/pkg-plist
index 2c5a3c5c3bbe..18ea7d7a64c0 100644
--- a/graphics/py-cairo/pkg-plist
+++ b/graphics/py-cairo/pkg-plist
@@ -3,5 +3,6 @@
%%PYTHON_SITELIBDIR%%/cairo/__init__.pyo
%%PYTHON_SITELIBDIR%%/cairo/_cairo.so
%%GTK%%%%PYTHON_SITELIBDIR%%/cairo/gtk.so
+%%SVG%%%%PYTHON_SITELIBDIR%%/cairo/svg.so
%%PYTHON_SITELIBDIR%%/cairo/numpy.so
@dirrm %%PYTHON_SITELIBDIR%%/cairo