From 2b119ba405637ea611c9855fddd2bef9cd374fd3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= Date: Tue, 2 Sep 2008 13:43:53 +0000 Subject: [PATCH] Add Ming, a C library to generate Flash files. svn path=/nixpkgs/trunk/; revision=12786 --- pkgs/development/libraries/ming/default.nix | 33 +++++++++++++++++++++ pkgs/top-level/all-packages.nix | 4 +++ 2 files changed, 37 insertions(+) create mode 100644 pkgs/development/libraries/ming/default.nix diff --git a/pkgs/development/libraries/ming/default.nix b/pkgs/development/libraries/ming/default.nix new file mode 100644 index 000000000000..9cfb8afa8eba --- /dev/null +++ b/pkgs/development/libraries/ming/default.nix @@ -0,0 +1,33 @@ +{ fetchurl, stdenv, flex, bison, freetype, zlib, libpng +, perl }: + +stdenv.mkDerivation rec { + name = "ming-0.4.0.rc1"; + + src = fetchurl { + url = "mirror://sourceforge/ming/${name}.tar.bz2"; + sha256 = "19brcqh4mqav5gsnmnb6j4gv9s0rmkg71657ck17xj8fdklq38y7"; + }; + + # We don't currently build the Python, Perl, PHP, etc. bindings. + # Perl is needed for the test suite, though. + + buildInputs = [ flex bison freetype zlib libpng perl ]; + + doCheck = true; + + meta = { + description = "Ming, a 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 = "LGPLv2+"; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index d14f391cec2d..f7d3f7add595 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -3354,6 +3354,10 @@ let mesaSrc = mesa.src; }; + ming = import ../development/libraries/ming { + inherit fetchurl stdenv flex bison freetype zlib libpng perl; + }; + mpeg2dec = import ../development/libraries/mpeg2dec { inherit fetchurl stdenv; };