From 3e9383d8b1a69c45556d4cb90f2c5aecf51bd1ef Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Sat, 12 Mar 2005 12:53:03 +0000 Subject: * Added RealPlayer 10.0.3. svn path=/nixpkgs/trunk/; revision=2389 --- pkgs/applications/video/RealPlayer/builder.sh | 18 ++++++++++++++++++ pkgs/applications/video/RealPlayer/default.nix | 19 +++++++++++++++++++ 2 files changed, 37 insertions(+) create mode 100644 pkgs/applications/video/RealPlayer/builder.sh create mode 100644 pkgs/applications/video/RealPlayer/default.nix (limited to 'pkgs/applications/video') diff --git a/pkgs/applications/video/RealPlayer/builder.sh b/pkgs/applications/video/RealPlayer/builder.sh new file mode 100644 index 000000000000..f9baf5ce6381 --- /dev/null +++ b/pkgs/applications/video/RealPlayer/builder.sh @@ -0,0 +1,18 @@ +. $stdenv/setup +. $makeWrapper + +ensureDir $out/real + +skip=143209 + +(dd bs=1 count=$skip of=/dev/null && dd) < $src | (cd $out/real && tar xvfj -) + +rm -rf $out/real/Bin $out/real/postinst + +glibc=$(cat $NIX_GCC/nix-support/orig-glibc) +patchelf --interpreter $glibc/lib/ld-linux.so.* $out/real/realplay.bin + +ensureDir $out/bin +makeWrapper "$out/real/realplay.bin" "$out/bin/realplay" \ + --set HELIX_LIBS "$out/real" \ + --suffix-each LD_LIBRARY_PATH ':' "$(addSuffix /lib $libPath)" diff --git a/pkgs/applications/video/RealPlayer/default.nix b/pkgs/applications/video/RealPlayer/default.nix new file mode 100644 index 000000000000..530577f5977a --- /dev/null +++ b/pkgs/applications/video/RealPlayer/default.nix @@ -0,0 +1,19 @@ +{stdenv, fetchurl, libstdcpp5, glib, pango, atk, gtk, libX11}: + +# Note that RealPlayer 10 need libstdc++.so.5, i.e., GCC 3.3, not 3.4. + +assert stdenv.system == "i686-linux"; + +stdenv.mkDerivation { + name = "RealPlayer-10.0.3.748-GOLD"; + + builder = ./builder.sh; + src = fetchurl { + url = http://software-dl.real.com/12ae5c4cc79d437fa106/unix/RealPlayer10GOLD.bin; + md5 = "70a88bcae0ab3e177e6fadecd6b8be24"; + }; + + makeWrapper = ../../../build-support/make-wrapper/make-wrapper.sh; + + libPath = [libstdcpp5 glib pango atk gtk libX11]; +} -- cgit 1.4.1