diff options
author | xtraeme <xtraeme@pkgsrc.org> | 2004-11-17 02:31:34 +0000 |
---|---|---|
committer | xtraeme <xtraeme@pkgsrc.org> | 2004-11-17 02:31:34 +0000 |
commit | 1faaf85255bddd738a8bc09ed78fa1a6e6ecb012 (patch) | |
tree | fcf9410602f6b95879f62f84b8aa0023566020a8 /multimedia | |
parent | 172b8d01e31bb109f7d188d50fc30a9cc5653655 (diff) | |
download | pkgsrc-1faaf85255bddd738a8bc09ed78fa1a6e6ecb012.tar.gz |
Initial import of mplayer-plugin-firefox-2.70.
Plugin for Gecko based browsers that uses mplayer to play videos from
websites.
Diffstat (limited to 'multimedia')
-rw-r--r-- | multimedia/mplayer-plugin-firefox/DESCR | 2 | ||||
-rw-r--r-- | multimedia/mplayer-plugin-firefox/Makefile | 12 | ||||
-rw-r--r-- | multimedia/mplayer-plugin-firefox/Makefile.common | 71 | ||||
-rw-r--r-- | multimedia/mplayer-plugin-firefox/PLIST | 6 | ||||
-rw-r--r-- | multimedia/mplayer-plugin-firefox/distinfo | 9 | ||||
-rw-r--r-- | multimedia/mplayer-plugin-firefox/files/mozilla-nspr.pc.in | 12 | ||||
-rw-r--r-- | multimedia/mplayer-plugin-firefox/files/mozilla-plugin.pc.in | 10 | ||||
-rw-r--r-- | multimedia/mplayer-plugin-firefox/files/mozilla-xpcom.pc.in | 11 | ||||
-rw-r--r-- | multimedia/mplayer-plugin-firefox/patches/patch-aa | 12 | ||||
-rw-r--r-- | multimedia/mplayer-plugin-firefox/patches/patch-ab | 9 | ||||
-rw-r--r-- | multimedia/mplayer-plugin-firefox/patches/patch-ac | 9 | ||||
-rw-r--r-- | multimedia/mplayer-plugin-firefox/patches/patch-ad | 9 | ||||
-rw-r--r-- | multimedia/mplayer-plugin-firefox/patches/patch-ae | 27 |
13 files changed, 199 insertions, 0 deletions
diff --git a/multimedia/mplayer-plugin-firefox/DESCR b/multimedia/mplayer-plugin-firefox/DESCR new file mode 100644 index 00000000000..de1b542053c --- /dev/null +++ b/multimedia/mplayer-plugin-firefox/DESCR @@ -0,0 +1,2 @@ +Plugin for Gecko based browsers that uses mplayer to play videos from +websites. diff --git a/multimedia/mplayer-plugin-firefox/Makefile b/multimedia/mplayer-plugin-firefox/Makefile new file mode 100644 index 00000000000..9a7fa66a4e4 --- /dev/null +++ b/multimedia/mplayer-plugin-firefox/Makefile @@ -0,0 +1,12 @@ +# $NetBSD: Makefile,v 1.1.1.1 2004/11/17 02:31:34 xtraeme Exp $ +# + +BROWSER= firefox + +CONFIGURE_ARGS+= --disable-gtk2 +CONFIGURE_ARGS+= --enable-gtk1 + +.include "Makefile.common" +.include "../../www/firefox/buildlink3.mk" +.include "../../x11/gtk/buildlink3.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/multimedia/mplayer-plugin-firefox/Makefile.common b/multimedia/mplayer-plugin-firefox/Makefile.common new file mode 100644 index 00000000000..7cbbced62d2 --- /dev/null +++ b/multimedia/mplayer-plugin-firefox/Makefile.common @@ -0,0 +1,71 @@ +# $NetBSD: Makefile.common,v 1.1.1.1 2004/11/17 02:31:34 xtraeme Exp $ +# + +DISTNAME= mplayerplug-in-2.70 +PKGNAME= mplayer-plugin-${BROWSER}-2.70 +CATEGORIES= multimedia +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=mplayerplug-in/} + +MAINTAINER= xtraeme@NetBSD.org +HOMEPAGE= http://mplayerplug-in.sourceforge.net/ +COMMENT= Mplayer plug-in for ${BROWSER} + +DEPENDS+= mplayer>=0.92:../../multimedia/mplayer + +WRKSRC= ${WRKDIR}/mplayerplug-in +GNU_CONFIGURE= yes +USE_BUILDLINK3= yes +USE_GNU_TOOLS+= make +USE_LANGUAGES+= c++ +USE_PKGINSTALL= yes +USE_X11= yes + +FILESDIR= ${.CURDIR}/../../multimedia/mplayer-plugin-firefox/files +PATCHDIR= ${.CURDIR}/../../multimedia/mplayer-plugin-firefox/patches +DISTINFO_FILE= ${.CURDIR}/../../multimedia/mplayer-plugin-firefox/distinfo +PLIST_SRC= ${.CURDIR}/../../multimedia/mplayer-plugin-firefox/PLIST +DESCR_SRC= ${.CURDIR}/../../multimedia/mplayer-plugin-firefox/DESCR + +PLIST_SUBST+= BROWSER=${BROWSER} + +post-extract: +.for f in nspr xpcom plugin + @${SED} \ + -e "s|@PREFIX@|${PREFIX}|g" \ + -e "s|@LIBDIR@|${PREFIX}/lib/${BROWSER}|g" \ + -e "s|@INCDIR@|${PREFIX}/include/${BROWSER}|g" \ + -e "s|@X11BASELIB@|${X11BASE}/lib|g" \ + ${FILESDIR}/mozilla-${f}.pc.in > ${WRKSRC}/mozilla-${f}.pc +.endfor + +post-buildlink: + @${MKDIR} ${BUILDLINK_DIR}/lib/pkgconfig + @${CP} ${WRKSRC}/*.pc ${BUILDLINK_DIR}/lib/pkgconfig + +SUBST_CLASSES+= conf +SUBST_STAGE.conf= post-patch +SUBST_FILES.conf= Source/plugin-setup.cpp +SUBST_SED.conf= -e "s|/etc/|${PKG_SYSCONFDIR}/|g" +SUBST_MESSAGE.conf= "Fixing harcoded paths." + +EGDIR= ${PREFIX}/share/examples/mplayer-plugin-${BROWSER} +CONF_FILES= # empty +.for f in conf types +CONF_FILES+= ${EGDIR}/mplayerplug-in.${f} \ + ${PKG_SYSCONFDIR}/mplayerplug-in.${f} +.endfor + +do-install: + ${INSTALL_DATA_DIR} ${EGDIR} + ${INSTALL_DATA} ${WRKSRC}/mplayerplug-in.conf ${EGDIR} + ${INSTALL_DATA} ${WRKSRC}/mplayerplug-in.types ${EGDIR} +.if !exists(${PREFIX}/lib/${BROWSER}/plugins) + ${INSTALL_DATA_DIR} ${PREFIX}/lib/${BROWSER}/plugins +.endif + ${INSTALL_LIB} ${WRKSRC}/mplayerplug-in.so \ + ${PREFIX}/lib/${BROWSER}/plugins + ${INSTALL_DATA} ${WRKSRC}/mplayerplug-in.xpt \ + ${PREFIX}/lib/${BROWSER}/plugins + +.include "../../devel/pkgconfig/buildlink3.mk" +.include "../../mk/pthread.buildlink3.mk" diff --git a/multimedia/mplayer-plugin-firefox/PLIST b/multimedia/mplayer-plugin-firefox/PLIST new file mode 100644 index 00000000000..ba5ab9236de --- /dev/null +++ b/multimedia/mplayer-plugin-firefox/PLIST @@ -0,0 +1,6 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2004/11/17 02:31:34 xtraeme Exp $ +share/examples/mplayer-plugin-${BROWSER}/mplayerplug-in.conf +share/examples/mplayer-plugin-${BROWSER}/mplayerplug-in.types +lib/${BROWSER}/plugins/mplayerplug-in.so +lib/${BROWSER}/plugins/mplayerplug-in.xpt +@dirrm share/examples/mplayer-plugin-${BROWSER} diff --git a/multimedia/mplayer-plugin-firefox/distinfo b/multimedia/mplayer-plugin-firefox/distinfo new file mode 100644 index 00000000000..de4c5656327 --- /dev/null +++ b/multimedia/mplayer-plugin-firefox/distinfo @@ -0,0 +1,9 @@ +$NetBSD: distinfo,v 1.1.1.1 2004/11/17 02:31:34 xtraeme Exp $ + +SHA1 (mplayerplug-in-2.70.tar.gz) = cc5d34060f64cea07f5696c5ad273f24b7fd4259 +Size (mplayerplug-in-2.70.tar.gz) = 167973 bytes +SHA1 (patch-aa) = 2a6724f536ad8a08c7766dfb269458df12bb3603 +SHA1 (patch-ab) = 950bec845ef3120e8b63a2343e79d5ded99a8bfa +SHA1 (patch-ac) = caf4406c81b624dd9e05f0547d8a2ac700341454 +SHA1 (patch-ad) = 06699a71bb0f8da969d11a812a544e3aefa4d9a7 +SHA1 (patch-ae) = c5a073ba5895a3474b6aaaae2cc7f82e0e040ef3 diff --git a/multimedia/mplayer-plugin-firefox/files/mozilla-nspr.pc.in b/multimedia/mplayer-plugin-firefox/files/mozilla-nspr.pc.in new file mode 100644 index 00000000000..b2cab18f022 --- /dev/null +++ b/multimedia/mplayer-plugin-firefox/files/mozilla-nspr.pc.in @@ -0,0 +1,12 @@ +prefix=@PREFIX@ +exec_prefix=@PREFIX@ +libdir=@LIBDIR@ +includedir=@INCDIR@ + +Name: NSPR +Description: The Netscape Portable Runtime +Version: 0.1 +Libs: -L${libdir} -Wl,-R${libdir} -L@X11BASELIB@ -Wl,-R@X11BASELIB@ \ + -lplds4 -lplc4 -lnspr4 +Cflags: -I${includedir}/nspr + diff --git a/multimedia/mplayer-plugin-firefox/files/mozilla-plugin.pc.in b/multimedia/mplayer-plugin-firefox/files/mozilla-plugin.pc.in new file mode 100644 index 00000000000..5e8f9a3a677 --- /dev/null +++ b/multimedia/mplayer-plugin-firefox/files/mozilla-plugin.pc.in @@ -0,0 +1,10 @@ +prefix=@PREFIX@ +exec_prefix=@PREFIX@ +libdir=@LIBDIR@ +includedir=@INCDIR@ + +Name: Mozilla Plug-In API +Description: Mozilla Plug-In API +Version: 0.1 +Requires: mozilla-xpcom = 0.1 +Cflags: -I${includedir}/java -I${includedir}/plugin diff --git a/multimedia/mplayer-plugin-firefox/files/mozilla-xpcom.pc.in b/multimedia/mplayer-plugin-firefox/files/mozilla-xpcom.pc.in new file mode 100644 index 00000000000..ae51f9e6c23 --- /dev/null +++ b/multimedia/mplayer-plugin-firefox/files/mozilla-xpcom.pc.in @@ -0,0 +1,11 @@ +prefix=@PREFIX@ +exec_prefix=@PREFIX@ +libdir=@LIBDIR@ +includedir=@INCDIR@ + +Name: XPCOM +Description: The Mozilla Cross Platform Component Library +Version: 0.1 +Requires: mozilla-nspr = 0.1 +Libs: -L${libdir} -lxpcom +Cflags: -I${includedir}/xpcom -I${includedir}/string diff --git a/multimedia/mplayer-plugin-firefox/patches/patch-aa b/multimedia/mplayer-plugin-firefox/patches/patch-aa new file mode 100644 index 00000000000..f2e82c1da3d --- /dev/null +++ b/multimedia/mplayer-plugin-firefox/patches/patch-aa @@ -0,0 +1,12 @@ +$NetBSD: patch-aa,v 1.1.1.1 2004/11/17 02:31:34 xtraeme Exp $ + +--- Source/plugin.cpp.orig 2004-11-17 02:27:11.000000000 +0100 ++++ Source/plugin.cpp 2004-11-17 02:27:25.000000000 +0100 +@@ -34,6 +34,7 @@ + * + * ***** END LICENSE BLOCK ***** */ + ++#include <string.h> + #include "plugin.h" + #include "nsIServiceManager.h" + #include "nsIMemory.h" diff --git a/multimedia/mplayer-plugin-firefox/patches/patch-ab b/multimedia/mplayer-plugin-firefox/patches/patch-ab new file mode 100644 index 00000000000..435c420b7e8 --- /dev/null +++ b/multimedia/mplayer-plugin-firefox/patches/patch-ab @@ -0,0 +1,9 @@ +$NetBSD: patch-ab,v 1.1.1.1 2004/11/17 02:31:34 xtraeme Exp $ + +--- Source/plugin-support.cpp.orig 2004-11-17 02:28:45.000000000 +0100 ++++ Source/plugin-support.cpp 2004-11-17 02:29:03.000000000 +0100 +@@ -1,3 +1,4 @@ ++#include <string.h> + #include "plugin.h" + #include <strings.h> + #include <errno.h> diff --git a/multimedia/mplayer-plugin-firefox/patches/patch-ac b/multimedia/mplayer-plugin-firefox/patches/patch-ac new file mode 100644 index 00000000000..0e85b53e727 --- /dev/null +++ b/multimedia/mplayer-plugin-firefox/patches/patch-ac @@ -0,0 +1,9 @@ +$NetBSD: patch-ac,v 1.1.1.1 2004/11/17 02:31:34 xtraeme Exp $ + +--- Source/plugin-setup.cpp.orig 2004-11-17 02:30:00.000000000 +0100 ++++ Source/plugin-setup.cpp 2004-11-17 02:30:12.000000000 +0100 +@@ -1,3 +1,4 @@ ++#include <string.h> + #include "plugin.h" + + #ifndef STATICDECLS diff --git a/multimedia/mplayer-plugin-firefox/patches/patch-ad b/multimedia/mplayer-plugin-firefox/patches/patch-ad new file mode 100644 index 00000000000..639d2e11ff6 --- /dev/null +++ b/multimedia/mplayer-plugin-firefox/patches/patch-ad @@ -0,0 +1,9 @@ +$NetBSD: patch-ad,v 1.1.1.1 2004/11/17 02:31:34 xtraeme Exp $ + +--- Source/plugin-list.cpp.orig 2004-11-17 02:32:12.000000000 +0100 ++++ Source/plugin-list.cpp 2004-11-17 02:32:32.000000000 +0100 +@@ -1,3 +1,4 @@ ++#include <string.h> + #include "plugin.h" + #include <errno.h> + #ifndef _GNU_SOURCE diff --git a/multimedia/mplayer-plugin-firefox/patches/patch-ae b/multimedia/mplayer-plugin-firefox/patches/patch-ae new file mode 100644 index 00000000000..3a9676f1ac2 --- /dev/null +++ b/multimedia/mplayer-plugin-firefox/patches/patch-ae @@ -0,0 +1,27 @@ +$NetBSD: patch-ae,v 1.1.1.1 2004/11/17 02:31:35 xtraeme Exp $ + +--- Source/plugin-threads.cpp.orig 2004-11-17 02:33:15.000000000 +0100 ++++ Source/plugin-threads.cpp 2004-11-17 02:34:59.000000000 +0100 +@@ -1,3 +1,4 @@ ++#include <string.h> + #include "plugin.h" + #include <sys/types.h> + #include <sys/stat.h> +@@ -6,6 +7,7 @@ + #include <fcntl.h> + #include <signal.h> + #include <sys/wait.h> ++#include <sys/param.h> + + extern int DEBUG; + +@@ -202,7 +204,9 @@ + // make the operations on the control pipe non-blocking + flags = fcntl(*control, F_GETFL, 0); + flags |= O_NONBLOCK; ++#ifndef BSD + flags |= O_NDELAY; ++#endif + fcntl(*control, F_SETFL, flags); + + return fdopen(filedesr[0], "r"); |