diff options
author | mezz <mezz@df743ca5-7f9a-e211-a948-0013205c9059> | 2008-03-16 14:11:14 +0800 |
---|---|---|
committer | mezz <mezz@df743ca5-7f9a-e211-a948-0013205c9059> | 2008-03-16 14:11:14 +0800 |
commit | 0daba49ae3685df0a31257007c79442323b565e4 (patch) | |
tree | 02f43ceeeaab067c2dfd1cb04e5b29a5f29b89ea | |
parent | b31a2d1d338fbdf42a68bdfa1c2a6e95f2b415bf (diff) | |
download | marcuscom-ports-0daba49ae3685df0a31257007c79442323b565e4.tar marcuscom-ports-0daba49ae3685df0a31257007c79442323b565e4.tar.gz marcuscom-ports-0daba49ae3685df0a31257007c79442323b565e4.tar.bz2 marcuscom-ports-0daba49ae3685df0a31257007c79442323b565e4.tar.lz marcuscom-ports-0daba49ae3685df0a31257007c79442323b565e4.tar.xz marcuscom-ports-0daba49ae3685df0a31257007c79442323b565e4.tar.zst marcuscom-ports-0daba49ae3685df0a31257007c79442323b565e4.zip |
Enable plugins install in gecko browser. Add a new knob, WITHOUT_GECKO_PLUGINS
to disable it. It also included in OPTIONS. It works great and runs smooth.
Bump the PORTREVISION.
Here are screenshots: ;-)
http://people.freebsd.org/~mezz/totem-plugin-viewer.png
http://people.freebsd.org/~mezz/epiphany.png
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@10758 df743ca5-7f9a-e211-a948-0013205c9059
-rw-r--r-- | multimedia/totem/Makefile | 14 | ||||
-rw-r--r-- | multimedia/totem/files/patch-browser-plugin_idl_Makefile.in | 11 | ||||
-rw-r--r-- | multimedia/totem/files/patch-browser-plugin_totemPlugin.cpp | 10 | ||||
-rw-r--r-- | multimedia/totem/files/patch-browser-plugin_totemPluginGlue.cpp | 20 | ||||
-rw-r--r-- | multimedia/totem/pkg-plist | 29 |
5 files changed, 66 insertions, 18 deletions
diff --git a/multimedia/totem/Makefile b/multimedia/totem/Makefile index 6c28e70d9..4be1301d6 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.100 2008/03/04 13:25:06 ahze Exp $ +# $MCom: ports/multimedia/totem/Makefile,v 1.101 2008/03/10 15:02:25 ahze Exp $ # PORTNAME= totem PORTVERSION= 2.22.0 -PORTREVISION?= 0 +PORTREVISION?= 1 CATEGORIES= multimedia gnome MASTER_SITES= GNOME DIST_SUBDIR= gnome2 @@ -45,7 +45,8 @@ GCONF_SCHEMAS= totem-handlers.schemas totem-video-thumbnail.schemas \ CONFLICTS?= totem-gstreamer-[0-9]* totem-xine-[0-9]* OPTIONS= LIRC "Enable lirc support" off \ - GALAGO "Enable Galago support" off + GALAGO "Enable Galago support" off \ + GECKO_PLUGINS "Enable install plugins for gecko browser" on TOTEM_PLUGINS= screensaver ontop gromit media-player-keys properties sidebar-test skipto @@ -67,15 +68,15 @@ TOTEM_PLUGINS:= ${TOTEM_PLUGINS} galago PLIST_SUB+= GALAGO="@comment " .endif -.if defined(WITH_MOZILLA_PLUGIN) && ${SLAVE_PORT:L}=="yes" +.if !defined(WITHOUT_GECKO_PLUGINS) USE_GECKO= firefox mozilla seamonkey xulrunner<->firefox firefox-devel<->firefox .include "${PORTSDIR}/www/mozilla/bsd.gecko.mk" CONFIGURE_ARGS+=--with-mozilla=${GECKO} \ + --enable-browser-plugins \ --enable-gmp-plugin \ --enable-complex-plugin \ --enable-narrowspace-plugin -BUILD_WRKSRC= ${WRKSRC}/browser-plugin -INSTALL_WRKSRC= ${WRKSRC}/browser-plugin +PLIST_SUB+= GECKO_PLUGINS="" .else CONFIGURE_ARGS+=--without-mozilla \ --disable-browser-plugins \ @@ -84,6 +85,7 @@ CONFIGURE_ARGS+=--without-mozilla \ --disable-gmp-plugin \ --disable-complex-plugin \ --disable-narrowspace-plugin +PLIST_SUB+= GECKO_PLUGINS="@comment " .endif .if !defined(WITH_TOTEM_XINE) || ${SLAVE_PORT}=="no" diff --git a/multimedia/totem/files/patch-browser-plugin_idl_Makefile.in b/multimedia/totem/files/patch-browser-plugin_idl_Makefile.in new file mode 100644 index 000000000..238b32c32 --- /dev/null +++ b/multimedia/totem/files/patch-browser-plugin_idl_Makefile.in @@ -0,0 +1,11 @@ +--- browser-plugin/idl/Makefile.in.orig 2008-03-15 20:31:26.000000000 -0500 ++++ browser-plugin/idl/Makefile.in 2008-03-15 20:31:34.000000000 -0500 +@@ -532,7 +532,7 @@ + + info-am: + +-install-data-am: install-docDATA install-xptDATA ++install-data-am: install-xptDATA + + install-dvi: install-dvi-am + diff --git a/multimedia/totem/files/patch-browser-plugin_totemPlugin.cpp b/multimedia/totem/files/patch-browser-plugin_totemPlugin.cpp deleted file mode 100644 index 9a16349f4..000000000 --- a/multimedia/totem/files/patch-browser-plugin_totemPlugin.cpp +++ /dev/null @@ -1,10 +0,0 @@ ---- browser-plugin/totemPlugin.cpp.orig Mon Aug 14 17:01:14 2006 -+++ browser-plugin/totemPlugin.cpp Mon Aug 14 17:01:24 2006 -@@ -27,6 +27,7 @@ - #include <stdint.h> - #include <unistd.h> - #include <fcntl.h> -+#include <signal.h> - #include <sys/wait.h> - #include <sys/poll.h> - #include <string.h> diff --git a/multimedia/totem/files/patch-browser-plugin_totemPluginGlue.cpp b/multimedia/totem/files/patch-browser-plugin_totemPluginGlue.cpp new file mode 100644 index 000000000..6e697364d --- /dev/null +++ b/multimedia/totem/files/patch-browser-plugin_totemPluginGlue.cpp @@ -0,0 +1,20 @@ +--- browser-plugin/totemPluginGlue.cpp.orig 2008-03-15 18:00:23.000000000 -0500 ++++ browser-plugin/totemPluginGlue.cpp 2008-03-15 18:01:54.000000000 -0500 +@@ -356,7 +356,7 @@ + user_ini_file = g_build_filename (g_get_user_config_dir (), + "totem", + "browser-plugins.ini", +- NULL); ++ (char *)NULL); + if (g_key_file_load_from_file (user, + user_ini_file, + G_KEY_FILE_NONE, +@@ -439,7 +439,7 @@ + /* we want to open libdbus-glib-1.so.2 in such a way + * in such a way that it becomes permanentely resident */ + void *handle; +- handle = dlopen ("libdbus-glib-1.so.2", RTLD_NOW | RTLD_NODELETE); ++ handle = dlopen ("libdbus-glib-1.so.2", RTLD_NOW); + if (!handle) { + fprintf (stderr, "%s\n", dlerror()); + return NPERR_MODULE_LOAD_FAILED_ERROR; diff --git a/multimedia/totem/pkg-plist b/multimedia/totem/pkg-plist index c20eea8b5..1d3ca28dc 100644 --- a/multimedia/totem/pkg-plist +++ b/multimedia/totem/pkg-plist @@ -2,6 +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 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 @@ -41,6 +65,7 @@ lib/totem/plugins/skipto/skipto.ui lib/totem/plugins/totem/__init__.py lib/totem/plugins/totem/__init__.pyc lib/totem/plugins/totem/__init__.pyo +%%GECKO_PLUGINS%%libexec/totem-plugin-viewer libexec/totem/totem-bugreport.py share/applications/totem.desktop share/gnome/help/totem/C/figures/totem_next_button.png @@ -207,8 +232,8 @@ share/locale/is/LC_MESSAGES/totem.mo share/locale/it/LC_MESSAGES/totem.mo share/locale/ja/LC_MESSAGES/totem.mo share/locale/ka/LC_MESSAGES/totem.mo -share/locale/ko/LC_MESSAGES/totem.mo share/locale/kn/LC_MESSAGES/totem.mo +share/locale/ko/LC_MESSAGES/totem.mo share/locale/ku/LC_MESSAGES/totem.mo share/locale/lt/LC_MESSAGES/totem.mo share/locale/lv/LC_MESSAGES/totem.mo @@ -320,7 +345,7 @@ share/vala/vapi/totem.vapi %%GALAGO%%@dirrm lib/totem/plugins/galago @dirrm lib/totem/plugins @dirrm lib/totem -@dirrmtry lib/browser_plugins +%%GECKO_PLUGINS%%@dirrmtry lib/browser_plugins @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 |