freebsd-ports/graphics/swfdec/Makefile
Michael Johnson d8e1e16e64 - Update gstreamer to 0.10
- Move all old gstreamer 0.8 ports to gstreamer*80 [1]
- Chase all ports with new gstreamer or gstreaemer moves

Repocopied by:  marcus [1]
2006-04-29 23:03:03 +00:00

59 lines
1.5 KiB
Makefile

# ex:ts=8
# Ports collection makefile for: swfdec
# Date created: Apr 5, 2003
# Whom: ijliao
#
# $FreeBSD$
#
PORTNAME= swfdec
PORTVERSION= 0.3.6
PORTREVISION= 1
CATEGORIES= graphics
MASTER_SITES= http://www.schleef.org/swfdec/download/
MAINTAINER= rainer.alves@gmail.com
COMMENT= Flash Rendering Library
LIB_DEPENDS= mad.2:${PORTSDIR}/audio/libmad \
oil-0.3.1:${PORTSDIR}/devel/liboil
USE_X_PREFIX= yes
USE_SDL= sdl
USE_GNOME= gnomehack gtk20 libartlgpl2
USE_GSTREAMER80= gconf
USE_GETOPT_LONG= yes
GNU_CONFIGURE= yes
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include -I${X11BASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
CONFIGURE_ARGS= --disable-mozilla-plugin
INSTALLS_SHLIB= yes
PLIST_SUB= VERSION=${PORTVERSION:R}
.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 "
.endif
pre-everything::
@${ECHO} ""
@${ECHO} "Define WITH_GIMP in order to build the SWF Gimp plugin"
@${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
@${REINPLACE_CMD} -e "s|sdl-config|${SDL_CONFIG:T}|g" ${WRKSRC}/configure
.include <bsd.port.mk>