summaryrefslogblamecommitdiffstats
path: root/www/swfdec-plugin/Makefile
blob: c96f333685834cc1b066dfc05cea67554e881c87 (plain) (tree)
1
2
3
4
5
6
7
8
9








                                                     
                 
















                                                                                                                      

                          
























                                                                                                
# Ports collection makefile for:    swfdec-plugin
# Date created:             Jun 14, 2005
# Whom:                 anholt
#
# $FreeBSD$
#

PORTNAME=   swfdec-plugin
PORTVERSION=    0.3.5
PORTREVISION=   3
CATEGORIES= www
MASTER_SITES=   http://www.schleef.org/swfdec/download/
DISTNAME=   swfdec-${PORTVERSION}

MAINTAINER= anholt@FreeBSD.org
COMMENT=    Flash rendering plugin

LIB_DEPENDS=    swfdec-0.3.0:${PORTSDIR}/graphics/swfdec
.if defined(WITH_MOZILLA) && ${WITH_MOZILLA}=="firefox"
BUILD_DEPENDS=  ${LOCALBASE}/libdata/pkgconfig/firefox-plugin.pc:${PORTSDIR}/www/firefox
RUN_DEPENDS=    ${LOCALBASE}/libdata/pkgconfig/firefox-plugin.pc:${PORTSDIR}/www/firefox
.else
BUILD_DEPENDS=  ${LOCALBASE}/libdata/pkgconfig/mozilla-plugin${HEADERS_SUFX}.pc:${PORTSDIR}/www/mozilla${HEADERS_SUFX}
RUN_DEPENDS=    ${LOCALBASE}/libdata/pkgconfig/mozilla-plugin${HEADERS_SUFX}.pc:${PORTSDIR}/www/mozilla${HEADERS_SUFX}
.endif

BROKEN=     Does not compile
DEPRECATED= ${BROKEN}
EXPIRATION_DATE=2006-12-01

USE_SDL=    sdl
USE_GNOME=  gnomehack gtk20 libartlgpl2
USE_GSTREAMER80=    gconf
USE_GETOPT_LONG=    yes
USE_AUTOTOOLS=  libtool:15
CONFIGURE_ENV=  CPPFLAGS="${CPPFLAGS} -I${LOCALBASE}/include" \
        LDFLAGS="-L${LOCALBASE}/lib"

.if defined(WITH_MOZILLA) && ${WITH_MOZILLA}=="firefox"
CONFIGURE_ENV+= MOZILLA_CONFIG="${LOCALBASE}/bin/firefox-config"
.else
CONFIGURE_ENV+= MOZILLA_CONFIG="${LOCALBASE}/lib/mozilla/mozilla-config"
.endif

INSTALLS_SHLIB= yes
INSTALL_WRKSRC= ${WRKSRC}/plugin

PLIST_SUB=  VERSION=${PORTVERSION:R}

post-patch:
    @${REINPLACE_CMD} -e "s,int16_t,__int16_t," ${WRKSRC}/libswfdec/swfdec_shape.c
    @${REINPLACE_CMD} -e "s,mozilla/plugins/,browser_plugins/," ${WRKSRC}/plugin/Makefile.in

.include <bsd.port.mk>