2008-10-12 14:27:51 +00:00
|
|
|
{ fetchurl, stdenv, mesa, freeglut, SDL
|
2010-08-22 14:18:58 +00:00
|
|
|
, libXi, libSM, libXmu, libXext, libX11,
|
|
|
|
enablePIC ? false }:
|
2008-10-12 14:27:51 +00:00
|
|
|
|
|
|
|
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";
|
|
|
|
};
|
|
|
|
|
2016-01-07 04:42:28 +00:00
|
|
|
patches = [ ./CVE-2012-4552.patch ];
|
|
|
|
|
2012-12-28 18:54:15 +00:00
|
|
|
NIX_CFLAGS_COMPILE = if enablePIC then "-fPIC" else "";
|
2010-08-22 14:18:58 +00:00
|
|
|
|
2008-10-12 14:27:51 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
mesa freeglut SDL
|
|
|
|
|
|
|
|
# The following libs ought to be propagated build inputs of Mesa.
|
|
|
|
libXi libSM libXmu libXext libX11
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = {
|
2014-08-24 14:21:08 +00:00
|
|
|
description = "A suite of portable game libraries";
|
2008-10-12 14:27:51 +00:00
|
|
|
|
|
|
|
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.
|
|
|
|
'';
|
|
|
|
|
2014-06-19 04:19:00 +00:00
|
|
|
license = stdenv.lib.licenses.lgpl2Plus;
|
2008-10-12 14:27:51 +00:00
|
|
|
|
|
|
|
homepage = http://plib.sourceforge.net/;
|
|
|
|
};
|
|
|
|
}
|