2016-06-01 23:19:48 +01:00
|
|
|
{ stdenv, fetchFromGitHub
|
|
|
|
, autoreconfHook, flex, bison, perl
|
|
|
|
, zlib, freetype, libpng, giflib
|
|
|
|
}:
|
2008-09-02 14:43:53 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2016-06-01 23:19:48 +01:00
|
|
|
pname = "ming";
|
|
|
|
version = "0.4.7";
|
|
|
|
name = "${pname}-${version}";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
repo = "libming";
|
|
|
|
owner = "libming";
|
|
|
|
rev = "${pname}-${stdenv.lib.replaceStrings ["."] ["_"] version}";
|
|
|
|
sha256 = "17ngz1n1mnknixzchywkhbw9s3scad8ajmk97gx14xbsw1603gd2";
|
2008-09-02 14:43:53 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
# We don't currently build the Python, Perl, PHP, etc. bindings.
|
|
|
|
# Perl is needed for the test suite, though.
|
|
|
|
|
2016-08-29 01:30:01 +01:00
|
|
|
outputs = [ "bin" "dev" "out" ];
|
2016-06-01 23:19:48 +01:00
|
|
|
nativeBuildInputs = [ autoreconfHook flex bison perl ];
|
|
|
|
buildInputs = [ freetype zlib libpng giflib ];
|
|
|
|
|
|
|
|
postFixup = ''moveToOutput "bin/ming-config" $dev'';
|
2008-09-02 14:43:53 +01:00
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
2016-06-01 23:19:48 +01:00
|
|
|
meta = with stdenv.lib; {
|
2014-08-24 15:21:08 +01:00
|
|
|
description = "Library for generating Flash `.swf' files";
|
2008-09-02 14:43:53 +01:00
|
|
|
|
|
|
|
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/;
|
|
|
|
|
2016-06-01 23:19:48 +01:00
|
|
|
license = licenses.lgpl2Plus;
|
|
|
|
platforms = platforms.unix;
|
2008-09-02 14:43:53 +01:00
|
|
|
};
|
|
|
|
}
|