diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2006-12-05 22:28:45 +0000 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2006-12-05 22:28:45 +0000 |
commit | cf8fad5c837eff0c9becc5c42c3d549cc3eb455f (patch) | |
tree | cfa40732a38137a0fa6aa1acfb2034bdb2da120e /pkgs/applications/video | |
parent | 26b32785d214c192eb603c78ab6feff9594f2c3c (diff) | |
download | nixlib-cf8fad5c837eff0c9becc5c42c3d549cc3eb455f.tar nixlib-cf8fad5c837eff0c9becc5c42c3d549cc3eb455f.tar.gz nixlib-cf8fad5c837eff0c9becc5c42c3d549cc3eb455f.tar.bz2 nixlib-cf8fad5c837eff0c9becc5c42c3d549cc3eb455f.tar.lz nixlib-cf8fad5c837eff0c9becc5c42c3d549cc3eb455f.tar.xz nixlib-cf8fad5c837eff0c9becc5c42c3d549cc3eb455f.tar.zst nixlib-cf8fad5c837eff0c9becc5c42c3d549cc3eb455f.zip |
* MPlayer 1.0rc1.
* Added freefont-ttf (use to provide a default OSD font for MPlayer). svn path=/nixpkgs/trunk/; revision=7241
Diffstat (limited to 'pkgs/applications/video')
-rw-r--r-- | pkgs/applications/video/MPlayer/builder.sh | 20 | ||||
-rw-r--r-- | pkgs/applications/video/MPlayer/default.nix | 39 | ||||
-rw-r--r-- | pkgs/applications/video/MPlayer/win32codecs/default.nix | 6 |
3 files changed, 27 insertions, 38 deletions
diff --git a/pkgs/applications/video/MPlayer/builder.sh b/pkgs/applications/video/MPlayer/builder.sh deleted file mode 100644 index 7b2958689f3c..000000000000 --- a/pkgs/applications/video/MPlayer/builder.sh +++ /dev/null @@ -1,20 +0,0 @@ -source $stdenv/setup - -postUnpack() { - unpackFile $fonts -} -postUnpack=postUnpack - -configureFlags="\ - --with-win32libdir=$win32codecs \ - --with-reallibdir=$win32codecs \ - --enable-runtime-cpudetection \ - --enable-x11 --with-x11incdir=/no-such-dir --with-x11libdir=/no-such-dir - $configureFlags" - -postInstall() { - cp -p ../font-arial-iso-8859-1/font-arial-18-iso-8859-1/* $out/share/mplayer/font -} -postInstall=postInstall - -genericBuild diff --git a/pkgs/applications/video/MPlayer/default.nix b/pkgs/applications/video/MPlayer/default.nix index fda3200509df..225b0669696b 100644 --- a/pkgs/applications/video/MPlayer/default.nix +++ b/pkgs/applications/video/MPlayer/default.nix @@ -1,7 +1,7 @@ { alsaSupport ? false, xvSupport ? true, theoraSupport ? false, cacaSupport ? false , xineramaSupport ? false, randrSupport ? false -, stdenv, fetchurl, x11, freetype, zlib -, alsa ? null, libXv ? null, libtheora ? null, libcaca ? null +, stdenv, fetchurl, x11, freetype, freefont_ttf, zlib +, alsa ? null, libX11, libXv ? null, libtheora ? null, libcaca ? null , libXinerama ? null, libXrandr ? null }: @@ -12,23 +12,22 @@ assert cacaSupport -> libcaca != null; assert xineramaSupport -> libXinerama != null; assert randrSupport -> libXrandr != null; -stdenv.mkDerivation { - name = "MPlayer-1.0pre8"; - - builder = ./builder.sh; - src = fetchurl { - url = http://nix.cs.uu.nl/dist/tarballs/MPlayer-1.0pre8.tar.bz2; - md5 = "f82bb2bc51b6cd5e5dd96f88f6f98582"; - }; - fonts = fetchurl { - url = http://nix.cs.uu.nl/dist/tarballs/font-arial-iso-8859-1.tar.bz2; - md5 = "1ecd31d17b51f16332b1fcc7da36b312"; - }; +let win32codecs = (import ./win32codecs) { inherit stdenv fetchurl; }; +in + +stdenv.mkDerivation { + name = "MPlayer-1.0rc1"; + + src = fetchurl { + url = http://www1.mplayerhq.hu/MPlayer/releases/MPlayer-1.0rc1.tar.bz2; + sha1 = "a450c0b0749c343a8496ba7810363c9d46dfa73c"; + }; + buildInputs = [ x11 libXv freetype zlib (if alsaSupport then alsa else null) @@ -39,7 +38,17 @@ stdenv.mkDerivation { (if randrSupport then libXrandr else null) ]; - configureFlags = if cacaSupport then "--enable-caca" else "--disable-caca"; + configureFlags = " + ${if cacaSupport then "--enable-caca" else "--disable-caca"} + --with-win32libdir=${win32codecs} + --with-reallibdir=${win32codecs} + --enable-runtime-cpudetection + --enable-x11 --with-x11libdir=/no-such-dir --with-extraincdir=${libX11}/include + --disable-xanim + "; + + # Provide a reasonable standard font. Maybe we should symlink here. + postInstall = "cp ${freefont_ttf}/share/fonts/truetype/FreeSans.ttf $out/share/mplayer/subfont.ttf"; # These fix MPlayer's aspect ratio when run in a screen rotated with # Xrandr. diff --git a/pkgs/applications/video/MPlayer/win32codecs/default.nix b/pkgs/applications/video/MPlayer/win32codecs/default.nix index 13a68aa36615..8548954a6626 100644 --- a/pkgs/applications/video/MPlayer/win32codecs/default.nix +++ b/pkgs/applications/video/MPlayer/win32codecs/default.nix @@ -1,8 +1,8 @@ {stdenv, fetchurl}: stdenv.mkDerivation { - name = "MPlayer-codecs-essential-20060611"; + name = "MPlayer-codecs-essential-20061022"; builder = ./builder.sh; src = fetchurl { - url = http://nix.cs.uu.nl/dist/tarballs/essential-20060611.tar.bz2; - md5 = "26ec3f9feed5f89814b2ec5f436e937b"; + url = http://www1.mplayerhq.hu/MPlayer/releases/codecs/essential-20061022.tar.bz2; + md5 = "abcf4a3abc16cf88c9df7e0a77e9b941"; }; } |