mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-04 06:15:24 +00:00
Fix plist en register optional gimp dependencie.
Pointed out by: pointyhat via kris
This commit is contained in:
parent
cce652cdf6
commit
ba5df59639
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=128850
@ -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>
|
||||
|
@ -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%%
|
||||
|
Loading…
Reference in New Issue
Block a user