added mozplugger package
authorhackbard <hackbard>
Wed, 7 Sep 2005 13:51:19 +0000 (13:51 +0000)
committerhackbard <hackbard>
Wed, 7 Sep 2005 13:51:19 +0000 (13:51 +0000)
doc/CHANGELOG
packages/multimedia/mozplugger/mozplugger [new file with mode: 0644]
packages/multimedia/mozplugger/mozpluggerrc.patch [new file with mode: 0644]
packages/multimedia/mozplugger/mplayer_plugin [new file with mode: 0755]

index 68aa733..f26e247 100644 (file)
@@ -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 (file)
index 0000000..a4a174d
--- /dev/null
@@ -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 (file)
index 0000000..9e8dec8
--- /dev/null
@@ -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 </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)
diff --git a/packages/multimedia/mozplugger/mplayer_plugin b/packages/multimedia/mozplugger/mplayer_plugin
new file mode 100755 (executable)
index 0000000..083d947
--- /dev/null
@@ -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