* MPlayer 1.0rc1.

* Added freefont-ttf (use to provide a default OSD font for MPlayer).

svn path=/nixpkgs/trunk/; revision=7241
This commit is contained in:
Eelco Dolstra 2006-12-05 22:28:45 +00:00
parent 26b32785d2
commit cf8fad5c83
5 changed files with 44 additions and 40 deletions

View File

@ -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

View File

@ -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.

View File

@ -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";
};
}

View File

@ -0,0 +1,11 @@
{stdenv, fetchurl}:
stdenv.mkDerivation {
name = "freefont-ttf-20060126";
src = fetchurl {
url = http://download.savannah.gnu.org/releases/freefont/freefont-ttf-20060126.tar.gz;
md5 = "822aba4e2ed065d9d3ded6e26e495854";
};
buildPhase = "true";
installPhase = "ensureDir $out/share/fonts/truetype; cp *.ttf $out/share/fonts/truetype";
}

View File

@ -2279,6 +2279,10 @@ rec {
inherit fetchurl stdenv;
};
freefont_ttf = import ../data/fonts/freefont-ttf {
inherit fetchurl stdenv;
};
### APPLICATIONS
@ -2508,8 +2512,8 @@ rec {
};
MPlayer = import ../applications/video/MPlayer {
inherit fetchurl stdenv freetype x11 zlib libtheora libcaca;
inherit (xlibs) libXv libXinerama libXrandr;
inherit fetchurl stdenv freetype x11 zlib libtheora libcaca freefont_ttf;
inherit (xlibs) libX11 libXv libXinerama libXrandr;
alsaSupport = true;
alsa = alsaLib;
theoraSupport = true;