diff options
author | Jeremy Messenger <mezz@FreeBSD.org> | 2009-01-10 02:45:46 +0000 |
---|---|---|
committer | Jeremy Messenger <mezz@FreeBSD.org> | 2009-01-10 02:45:46 +0000 |
commit | 15b6544926b07a98710eeb765baf03e3fc9a195c (patch) | |
tree | 35103cf986d2ed2295c97768e62afcc47dfed877 /multimedia/totem | |
parent | 23fcf54562404bb41380488c8318ac0e3ce15efc (diff) | |
download | ports-15b6544926b07a98710eeb765baf03e3fc9a195c.tar.gz ports-15b6544926b07a98710eeb765baf03e3fc9a195c.zip |
Add a new framework for browser plugins, USE_WEBPLUGINS. It is for which foo
plugins support one of web browsers and can take care of plist (depend on how
you use it) at the same time. I have written a complete document and even show
how it works in the www/firefox/Makefile.webplugins so be sure to read in
there. If there is anything that isn't clear in the document, please feel free
to ask and I will try my best to improvement it.
FYI: GNOME 2.24 depends on this, so it's coming.
BTW: It's based on www/linux-mplayer-plugin/Makefile.npapi with heavy modified.
Approved by: portmgr
Notes
Notes:
svn path=/head/; revision=225627
Diffstat (limited to 'multimedia/totem')
-rw-r--r-- | multimedia/totem/Makefile | 23 | ||||
-rw-r--r-- | multimedia/totem/pkg-plist | 50 |
2 files changed, 40 insertions, 33 deletions
diff --git a/multimedia/totem/Makefile b/multimedia/totem/Makefile index e0561d19112c..81836a23f05d 100644 --- a/multimedia/totem/Makefile +++ b/multimedia/totem/Makefile @@ -3,12 +3,12 @@ # Whom: Hendrik Scholz <hendrik@scholz.net> # # $FreeBSD$ -# $MCom: ports/multimedia/totem/Makefile,v 1.102 2008/03/16 06:11:13 mezz Exp $ +# $MCom: ports-stable/multimedia/totem/Makefile,v 1.9 2008/08/02 21:17:25 mezz Exp $ # PORTNAME= totem PORTVERSION= 2.22.2 -PORTREVISION?= 3 +PORTREVISION?= 4 CATEGORIES= multimedia gnome MASTER_SITES= GNOME DIST_SUBDIR= gnome2 @@ -100,6 +100,16 @@ CONFIGURE_ARGS+=--with-mozilla=${GECKO} \ --enable-complex-plugin \ --enable-narrowspace-plugin PLIST_SUB+= GECKO_PLUGINS="" + +USE_WEBPLUGINS= gecko* +WEBPLUGINS_FILES= libtotem-basic-plugin.so libtotem-basic-plugin.xpt \ + libtotem-complex-plugin.so libtotem-complex-plugin.xpt \ + libtotem-cone-plugin.so libtotem-cone-plugin.xpt \ + libtotem-gmp-plugin.so libtotem-gmp-plugin.xpt \ + libtotem-mully-plugin.so libtotem-mully-plugin.xpt \ + libtotem-narrowspace-plugin.so \ + libtotem-narrowspace-plugin.xpt +.include "${PORTSDIR}/www/firefox/Makefile.webplugins" .else CONFIGURE_ARGS+=--without-mozilla \ --disable-browser-plugins \ @@ -139,12 +149,9 @@ pre-everything:: post-patch: @${CP} -f ${FILESDIR}/pkg-message.in ${PKGMESSAGE} - @${REINPLACE_CMD} -e ' s|@MOZILLA_PLUGINDIR@|${PREFIX}/lib/browser_plugins|; \ - s|mozilla/plugins|browser_plugins|' \ - ${WRKSRC}/browser-plugin/Makefile.in \ - ${WRKSRC}/browser-plugin/idl/Makefile.in - @${REINPLACE_CMD} -e 's|dbus >= 0.61|dbus-1 >= 0.61|g' \ - ${WRKSRC}/configure + @${REINPLACE_CMD} -e 's|dbus >= 0.61|dbus-1 >= 0.61|g ; \ + s|_PLUGINDIR=".*"|_PLUGINDIR="${WEBPLUGINS_DIR}"|g' \ + ${WRKSRC}/configure @${REINPLACE_CMD} -e 's|/dev/dvd|${DEFAULT_DVD_DEVICE}|' \ ${WRKSRC}/src/backend/bacon-video-widget-gst-0.10.c diff --git a/multimedia/totem/pkg-plist b/multimedia/totem/pkg-plist index adbd789b65c8..ef4479b60a0a 100644 --- a/multimedia/totem/pkg-plist +++ b/multimedia/totem/pkg-plist @@ -2,30 +2,30 @@ bin/totem bin/totem-audio-preview bin/totem-video-indexer bin/totem-video-thumbnailer -%%GECKO_PLUGINS%%lib/browser_plugins/libtotem-basic-plugin.a -%%GECKO_PLUGINS%%lib/browser_plugins/libtotem-basic-plugin.la -%%GECKO_PLUGINS%%lib/browser_plugins/libtotem-basic-plugin.so -%%GECKO_PLUGINS%%lib/browser_plugins/libtotem-basic-plugin.xpt -%%GECKO_PLUGINS%%lib/browser_plugins/libtotem-complex-plugin.a -%%GECKO_PLUGINS%%lib/browser_plugins/libtotem-complex-plugin.la -%%GECKO_PLUGINS%%lib/browser_plugins/libtotem-complex-plugin.so -%%GECKO_PLUGINS%%lib/browser_plugins/libtotem-complex-plugin.xpt -%%GECKO_PLUGINS%%lib/browser_plugins/libtotem-cone-plugin.a -%%GECKO_PLUGINS%%lib/browser_plugins/libtotem-cone-plugin.la -%%GECKO_PLUGINS%%lib/browser_plugins/libtotem-cone-plugin.so -%%GECKO_PLUGINS%%lib/browser_plugins/libtotem-cone-plugin.xpt -%%GECKO_PLUGINS%%lib/browser_plugins/libtotem-gmp-plugin.a -%%GECKO_PLUGINS%%lib/browser_plugins/libtotem-gmp-plugin.la -%%GECKO_PLUGINS%%lib/browser_plugins/libtotem-gmp-plugin.so -%%GECKO_PLUGINS%%lib/browser_plugins/libtotem-gmp-plugin.xpt -%%GECKO_PLUGINS%%lib/browser_plugins/libtotem-mully-plugin.a -%%GECKO_PLUGINS%%lib/browser_plugins/libtotem-mully-plugin.la -%%GECKO_PLUGINS%%lib/browser_plugins/libtotem-mully-plugin.so -%%GECKO_PLUGINS%%lib/browser_plugins/libtotem-mully-plugin.xpt -%%GECKO_PLUGINS%%lib/browser_plugins/libtotem-narrowspace-plugin.a -%%GECKO_PLUGINS%%lib/browser_plugins/libtotem-narrowspace-plugin.la -%%GECKO_PLUGINS%%lib/browser_plugins/libtotem-narrowspace-plugin.so -%%GECKO_PLUGINS%%lib/browser_plugins/libtotem-narrowspace-plugin.xpt +%%GECKO_PLUGINS%%%%WEBPLUGINS_DIR%%/libtotem-basic-plugin.a +%%GECKO_PLUGINS%%%%WEBPLUGINS_DIR%%/libtotem-basic-plugin.la +%%GECKO_PLUGINS%%%%WEBPLUGINS_DIR%%/libtotem-basic-plugin.so +%%GECKO_PLUGINS%%%%WEBPLUGINS_DIR%%/libtotem-basic-plugin.xpt +%%GECKO_PLUGINS%%%%WEBPLUGINS_DIR%%/libtotem-complex-plugin.a +%%GECKO_PLUGINS%%%%WEBPLUGINS_DIR%%/libtotem-complex-plugin.la +%%GECKO_PLUGINS%%%%WEBPLUGINS_DIR%%/libtotem-complex-plugin.so +%%GECKO_PLUGINS%%%%WEBPLUGINS_DIR%%/libtotem-complex-plugin.xpt +%%GECKO_PLUGINS%%%%WEBPLUGINS_DIR%%/libtotem-cone-plugin.a +%%GECKO_PLUGINS%%%%WEBPLUGINS_DIR%%/libtotem-cone-plugin.la +%%GECKO_PLUGINS%%%%WEBPLUGINS_DIR%%/libtotem-cone-plugin.so +%%GECKO_PLUGINS%%%%WEBPLUGINS_DIR%%/libtotem-cone-plugin.xpt +%%GECKO_PLUGINS%%%%WEBPLUGINS_DIR%%/libtotem-gmp-plugin.a +%%GECKO_PLUGINS%%%%WEBPLUGINS_DIR%%/libtotem-gmp-plugin.la +%%GECKO_PLUGINS%%%%WEBPLUGINS_DIR%%/libtotem-gmp-plugin.so +%%GECKO_PLUGINS%%%%WEBPLUGINS_DIR%%/libtotem-gmp-plugin.xpt +%%GECKO_PLUGINS%%%%WEBPLUGINS_DIR%%/libtotem-mully-plugin.a +%%GECKO_PLUGINS%%%%WEBPLUGINS_DIR%%/libtotem-mully-plugin.la +%%GECKO_PLUGINS%%%%WEBPLUGINS_DIR%%/libtotem-mully-plugin.so +%%GECKO_PLUGINS%%%%WEBPLUGINS_DIR%%/libtotem-mully-plugin.xpt +%%GECKO_PLUGINS%%%%WEBPLUGINS_DIR%%/libtotem-narrowspace-plugin.a +%%GECKO_PLUGINS%%%%WEBPLUGINS_DIR%%/libtotem-narrowspace-plugin.la +%%GECKO_PLUGINS%%%%WEBPLUGINS_DIR%%/libtotem-narrowspace-plugin.so +%%GECKO_PLUGINS%%%%WEBPLUGINS_DIR%%/libtotem-narrowspace-plugin.xpt lib/nautilus/extensions-2.0/libtotem-properties-page.a lib/nautilus/extensions-2.0/libtotem-properties-page.la lib/nautilus/extensions-2.0/libtotem-properties-page.so @@ -403,7 +403,7 @@ share/vala/vapi/totem.vapi %%GALAGO%%@dirrm lib/totem/plugins/galago @dirrm lib/totem/plugins @dirrm lib/totem -%%GECKO_PLUGINS%%@dirrmtry lib/browser_plugins +%%GECKO_PLUGINS%%@dirrmtry %%WEBPLUGINS_DIR%% @exec %%LOCALBASE%%/bin/update-desktop-database > /dev/null || /usr/bin/true @unexec %%LOCALBASE%%/bin/update-desktop-database > /dev/null || /usr/bin/true @dirrmtry share/applications |