summary refs log tree commit diff
path: root/pkgs/development/libraries/ming/default.nix
blob: e9777fe5635eb711f7e174017a33829d9e40b217 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
{ stdenv, fetchFromGitHub
, autoreconfHook, flex, bison, perl
, zlib, freetype, libpng, giflib
}:

stdenv.mkDerivation rec {
  pname = "ming";
  version = "0.4.7";
  name = "${pname}-${version}";

  src = fetchFromGitHub {
    repo = "libming";
    owner = "libming";
    rev = "${pname}-${stdenv.lib.replaceStrings ["."] ["_"] version}";
    sha256 = "17ngz1n1mnknixzchywkhbw9s3scad8ajmk97gx14xbsw1603gd2";
  };

  # We don't currently build the Python, Perl, PHP, etc. bindings.
  # Perl is needed for the test suite, though.

  outputs = [ "bin" "dev" "out" ];
  nativeBuildInputs = [ autoreconfHook flex bison perl ];
  buildInputs = [ freetype zlib libpng giflib ];

  postFixup = ''moveToOutput "bin/ming-config" $dev'';

  doCheck = true;

  meta = with stdenv.lib; {
    description = "Library for generating Flash `.swf' files";

    longDescription = ''
      Ming is a library for generating Macromedia Flash files (.swf),
      written in C, and includes useful utilities for working with
      .swf files.  It has wrappers that allow it to be used in C++,
      PHP, Python, Ruby, and Perl.
    '';

    homepage = http://www.libming.org/;

    license = licenses.lgpl2Plus;
    platforms = platforms.unix;
  };
}