about summary refs log tree commit diff
path: root/pkgs/development/libraries/libmpeg2/default.nix
blob: 13fce963738fb6c7b9d535c9bf6a1acd0161a309 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{ lib, stdenv, fetchurl }:

stdenv.mkDerivation rec {
  version = "0.5.1";
  pname = "libmpeg2";

  src = fetchurl {
    url = "http://libmpeg2.sourceforge.net/files/${pname}-${version}.tar.gz";
    sha256 = "1m3i322n2fwgrvbs1yck7g5md1dbg22bhq5xdqmjpz5m7j4jxqny";
  };

  # Otherwise clang fails with 'duplicate symbol ___sputc'
  buildFlags = lib.optional stdenv.hostPlatform.isDarwin "CFLAGS=-std=gnu89";

  meta = {
    homepage = "http://libmpeg2.sourceforge.net/";
    description = "Free library for decoding mpeg-2 and mpeg-1 video streams";
    license = lib.licenses.gpl2;
    maintainers = [ ];
    platforms = with lib.platforms; unix;
  };
}