2005-06-16 21:06:08 +02:00
|
|
|
# Ports collection makefile for: swfdec-plugin
|
|
|
|
# Date created: Jun 14, 2005
|
|
|
|
# Whom: anholt
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= swfdec-plugin
|
2007-02-13 21:49:59 +01:00
|
|
|
PORTVERSION= 0.4.2
|
2007-05-19 22:36:56 +02:00
|
|
|
PORTREVISION= 1
|
2005-06-16 21:06:08 +02:00
|
|
|
CATEGORIES= www
|
2007-02-13 21:49:59 +01:00
|
|
|
MASTER_SITES= http://swfdec.freedesktop.org/download/swfdec-mozilla/0.4/
|
|
|
|
DISTNAME= swfdec-mozilla-${PORTVERSION}
|
2005-06-16 21:06:08 +02:00
|
|
|
|
|
|
|
MAINTAINER= anholt@FreeBSD.org
|
|
|
|
COMMENT= Flash rendering plugin
|
|
|
|
|
2007-02-13 21:49:59 +01:00
|
|
|
LIB_DEPENDS= swfdec-0.4:${PORTSDIR}/graphics/swfdec
|
2005-06-16 21:06:08 +02:00
|
|
|
.if defined(WITH_MOZILLA) && ${WITH_MOZILLA}=="firefox"
|
2006-10-14 10:54:54 +02:00
|
|
|
BUILD_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/firefox-plugin.pc:${PORTSDIR}/www/firefox
|
|
|
|
RUN_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/firefox-plugin.pc:${PORTSDIR}/www/firefox
|
2005-06-16 21:06:08 +02:00
|
|
|
.else
|
2006-10-14 10:54:54 +02:00
|
|
|
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}
|
2005-06-16 21:06:08 +02:00
|
|
|
.endif
|
|
|
|
|
|
|
|
USE_SDL= sdl
|
2007-02-13 21:49:59 +01:00
|
|
|
USE_GNOME= gnomehack gtk20
|
2006-11-21 21:58:13 +01:00
|
|
|
USE_GSTREAMER= yes
|
2006-04-30 01:03:03 +02:00
|
|
|
USE_GETOPT_LONG= yes
|
2005-11-15 07:52:12 +01:00
|
|
|
USE_AUTOTOOLS= libtool:15
|
2007-02-13 21:49:59 +01:00
|
|
|
CONFIGURE_ARGS= --x-libraries=${X11BASE}/lib --x-includes=${X11BASE}/include \
|
|
|
|
--with-audio=none
|
2006-04-30 01:03:03 +02:00
|
|
|
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS} -I${LOCALBASE}/include" \
|
2005-06-30 12:29:17 +02:00
|
|
|
LDFLAGS="-L${LOCALBASE}/lib"
|
|
|
|
|
|
|
|
.if defined(WITH_MOZILLA) && ${WITH_MOZILLA}=="firefox"
|
2006-10-14 10:54:54 +02:00
|
|
|
CONFIGURE_ENV+= MOZILLA_CONFIG="${LOCALBASE}/bin/firefox-config"
|
2005-06-30 12:29:17 +02:00
|
|
|
.else
|
2006-10-14 10:54:54 +02:00
|
|
|
CONFIGURE_ENV+= MOZILLA_CONFIG="${LOCALBASE}/lib/mozilla/mozilla-config"
|
2005-06-30 12:29:17 +02:00
|
|
|
.endif
|
|
|
|
|
2005-06-16 21:06:08 +02:00
|
|
|
INSTALLS_SHLIB= yes
|
|
|
|
|
|
|
|
PLIST_SUB= VERSION=${PORTVERSION:R}
|
|
|
|
|
|
|
|
post-patch:
|
2007-02-13 21:49:59 +01:00
|
|
|
@${REINPLACE_CMD} -e "s|plugindir =.*|plugindir = $(PREFIX)/lib/browser_plugins|g" ${WRKSRC}/src/Makefile.in
|
2005-06-16 21:06:08 +02:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|