From bf54e7bc254ebf4f872657bc2016e5e72cd09400 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= Date: Sun, 12 Oct 2008 14:27:51 +0000 Subject: [PATCH] PLIB: a suite of portable game libraries. svn path=/nixpkgs/trunk/; revision=13051 --- pkgs/development/libraries/plib/default.nix | 38 +++++++++++++++++++++ pkgs/top-level/all-packages.nix | 5 +++ 2 files changed, 43 insertions(+) create mode 100644 pkgs/development/libraries/plib/default.nix diff --git a/pkgs/development/libraries/plib/default.nix b/pkgs/development/libraries/plib/default.nix new file mode 100644 index 000000000000..33b940f77184 --- /dev/null +++ b/pkgs/development/libraries/plib/default.nix @@ -0,0 +1,38 @@ +{ fetchurl, stdenv, mesa, freeglut, SDL +, libXi, libSM, libXmu, libXext, libX11 }: + +stdenv.mkDerivation rec { + name = "plib-1.8.5"; + + src = fetchurl { + # XXX: The author doesn't use the orthodox SF way to store tarballs. + url = "http://plib.sourceforge.net/dist/${name}.tar.gz"; + sha256 = "0cha71mflpa10vh2l7ipyqk67dq2y0k5xbafwdks03fwdyzj4ns8"; + }; + + propagatedBuildInputs = [ + mesa freeglut SDL + + # The following libs ought to be propagated build inputs of Mesa. + libXi libSM libXmu libXext libX11 + ]; + + meta = { + description = "PLIB: A Suite of Portable Game Libraries"; + + longDescription = '' + PLIB includes sound effects, music, a complete 3D engine, font + rendering, a simple Windowing library, a game scripting + language, a GUI, networking, 3D math library and a collection of + handy utility functions. All are 100% portable across nearly + all modern computing platforms. What's more, it's all available + on line - and completely free. Each library component is fairly + independent of the others - so if you want to use SDL, GTK, + GLUT, or FLTK instead of PLIB's 'PW' windowing library, you can. + ''; + + license = "LGPLv2+"; + + homepage = http://plib.sourceforge.net/; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 9a68021091e9..8ca4c59b475b 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -3472,6 +3472,11 @@ let cplusplusSupport = !stdenv ? isDietLibC; }; + plib = import ../development/libraries/plib { + inherit fetchurl stdenv mesa freeglut SDL; + inherit (xlibs) libXi libSM libXmu libXext libX11; + }; + poppler = import ../development/libraries/poppler { inherit fetchurl stdenv qt4 cairo freetype fontconfig zlib libjpeg pkgconfig;