summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph Jezak <josejx@gentoo.org>2007-05-16 22:26:44 +0000
committerJoseph Jezak <josejx@gentoo.org>2007-05-16 22:26:44 +0000
commit3ed56ea70ce3e43d9f3143b17c74e2fb819c5674 (patch)
tree3c634fcfb99a0f8feaa9bf49a0a5e81b8d14a934 /net-www/mplayerplug-in
parentversion bump from upstream (diff)
downloadgentoo-2-3ed56ea70ce3e43d9f3143b17c74e2fb819c5674.tar.gz
gentoo-2-3ed56ea70ce3e43d9f3143b17c74e2fb819c5674.tar.bz2
gentoo-2-3ed56ea70ce3e43d9f3143b17c74e2fb819c5674.zip
Added latest version.
(Portage version: 2.1.2.7)
Diffstat (limited to 'net-www/mplayerplug-in')
-rw-r--r--net-www/mplayerplug-in/ChangeLog9
-rw-r--r--net-www/mplayerplug-in/files/digest-mplayerplug-in-3.403
-rw-r--r--net-www/mplayerplug-in/files/mplayerplug-in-3.40-cflags.patch11
-rw-r--r--net-www/mplayerplug-in/files/mplayerplug-in-mplayer-bin.patch11
-rw-r--r--net-www/mplayerplug-in/mplayerplug-in-3.40.ebuild96
5 files changed, 129 insertions, 1 deletions
diff --git a/net-www/mplayerplug-in/ChangeLog b/net-www/mplayerplug-in/ChangeLog
index 8092808a762c..8945202fd478 100644
--- a/net-www/mplayerplug-in/ChangeLog
+++ b/net-www/mplayerplug-in/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for net-www/mplayerplug-in
# Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-www/mplayerplug-in/ChangeLog,v 1.87 2007/05/12 14:01:07 beandog Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-www/mplayerplug-in/ChangeLog,v 1.88 2007/05/16 22:26:44 josejx Exp $
+
+*mplayerplug-in-3.40 (16 May 2007)
+
+ 16 May 2007; Joseph Jezak <josejx@gentoo.org>
+ +files/mplayerplug-in-3.40-cflags.patch,
+ +files/mplayerplug-in-mplayer-bin.patch, +mplayerplug-in-3.40.ebuild:
+ Added latest version.
12 May 2007; Steve Dibb <beandog@gentoo.org> mplayerplug-in-3.35.ebuild:
amd64 stable, bug 150110
diff --git a/net-www/mplayerplug-in/files/digest-mplayerplug-in-3.40 b/net-www/mplayerplug-in/files/digest-mplayerplug-in-3.40
new file mode 100644
index 000000000000..aaecab60682f
--- /dev/null
+++ b/net-www/mplayerplug-in/files/digest-mplayerplug-in-3.40
@@ -0,0 +1,3 @@
+MD5 eaeb723a346570a0e3859c7b056a513f mplayerplug-in-3.40.tar.gz 224081
+RMD160 11f364187cf38184d8f32d2e574777626741aa97 mplayerplug-in-3.40.tar.gz 224081
+SHA256 95b8c8c53029213e52fd0fc3a3332cd5d74de293b02c6303544cb9fbb106c076 mplayerplug-in-3.40.tar.gz 224081
diff --git a/net-www/mplayerplug-in/files/mplayerplug-in-3.40-cflags.patch b/net-www/mplayerplug-in/files/mplayerplug-in-3.40-cflags.patch
new file mode 100644
index 000000000000..2b3f272a6e67
--- /dev/null
+++ b/net-www/mplayerplug-in/files/mplayerplug-in-3.40-cflags.patch
@@ -0,0 +1,11 @@
+--- Makefile.in.bak 2007-04-06 00:35:25.000000000 -0400
++++ Makefile.in 2007-04-06 00:35:39.000000000 -0400
+@@ -12,7 +12,7 @@
+
+ CC= @CC@
+ CXX= @CXX@
+-CFLAGS= -Wall -DXP_UNIX -DMOZ_X11 @MOZPLUG_CFLAGS@ @CFLAGS@ @CPPFLAGS@ @CXXFLAGS@ @CXXFLAGS64@ -Iinclude -fPIC @GECKO_DEFINES@ @GTK_CFLAGS@ @GTHREAD_CFLAGS@ @GTK_DEFINES@
++CFLAGS= -Wall -DXP_UNIX -DMOZ_X11 @MOZPLUG_CFLAGS@ @CPPFLAGS@ @CXXFLAGS@ @CXXFLAGS64@ -Iinclude -fPIC @GECKO_DEFINES@ @GTK_CFLAGS@ @GTHREAD_CFLAGS@ @GTK_DEFINES@
+ LDFLAGS= @LDFLAGS@ @LDFLAGS64@ @LIBS@ @XEXT_LIBS@ @XPM_LIBS@ @GTK_LIBS@ @GTHREAD_LIBS@
+ LIBOBJS= @LIBOBJS@
+ OBJ= plugin.o nsScriptablePeer.o npp_gate.o np_entry.o npn_gate.o \
diff --git a/net-www/mplayerplug-in/files/mplayerplug-in-mplayer-bin.patch b/net-www/mplayerplug-in/files/mplayerplug-in-mplayer-bin.patch
new file mode 100644
index 000000000000..2bef76817e7a
--- /dev/null
+++ b/net-www/mplayerplug-in/files/mplayerplug-in-mplayer-bin.patch
@@ -0,0 +1,11 @@
+--- Source/plugin-threads.cpp.bak 2007-04-27 09:45:14.000000000 -0400
++++ Source/plugin-threads.cpp 2007-04-27 09:46:10.000000000 -0400
+@@ -364,7 +364,7 @@
+ }
+
+ i = 0;
+- snprintf(buffer, 1024, "mplayer");
++ snprintf(buffer, 1024, "mplayer-bin");
+ instance->td->argv[i++] = strdup(buffer);
+ if (instance->novop == 1) {
+ snprintf(buffer, 1024, "-vop");
diff --git a/net-www/mplayerplug-in/mplayerplug-in-3.40.ebuild b/net-www/mplayerplug-in/mplayerplug-in-3.40.ebuild
new file mode 100644
index 000000000000..67338def11b1
--- /dev/null
+++ b/net-www/mplayerplug-in/mplayerplug-in-3.40.ebuild
@@ -0,0 +1,96 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-www/mplayerplug-in/mplayerplug-in-3.40.ebuild,v 1.1 2007/05/16 22:26:44 josejx Exp $
+
+inherit eutils multilib
+
+DESCRIPTION="mplayer plug-in for Gecko based browsers"
+HOMEPAGE="http://mplayerplug-in.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 -hppa ~ia64 ~ppc ~sparc ~x86"
+IUSE="gtk divx gmedia mplayer-bin realmedia quicktime wmp"
+
+DEPEND="
+ || ( www-client/mozilla-firefox
+ www-client/seamonkey
+ )
+ || ( ( x11-libs/libXpm
+ x11-proto/xextproto
+ )
+ virtual/x11
+ )
+ gtk? (
+ >=x11-libs/gtk+-2.2.0
+ dev-libs/atk
+ >=dev-libs/glib-2.2.0
+ >=x11-libs/pango-1.2.1
+ )
+ mplayer-bin? ( media-video/mplayer-bin )
+ !mplayer-bin? ( >=media-video/mplayer-1.0_pre5 )
+ dev-util/pkgconfig"
+
+S=${WORKDIR}/${PN}
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+ epatch ${FILESDIR}/${PN}-3.40-cflags.patch
+ epatch ${FILESDIR}/${PN}-gcc4.patch
+ ### Adds support for 32 bit binary mplayer on amd64
+ if use mplayer-bin; then
+ epatch ${FILESDIR}/${PN}-mplayer-bin.patch
+ fi
+}
+
+src_compile() {
+ local myconf
+
+ # We force gtk2 now because moz only compiles against gtk2
+ if use gtk; then
+ myconf="${myconf} --enable-gtk2"
+ else
+ ewarn "For playback controls, you must enable gtk support."
+ myconf="${myconf} --enable-x"
+ fi
+
+ # Media Playback Support (bug #145517)
+ econf \
+ ${myconf} \
+ $(use_enable divx dvx) \
+ $(use_enable gmedia gmp) \
+ $(use_enable realmedia rm) \
+ $(use_enable quicktime qt) \
+ $(use_enable wmp) \
+ || die "econf failed"
+
+ emake || die "emake failed"
+}
+
+src_install() {
+ exeinto /usr/${get_libdir}/nsbrowser/plugins
+ doexe mplayerplug-in.so || die "plugin failed"
+
+ insinto /usr/${get_libdir}/nsbrowser/plugins
+ doins mplayerplug-in.xpt || die "xpt failed"
+
+ PLUGINS="gmp rm qt wmp dvx"
+
+ for plugin in ${PLUGINS}; do
+ if [ -e "mplayerplug-in-${plugin}.so" ]; then
+ ### Install the plugin
+ exeinto /usr/${get_libdir}/nsbrowser/plugins
+ doexe "mplayerplug-in-${plugin}.so" || die "plugin ${plugin} failed"
+ ### Install the xpt
+ insinto /usr/${get_libdir}/nsbrowser/plugins
+ doins "mplayerplug-in-${plugin}.xpt" || die "plugin ${plugin} xpt failed"
+ fi
+ done
+
+ insinto /etc
+ doins mplayerplug-in.conf
+
+ dodoc ChangeLog INSTALL README DOCS/tech/*.txt
+}