# Ports collection makefile for: swfdec-plugin # Date created: Jun 14, 2005 # Whom: anholt # # $FreeBSD$ # PORTNAME= swfdec-plugin PORTVERSION= 0.4.2 CATEGORIES= www MASTER_SITES= http://swfdec.freedesktop.org/download/swfdec-mozilla/0.4/ DISTNAME= swfdec-mozilla-${PORTVERSION} MAINTAINER= anholt@FreeBSD.org COMMENT= Flash rendering plugin LIB_DEPENDS= swfdec-0.4:${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 USE_SDL= sdl USE_GNOME= gnomehack gtk20 USE_GSTREAMER= yes USE_GETOPT_LONG= yes USE_AUTOTOOLS= libtool:15 CONFIGURE_ARGS= --x-libraries=${X11BASE}/lib --x-includes=${X11BASE}/include \ --with-audio=none 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 PLIST_SUB= VERSION=${PORTVERSION:R} post-patch: @${REINPLACE_CMD} -e "s|plugindir =.*|plugindir = $(PREFIX)/lib/browser_plugins|g" ${WRKSRC}/src/Makefile.in .include