aboutsummaryrefslogtreecommitdiff
path: root/graphics/swfdec/Makefile
diff options
context:
space:
mode:
authorKoop Mast <kwm@FreeBSD.org>2005-02-14 20:57:32 +0000
committerKoop Mast <kwm@FreeBSD.org>2005-02-14 20:57:32 +0000
commitba5df596394824b74121f62eb83104ef636e09b3 (patch)
tree9039aa061332c37d8ac1bc2d308818cfcc7bc32a /graphics/swfdec/Makefile
parentcce652cdf63e94f78b80f502e39d607364dc5e1f (diff)
downloadports-ba5df596394824b74121f62eb83104ef636e09b3.tar.gz
ports-ba5df596394824b74121f62eb83104ef636e09b3.zip
Notes
Diffstat (limited to 'graphics/swfdec/Makefile')
-rw-r--r--graphics/swfdec/Makefile16
1 files changed, 15 insertions, 1 deletions
diff --git a/graphics/swfdec/Makefile b/graphics/swfdec/Makefile
index 90b40ab542ed..4b610a7619a9 100644
--- a/graphics/swfdec/Makefile
+++ b/graphics/swfdec/Makefile
@@ -8,7 +8,7 @@
PORTNAME= swfdec
PORTVERSION= 0.3.2
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= graphics
MASTER_SITES= http://www.schleef.org/swfdec/download/
@@ -31,7 +31,21 @@ INSTALLS_SHLIB= yes
PLIST_SUB= VERSION=${PORTVERSION:R}
+.if exists(${X11BASE}/bin/gimp-2.2) || defined(WITH_GIMP)
+LIB_DEPENDS+= gimp.200:${PORTSDIR}/graphics/gimp
+PLIST_SUB+= GIMP=""
+.else
+PLIST_SUB+= GIMP="@comment "
+.endif
+
+pre-everything::
+ @${ECHO} ""
+ @${ECHO} "Definde WITH_GIMP to build swf gimp plugin"
+ @${ECHO} ""
+
post-patch:
@${REINPLACE_CMD} -e "s,int16_t,__int16_t," ${WRKSRC}/libswfdec/swfdec_shape.c
+ @${REINPLACE_CMD} -e 's|libdir)/gimp/1.3|prefix)/libexec/gimp/2.2|g' ${WRKSRC}/gimp-loader/Makefile.in
+ @${REINPLACE_CMD} -e 's|plugin||g' ${WRKSRC}/Makefile.in
.include <bsd.port.mk>