From 15b6544926b07a98710eeb765baf03e3fc9a195c Mon Sep 17 00:00:00 2001 From: Jeremy Messenger Date: Sat, 10 Jan 2009 02:45:46 +0000 Subject: 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 --- www/swfdec-plugin/Makefile | 11 ++++++++--- www/swfdec-plugin/pkg-plist | 8 ++++---- 2 files changed, 12 insertions(+), 7 deletions(-) (limited to 'www/swfdec-plugin') diff --git a/www/swfdec-plugin/Makefile b/www/swfdec-plugin/Makefile index 7779a76ab70a..af9a85317e91 100644 --- a/www/swfdec-plugin/Makefile +++ b/www/swfdec-plugin/Makefile @@ -7,7 +7,7 @@ PORTNAME= swfdec-plugin PORTVERSION= 0.6.0 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= www MASTER_SITES= http://swfdec.freedesktop.org/download/swfdec-mozilla/0.6/ DISTNAME= swfdec-mozilla-${PORTVERSION} @@ -18,8 +18,13 @@ COMMENT= Flash rendering plugin LIB_DEPENDS= swfdec-0.6:${PORTSDIR}/graphics/swfdec USE_AUTOTOOLS= libtool:15 -CONFIGURE_ARGS= --with-plugin-dir="${PREFIX}/lib/browser_plugins" +CONFIGURE_ARGS= --with-plugin-dir="${WEBPLUGINS_DIR}" USE_LDCONFIG= yes -.include +USE_WEBPLUGINS= gecko* +WEBPLUGINS_FILES=libswfdecmozilla.so + +.include +.include "${PORTSDIR}/www/firefox/Makefile.webplugins" +.include diff --git a/www/swfdec-plugin/pkg-plist b/www/swfdec-plugin/pkg-plist index 30f2c911497f..ffed0eed5a40 100644 --- a/www/swfdec-plugin/pkg-plist +++ b/www/swfdec-plugin/pkg-plist @@ -1,4 +1,4 @@ -lib/browser_plugins/libswfdecmozilla.a -lib/browser_plugins/libswfdecmozilla.la -lib/browser_plugins/libswfdecmozilla.so -@dirrmtry lib/browser_plugins +%%WEBPLUGINS_DIR%%/libswfdecmozilla.a +%%WEBPLUGINS_DIR%%/libswfdecmozilla.la +%%WEBPLUGINS_DIR%%/libswfdecmozilla.so +@dirrmtry %%WEBPLUGINS_DIR%% -- cgit v1.2.3