3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/libraries/ming/default.nix
Joachim Fasting e05dd52f3d
ming: 0.4.5 -> 0.4.7
Split outputs
- bin: 1.7mb
- dev: 127kb
- out: 472kb
2016-06-02 00:22:08 +02:00

45 lines
1.2 KiB
Nix

{ 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 = [ "dev" "out" "bin" ];
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;
};
}