From c272ac6361275d3ad3976220514023eee2287ba5 Mon Sep 17 00:00:00 2001 From: hackbard Date: Wed, 7 Sep 2005 13:51:19 +0000 Subject: [PATCH] added mozplugger package --- doc/CHANGELOG | 4 +++ packages/multimedia/mozplugger/mozplugger | 18 +++++++++++++ .../multimedia/mozplugger/mozpluggerrc.patch | 23 +++++++++++++++++ packages/multimedia/mozplugger/mplayer_plugin | 25 +++++++++++++++++++ 4 files changed, 70 insertions(+) create mode 100644 packages/multimedia/mozplugger/mozplugger create mode 100644 packages/multimedia/mozplugger/mozpluggerrc.patch create mode 100755 packages/multimedia/mozplugger/mplayer_plugin diff --git a/doc/CHANGELOG b/doc/CHANGELOG index 68aa733..f26e247 100644 --- a/doc/CHANGELOG +++ b/doc/CHANGELOG @@ -1,3 +1,7 @@ +*) 2005-08-07 + +- added mozplugger package + *) 2005-08-06 - added setclock init stuff diff --git a/packages/multimedia/mozplugger/mozplugger b/packages/multimedia/mozplugger/mozplugger new file mode 100644 index 0000000..a4a174d --- /dev/null +++ b/packages/multimedia/mozplugger/mozplugger @@ -0,0 +1,18 @@ +# hdw - linux mozplugger package +# +# author: hackbard@hackdaworld.dyndns.org +# +# [V] cvs_2005-09-07 +# [S] 3-9 +# [D] mozplugger-cvs_2005-09-07.tar.bz2 http://hdwlinux.org/download/hdw-linux/hdw-linux-1.0/sources/multimedia/mozplugger/ + +srcdir="src" + +build_main() { + make $make_conf linux + cp mozplugger.so $prefix/lib/firefox/plugins/ + cp mozpluggerrc $root/etc/ + cp mozplugger-{helper,controller} $prefix/bin/ + cp $confdir/mplayer_plugin $prefix/bin/ + chmod 755 $prefix/bin/mplayer_plugin + } diff --git a/packages/multimedia/mozplugger/mozpluggerrc.patch b/packages/multimedia/mozplugger/mozpluggerrc.patch new file mode 100644 index 0000000..9e8dec8 --- /dev/null +++ b/packages/multimedia/mozplugger/mozpluggerrc.patch @@ -0,0 +1,23 @@ +--- ./mozpluggerrc.orig 2005-09-07 15:15:18.000000000 +0200 ++++ ./mozpluggerrc 2005-09-07 15:16:01.000000000 +0200 +@@ -36,7 +36,7 @@ + + ### MPlayer + +-define(MP_CMD,[mplayer -really-quiet -nojoystick -nofs -zoom -vo xv,x11 -ao esd,alsa,oss,arts,null -osdlevel 0 $1 &1 | grep vorbis]),[],[ ++ifelse(esyscmd([mplayer_plugin -afm help 2>&1 | grep vorbis]),[],[ + define(MP_NO_VORBIS) + ],[ + define(MP_VORBIS) diff --git a/packages/multimedia/mozplugger/mplayer_plugin b/packages/multimedia/mozplugger/mplayer_plugin new file mode 100755 index 0000000..083d947 --- /dev/null +++ b/packages/multimedia/mozplugger/mplayer_plugin @@ -0,0 +1,25 @@ +#!/bin/sh +# original by: sammy umar +# small modifications to leave mplayer untouched + +# store argument +argument="$*" +# check to see if argument contains http +http=`echo $argument | grep http -` +# for remote/local files do things differently +if [ "$http" != "" ]; then +# obtain all the options until the filename/path + options=${argument%http*} +# get the filename + file=${argument#*http} +# extract the extension + ext=${file##*.} + if [ "$ext" = "asx" ]; then + mplayer $options -playlist http$file + else + mplayer $* + fi +else +# if local just do the command line + mplayer $* +fi -- 2.39.2