--- /dev/null
+# 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
+ }
--- /dev/null
+--- ./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 </dev/null])
++define(MP_CMD,[mplayer_plugin -really-quiet -nojoystick -nofs -zoom -vo xv,x11 -ao esd,alsa,oss,arts,null -osdlevel 0 $1 </dev/null])
+
+ define(MP_EMBED,[embed noisy ignore_errors: MP_CMD(-xy $width -wid $window $1)])
+
+@@ -45,9 +45,9 @@
+ define(MP_VIDEO_STREAM,[stream MP_EMBED($1 "$file")
+ stream MP_NOEMBED($1 "$file")])
+
+-define(MP_AUDIO_STREAM,[controls stream noisy ignore_errors: mplayer -really-quiet -nojoystick "$file" </dev/null])
++define(MP_AUDIO_STREAM,[controls stream noisy ignore_errors: mplayer_plugin -really-quiet -nojoystick "$file" </dev/null])
+
+-ifelse(esyscmd([mplayer -afm help 2>&1 | grep vorbis]),[],[
++ifelse(esyscmd([mplayer_plugin -afm help 2>&1 | grep vorbis]),[],[
+ define(MP_NO_VORBIS)
+ ],[
+ define(MP_VORBIS)
--- /dev/null
+#!/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