1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-27 00:57:50 +00:00

Correct gimp lib name.

Only create gimp plugin dir when compiling gimp support [1].
Extra large pointyhat for me.

Submitted by:	[1] Pointyhat
This commit is contained in:
Koop Mast 2005-02-22 10:12:32 +00:00
parent 17c455125d
commit 8390fec03f
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=129538

View File

@ -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