pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/multimedia/mplayer-plugin Re-import mplayer-plugin-fir...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/a126fce9c25d
branches:  trunk
changeset: 399192:a126fce9c25d
user:      tnn <tnn%pkgsrc.org@localhost>
date:      Mon Sep 14 08:56:08 2009 +0000

description:
Re-import mplayer-plugin-firefox as mplayer-plugin.
Link with xulrunner. Should be usable for other browsers such as
www/epiphany, but didn't test.

diffstat:

 multimedia/mplayer-plugin/DESCR            |     2 +
 multimedia/mplayer-plugin/Makefile         |    55 +
 multimedia/mplayer-plugin/PLIST            |    15 +
 multimedia/mplayer-plugin/distinfo         |    11 +
 multimedia/mplayer-plugin/patches/patch-aa |    12 +
 multimedia/mplayer-plugin/patches/patch-ab |     9 +
 multimedia/mplayer-plugin/patches/patch-ad |     9 +
 multimedia/mplayer-plugin/patches/patch-ae |    13 +
 multimedia/mplayer-plugin/patches/patch-af |    22 +
 multimedia/mplayer-plugin/patches/patch-ag |  1297 ++++++++++++++++++++++++++++
 10 files changed, 1445 insertions(+), 0 deletions(-)

diffs (truncated from 1485 to 300 lines):

