aboutsummaryrefslogtreecommitdiff
path: root/graphics/swfdec
diff options
context:
space:
mode:
authorKoop Mast <kwm@FreeBSD.org>2005-02-22 10:12:32 +0000
committerKoop Mast <kwm@FreeBSD.org>2005-02-22 10:12:32 +0000
commit8390fec03f8121b64c0dbd738e14b69501635b87 (patch)
tree1ad0aaaa4a6fd29f01d2195cdab27a77c28fe57f /graphics/swfdec
parent17c455125d986e72bb936302afdc3500f35d47f8 (diff)
downloadports-8390fec03f8121b64c0dbd738e14b69501635b87.tar.gz
ports-8390fec03f8121b64c0dbd738e14b69501635b87.zip
Notes
Diffstat (limited to 'graphics/swfdec')
-rw-r--r--graphics/swfdec/Makefile13
1 files changed, 10 insertions, 3 deletions
diff --git a/graphics/swfdec/Makefile b/graphics/swfdec/Makefile
index 4b610a7619a9..981ef486457b 100644
--- a/graphics/swfdec/Makefile
+++ b/graphics/swfdec/Makefile
@@ -8,7 +8,7 @@
PORTNAME= swfdec
PORTVERSION= 0.3.2
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= graphics
MASTER_SITES= http://www.schleef.org/swfdec/download/
@@ -31,8 +31,12 @@ 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
+.if exists(${X11BASE}/bin/gimp-2.2)
+WITH_GIMP=yes
+.endif
+
+.if defined(WITH_GIMP)
+LIB_DEPENDS+= gimp-2.0.200:${PORTSDIR}/graphics/gimp
PLIST_SUB+= GIMP=""
.else
PLIST_SUB+= GIMP="@comment "
@@ -44,6 +48,9 @@ pre-everything::
@${ECHO} ""
post-patch:
+.if !defined(WITH_GIMP)
+ @${REINPLACE_CMD} -e 's|gimp-loader||g' ${WRKSRC}/Makefile.in
+.endif
@${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