mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 03:17:13 +00:00
c2429bba12
drop patch not needed anymore Co-authored-by: Nikolay Amiantov <ab@fmap.me>
50 lines
1 KiB
Nix
50 lines
1 KiB
Nix
{ stdenv
|
|
, autoconf
|
|
, automake
|
|
, darwin
|
|
, fetchsvn
|
|
, makeWrapper
|
|
, pkg-config
|
|
, SDL2
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "smpeg2";
|
|
version = "unstable-2017-10-18";
|
|
|
|
src = fetchsvn {
|
|
url = "svn://svn.icculus.org/smpeg/trunk";
|
|
rev = "413";
|
|
sha256 = "193amdwgxkb1zp7pgr72fvrdhcg3ly72qpixfxxm85rzz8g2kr77";
|
|
};
|
|
|
|
patches = [
|
|
./hufftable-uint_max.patch
|
|
];
|
|
|
|
nativeBuildInputs = [ autoconf automake makeWrapper pkg-config ];
|
|
|
|
buildInputs = [ SDL2 ]
|
|
++ stdenv.lib.optional stdenv.isDarwin darwin.libobjc;
|
|
|
|
preConfigure = ''
|
|
sh autogen.sh
|
|
'';
|
|
|
|
postInstall = ''
|
|
wrapProgram $out/bin/smpeg2-config \
|
|
--prefix PATH ":" "${pkg-config}/bin" \
|
|
--prefix PKG_CONFIG_PATH ":" "${SDL2.dev}/lib/pkgconfig"
|
|
'';
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
meta = with stdenv.lib; {
|
|
homepage = "http://icculus.org/smpeg/";
|
|
description = "SDL2 MPEG Player Library";
|
|
license = licenses.lgpl2;
|
|
platforms = platforms.unix;
|
|
maintainers = with maintainers; [ orivej ];
|
|
};
|
|
}
|