aboutsummaryrefslogtreecommitdiff
path: root/graphics
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
parentcce652cdf63e94f78b80f502e39d607364dc5e1f (diff)
downloadports-ba5df596394824b74121f62eb83104ef636e09b3.tar.gz
ports-ba5df596394824b74121f62eb83104ef636e09b3.zip
Notes
Diffstat (limited to 'graphics')
-rw-r--r--graphics/swfdec/Makefile16
-rw-r--r--graphics/swfdec/pkg-plist8
2 files changed, 17 insertions, 7 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>
diff --git a/graphics/swfdec/pkg-plist b/graphics/swfdec/pkg-plist
index 612b56b3ef19..be2e96f6b54c 100644
--- a/graphics/swfdec/pkg-plist
+++ b/graphics/swfdec/pkg-plist
@@ -24,15 +24,11 @@ include/swfdec-%%VERSION%%/swfdec_text.h
include/swfdec-%%VERSION%%/swfdec_transform.h
include/swfdec-%%VERSION%%/swfdec_types.h
include/swfdec-%%VERSION%%/tags.h
-@dirrm include/swfdec-%%VERSION%%
lib/gtk-2.0/2.4.0/loaders/swf_loader.a
lib/gtk-2.0/2.4.0/loaders/swf_loader.so
lib/libswfdec-%%VERSION%%.a
lib/libswfdec-%%VERSION%%.so
lib/libswfdec-%%VERSION%%.so.0
libdata/pkgconfig/swfdec-%%VERSION%%.pc
-@dirrm lib/mozilla/plugins 2>/dev/null || true
-@dirrm lib/mozilla 2>/dev/null || true
-@dirrm lib/gimp/1.3/plug-ins 2>/dev/null || true
-@dirrm lib/gimp/1.3 2>/dev/null || true
-@dirrm lib/gimp 2>/dev/null || true
+%%GIMP%%libexec/gimp/2.2/plug-ins/swf
+@dirrm include/swfdec-%%VERSION%%