nixpkgs/pkgs/development/libraries/smpeg2/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

50 lines
1015 B
Nix
Raw Normal View History

{ lib, stdenv
, autoconf
, automake
, darwin
, fetchsvn
, makeWrapper
, pkg-config
, SDL2
}:
2017-08-26 22:23:31 +00:00
stdenv.mkDerivation rec {
pname = "smpeg2";
version = "unstable-2017-10-18";
2017-08-26 22:23:31 +00:00
src = fetchsvn {
url = "svn://svn.icculus.org/smpeg/trunk";
rev = "413";
sha256 = "193amdwgxkb1zp7pgr72fvrdhcg3ly72qpixfxxm85rzz8g2kr77";
2017-08-26 22:23:31 +00:00
};
patches = [
./hufftable-uint_max.patch
2017-08-26 22:23:31 +00:00
];
nativeBuildInputs = [ autoconf automake makeWrapper pkg-config ];
2017-08-26 22:23:31 +00:00
buildInputs = [ SDL2 ]
++ lib.optional stdenv.isDarwin darwin.libobjc;
2017-08-26 22:23:31 +00:00
preConfigure = ''
sh autogen.sh
'';
postInstall = ''
wrapProgram $out/bin/smpeg2-config \
--prefix PATH ":" "${pkg-config}/bin" \
2017-08-26 22:23:31 +00:00
--prefix PKG_CONFIG_PATH ":" "${SDL2.dev}/lib/pkgconfig"
'';
enableParallelBuilding = true;
meta = with lib; {
homepage = "http://icculus.org/smpeg/";
2017-08-26 22:23:31 +00:00
description = "SDL2 MPEG Player Library";
license = licenses.lgpl2;
platforms = platforms.unix;
2017-08-26 22:23:31 +00:00
maintainers = with maintainers; [ orivej ];
};
}