From e6db9b1caa9acc6ebd1a1e219ec084f2209ad68f Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Thu, 13 Nov 2003 13:11:38 +0000 Subject: [PATCH] * Browser plugin for MPlayer. svn path=/nixpkgs/trunk/; revision=498 --- .../video/mplayerplug-in/builder.sh | 11 +++++++++++ .../video/mplayerplug-in/default.fix | 17 +++++++++++++++++ pkgs-ng/system/all-packages-generic.fix | 6 ++++++ pkgs-ng/system/user-environment.fix | 1 + 4 files changed, 35 insertions(+) create mode 100755 pkgs-ng/applications/video/mplayerplug-in/builder.sh create mode 100644 pkgs-ng/applications/video/mplayerplug-in/default.fix diff --git a/pkgs-ng/applications/video/mplayerplug-in/builder.sh b/pkgs-ng/applications/video/mplayerplug-in/builder.sh new file mode 100755 index 00000000000..300a445ea0a --- /dev/null +++ b/pkgs-ng/applications/video/mplayerplug-in/builder.sh @@ -0,0 +1,11 @@ +#! /bin/sh + +buildinputs="$x11" +. $stdenv/setup || exit 1 + +tar xvfz $src || exit 1 +cd mplayer* || exit 1 +./configure || exit 1 +make || exit 1 +mkdir -p $out/lib/mozilla/plugins || exit 1 +cp mplayerplug-in.so $out/lib/mozilla/plugins || exit 1 diff --git a/pkgs-ng/applications/video/mplayerplug-in/default.fix b/pkgs-ng/applications/video/mplayerplug-in/default.fix new file mode 100644 index 00000000000..c06fc31fee4 --- /dev/null +++ b/pkgs-ng/applications/video/mplayerplug-in/default.fix @@ -0,0 +1,17 @@ +{stdenv, fetchurl, x11}: + +assert !isNull x11; + +derivation { + name = "mplayerplug-in-1.0pre2"; + system = stdenv.system; + + builder = ./builder.sh; + src = fetchurl { + url = http://heanet.dl.sourceforge.net/sourceforge/mplayerplug-in/mplayerplug-in-1.0pre2.tar.gz; + md5 = "1a6eb243989c143984bb1aac63b5282e"; + }; + + stdenv = stdenv; + x11 = x11; +} diff --git a/pkgs-ng/system/all-packages-generic.fix b/pkgs-ng/system/all-packages-generic.fix index 9ac25144618..d469af8c678 100644 --- a/pkgs-ng/system/all-packages-generic.fix +++ b/pkgs-ng/system/all-packages-generic.fix @@ -384,6 +384,12 @@ alsa = alsaLib; }; + MPlayerPlugin = (import ../applications/video/mplayerplug-in) { + fetchurl = fetchurl; + stdenv = stdenv; + x11 = xfree86; + }; + gqview = (import ../applications/graphics/gqview) { fetchurl = fetchurl; stdenv = stdenv; diff --git a/pkgs-ng/system/user-environment.fix b/pkgs-ng/system/user-environment.fix index c868f3d62c1..98268c4d76d 100644 --- a/pkgs-ng/system/user-environment.fix +++ b/pkgs-ng/system/user-environment.fix @@ -16,6 +16,7 @@ pkgs.sylpheed pkgs.firebird pkgs.MPlayer + pkgs.MPlayerPlugin pkgs.gqview ];