diff -r 14c426cb3535 -r a126fce9c25d multimedia/mplayer-plugin/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/multimedia/mplayer-plugin/DESCR   Mon Sep 14 08:56:08 2009 +0000
@@ -0,0 +1,2 @@
+Plugin for Gecko based browsers that uses mplayer to play videos from
+websites.
diff -r 14c426cb3535 -r a126fce9c25d multimedia/mplayer-plugin/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/multimedia/mplayer-plugin/Makefile        Mon Sep 14 08:56:08 2009 +0000
@@ -0,0 +1,55 @@
+# $NetBSD: Makefile,v 1.1.1.1 2009/09/14 08:56:08 tnn Exp $
+#
+
+DISTNAME=              mplayerplug-in-3.55
+PKGNAME=               mplayer-plugin-3.55
+CATEGORIES=            multimedia
+MASTER_SITES=          ${MASTER_SITE_SOURCEFORGE:=mplayerplug-in/}
+
+MAINTAINER=            pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=              http://mplayerplug-in.sourceforge.net/
+COMMENT=               Mplayer plug-in for ${BROWSER}
+
+DEPENDS+=              mplayer>=0.92:../../multimedia/mplayer
+
+PKG_DESTDIR_SUPPORT=   user-destdir
+
+GNU_CONFIGURE=         yes
+USE_TOOLS+=            gmake pkg-config msgfmt
+USE_LANGUAGES=         c c++
+
+CONFIGURE_ARGS+=       --enable-wmp
+CONFIGURE_ARGS+=       --enable-qt
+CONFIGURE_ARGS+=       --enable-rm
+CONFIGURE_ARGS+=       --enable-gmp
+CONFIGURE_ARGS+=       --enable-dvx
+CONFIGURE_ARGS+=       --disable-gtk1
+CONFIGURE_ENV+=                ac_cv_path_GECKO_XPIDL=${PREFIX}/lib/xulrunner/xpidl
+
+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
+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} ${DESTDIR}${EGDIR}
+       ${INSTALL_DATA} ${WRKSRC}/mplayerplug-in.conf ${DESTDIR}${EGDIR}
+       ${INSTALL_DATA} ${WRKSRC}/mplayerplug-in.types ${DESTDIR}${EGDIR}
+       ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/lib/netscape/plugins
+       ${INSTALL_LIB} ${WRKSRC}/*.so   ${DESTDIR}${PREFIX}/lib/netscape/plugins
+       ${INSTALL_DATA} ${WRKSRC}/*.xpt ${DESTDIR}${PREFIX}/lib/netscape/plugins
+
+.include "../../devel/xulrunner/buildlink3.mk"
+.include "../../x11/gtk2/buildlink3.mk"
+.include "../../x11/libXpm/buildlink3.mk"
+.include "../../x11/libXt/buildlink3.mk"
+.include "../../mk/pthread.buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r 14c426cb3535 -r a126fce9c25d multimedia/mplayer-plugin/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/multimedia/mplayer-plugin/PLIST   Mon Sep 14 08:56:08 2009 +0000
@@ -0,0 +1,15 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2009/09/14 08:56:08 tnn Exp $
+lib/netscape/plugins/mplayerplug-in.so
+lib/netscape/plugins/mplayerplug-in.xpt
+lib/netscape/plugins/mplayerplug-in-dvx.so
+lib/netscape/plugins/mplayerplug-in-dvx.xpt
+lib/netscape/plugins/mplayerplug-in-gmp.so
+lib/netscape/plugins/mplayerplug-in-gmp.xpt
+lib/netscape/plugins/mplayerplug-in-qt.so
+lib/netscape/plugins/mplayerplug-in-qt.xpt
+lib/netscape/plugins/mplayerplug-in-rm.so
+lib/netscape/plugins/mplayerplug-in-rm.xpt
+lib/netscape/plugins/mplayerplug-in-wmp.so
+lib/netscape/plugins/mplayerplug-in-wmp.xpt
+share/examples/mplayer-plugin/mplayerplug-in.conf
+share/examples/mplayer-plugin/mplayerplug-in.types
diff -r 14c426cb3535 -r a126fce9c25d multimedia/mplayer-plugin/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/multimedia/mplayer-plugin/distinfo        Mon Sep 14 08:56:08 2009 +0000
@@ -0,0 +1,11 @@
+$NetBSD: distinfo,v 1.1.1.1 2009/09/14 08:56:08 tnn Exp $
+
+SHA1 (mplayerplug-in-3.55.tar.gz) = 69726d4e16523b1a39c284efee081c31b0ea7f7f
+RMD160 (mplayerplug-in-3.55.tar.gz) = e01224b14883a93211745be0a329a3f524f39d8c
+Size (mplayerplug-in-3.55.tar.gz) = 281845 bytes
+SHA1 (patch-aa) = 2a6724f536ad8a08c7766dfb269458df12bb3603
+SHA1 (patch-ab) = 950bec845ef3120e8b63a2343e79d5ded99a8bfa
+SHA1 (patch-ad) = 06699a71bb0f8da969d11a812a544e3aefa4d9a7
+SHA1 (patch-ae) = 885eafce6747ed1f682eb78a6e15a473806924e3
+SHA1 (patch-af) = 812a4921c4a467fbf6163292f04ef5888ef6e8ed
+SHA1 (patch-ag) = 0af0bcb4bc722e1be290e1b4ef13c45f36bb77d0
diff -r 14c426cb3535 -r a126fce9c25d multimedia/mplayer-plugin/patches/patch-aa
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/multimedia/mplayer-plugin/patches/patch-aa        Mon Sep 14 08:56:08 2009 +0000
@@ -0,0 +1,12 @@
+$NetBSD: patch-aa,v 1.1.1.1 2009/09/14 08:56:09 tnn 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 -r 14c426cb3535 -r a126fce9c25d multimedia/mplayer-plugin/patches/patch-ab
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/multimedia/mplayer-plugin/patches/patch-ab        Mon Sep 14 08:56:08 2009 +0000
@@ -0,0 +1,9 @@
+$NetBSD: patch-ab,v 1.1.1.1 2009/09/14 08:56:09 tnn 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 -r 14c426cb3535 -r a126fce9c25d multimedia/mplayer-plugin/patches/patch-ad
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/multimedia/mplayer-plugin/patches/patch-ad        Mon Sep 14 08:56:08 2009 +0000
@@ -0,0 +1,9 @@
+$NetBSD: patch-ad,v 1.1.1.1 2009/09/14 08:56:08 tnn 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 -r 14c426cb3535 -r a126fce9c25d multimedia/mplayer-plugin/patches/patch-ae
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/multimedia/mplayer-plugin/patches/patch-ae        Mon Sep 14 08:56:08 2009 +0000
@@ -0,0 +1,13 @@
+$NetBSD: patch-ae,v 1.1.1.1 2009/09/14 08:56:09 tnn Exp $
+
+--- Source/plugin-threads.cpp.orig     2007-09-22 08:07:14.000000000 +0200
++++ Source/plugin-threads.cpp  2007-09-22 08:08:18.000000000 +0200
+@@ -2302,7 +2302,7 @@
+       local_td->argv[argc++] = NULL;
+     }
+     pthread_mutex_unlock(&(local_td->instance->control_mutex));
+-    pthread_mutex_unlock(&(local_td->instance->playlist_cond_mutex));
++    // pthread_mutex_unlock(&(local_td->instance->playlist_cond_mutex));
+     // since thread is dead, reset thread state variables.
+     local_td->instance->threadsetup = 0;
+     local_td->instance->threadlaunched = 0;
diff -r 14c426cb3535 -r a126fce9c25d multimedia/mplayer-plugin/patches/patch-af
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/multimedia/mplayer-plugin/patches/patch-af        Mon Sep 14 08:56:08 2009 +0000
@@ -0,0 +1,22 @@
+$NetBSD: patch-af,v 1.1.1.1 2009/09/14 08:56:09 tnn Exp $
+
+--- Source/nsIScriptableMplayerPlugin.h.orig   2008-06-24 15:12:54.000000000 +0200
++++ Source/nsIScriptableMplayerPlugin.h
+@@ -25,7 +25,7 @@
+ class NS_NO_VTABLE nsIScriptableWMPPlugin : public nsISupports {
+  public: 
+ 
+-  NS_DEFINE_STATIC_IID_ACCESSOR(NS_ISCRIPTABLEWMPPLUGIN_IID)
++  NS_DECLARE_STATIC_IID_ACCESSOR(NS_ISCRIPTABLEWMPPLUGIN_IID)
+ 
+   /* void play (); */
+   NS_IMETHOD Play(void) = 0;
+@@ -120,7 +120,7 @@ NS_IMETHODIMP nsScriptableWMPPlugin::Sto
+ class NS_NO_VTABLE nsIScriptableMplayerPlugin : public nsISupports {
+  public: 
+ 
+-  NS_DEFINE_STATIC_IID_ACCESSOR(NS_ISCRIPTABLEMPLAYERPLUGIN_IID)
++  NS_DECLARE_STATIC_IID_ACCESSOR(NS_ISCRIPTABLEMPLAYERPLUGIN_IID)
+ 
+   /* void Play (); */
+   NS_IMETHOD Play(void) = 0;
diff -r 14c426cb3535 -r a126fce9c25d multimedia/mplayer-plugin/patches/patch-ag
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/multimedia/mplayer-plugin/patches/patch-ag        Mon Sep 14 08:56:08 2009 +0000
@@ -0,0 +1,1297 @@
+$NetBSD: patch-ag,v 1.1.1.1 2009/09/14 08:56:09 tnn Exp $
+
+--- include/npupp.h.orig       2009-09-14 09:57:07.000000000 +0200
++++ include/npupp.h
+@@ -0,0 +1,1292 @@
++/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
++/* ***** BEGIN LICENSE BLOCK *****
++ * Version: NPL 1.1/GPL 2.0/LGPL 2.1
++ *
++ * The contents of this file are subject to the Netscape Public License
++ * Version 1.1 (the "License"); you may not use this file except in
++ * compliance with the License. You may obtain a copy of the License at
++ * http://www.mozilla.org/NPL/
++ *
++ * Software distributed under the License is distributed on an "AS IS" basis,
++ * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
++ * for the specific language governing rights and limitations under the
++ * License.
++ *
++ * The Original Code is mozilla.org code.
++ *
++ * The Initial Developer of the Original Code is 
++ * Netscape Communications Corporation.
++ * Portions created by the Initial Developer are Copyright (C) 1998
++ * the Initial Developer. All Rights Reserved.
++ *
++ * Contributor(s):
++ *
++ *
++ * Alternatively, the contents of this file may be used under the terms of
++ * either the GNU General Public License Version 2 or later (the "GPL"), or
++ * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
++ * in which case the provisions of the GPL or the LGPL are applicable instead
++ * of those above. If you wish to allow use of your version of this file only
++ * under the terms of either the GPL or the LGPL, and not to allow others to
++ * use your version of this file under the terms of the NPL, indicate your
++ * decision by deleting the provisions above and replace them with the notice
++ * and other provisions required by the GPL or the LGPL. If you do not delete
++ * the provisions above, a recipient may use your version of this file under
++ * the terms of any one of the NPL, the GPL or the LGPL.
++ *
++ * ***** END LICENSE BLOCK ***** */
++
++
++/*
++ *  npupp.h Revision: 1.2 
++ *  function call mecahnics needed by platform specific glue code.
++ */
++
++
++#ifndef _NPUPP_H_
++#define _NPUPP_H_
++
++#if defined(__OS2__)
++#pragma pack(1)
++#endif
++
++#ifndef GENERATINGCFM
++#define GENERATINGCFM 0
++#endif
++
++#ifndef _NPAPI_H_
++#include "npapi.h"
++#endif
++
++#include "jri.h"
++
++/******************************************************************************************
++   plug-in function table macros
++              for each function in and out of the plugin API we define
++                    typedef NPP_FooUPP
++                                      #define NewNPP_FooProc
++                                      #define CallNPP_FooProc
++                      for mac, define the UPP magic for PPC/68K calling
++ *******************************************************************************************/
++
++
++/* NPP_Initialize */
++
++#define _NPUPP_USE_UPP_ (TARGET_RT_MAC_CFM && !TARGET_API_MAC_CARBON)
++
++#if _NPUPP_USE_UPP_
++typedef UniversalProcPtr NPP_InitializeUPP;
++
++enum {
++      uppNPP_InitializeProcInfo = kThinkCStackBased
++              | STACK_ROUTINE_PARAMETER(1, SIZE_CODE(0))              
++              | RESULT_SIZE(SIZE_CODE(0))
++};
++
++#define NewNPP_InitializeProc(FUNC)           \
++              (NPP_InitializeUPP) NewRoutineDescriptor((ProcPtr)(FUNC), uppNPP_InitializeProcInfo, GetCurrentArchitecture())
++#define CallNPP_InitializeProc(FUNC)          \
++              (void)CallUniversalProc((UniversalProcPtr)(FUNC), uppNPP_InitializeProcInfo)
++              
++#else
++
++typedef void (* NP_LOADDS NPP_InitializeUPP)(void);
++#define NewNPP_InitializeProc(FUNC)           \
++              ((NPP_InitializeUPP) (FUNC))
++#define CallNPP_InitializeProc(FUNC)          \
++              (*(FUNC))()
++
++#endif
++
++
++/* NPP_Shutdown */
++
++#if _NPUPP_USE_UPP_
++typedef UniversalProcPtr NPP_ShutdownUPP;
++
++enum {



Home | Main Index | Thread Index | Old Index