2010-07-28 15:35:01 +00:00
|
|
|
{ stdenv, fetchurl, mesa, x11, libXmu, libXi }:
|
2010-02-05 22:00:51 +00:00
|
|
|
|
2012-01-26 18:04:02 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2013-05-18 07:31:02 +00:00
|
|
|
name = "glew-1.9.0";
|
2008-01-16 02:20:46 +00:00
|
|
|
|
2008-01-30 17:20:48 +00:00
|
|
|
src = fetchurl {
|
2012-01-26 18:04:02 +00:00
|
|
|
url = "mirror://sourceforge/glew/${name}.tgz";
|
2013-05-18 07:31:02 +00:00
|
|
|
sha256 = "11xpmsw7m5qn7y8fa2ihhqcislz1bdd83mp99didd5ac84756dlv";
|
2008-01-16 02:20:46 +00:00
|
|
|
};
|
|
|
|
|
2010-07-28 15:35:01 +00:00
|
|
|
buildInputs = [ mesa x11 libXmu libXi ];
|
2008-01-16 02:20:46 +00:00
|
|
|
|
2013-06-09 00:33:34 +00:00
|
|
|
patchPhase = ''
|
|
|
|
sed -i 's|lib64|lib|' config/Makefile.linux
|
|
|
|
'';
|
|
|
|
|
2013-05-18 07:31:02 +00:00
|
|
|
installPhase = ''
|
|
|
|
GLEW_DEST=$out make install
|
|
|
|
mkdir -pv $out/share/doc/glew
|
|
|
|
mkdir -p $out/lib/pkgconfig
|
|
|
|
cp glew*.pc $out/lib/pkgconfig
|
|
|
|
cp -r README.txt LICENSE.txt doc $out/share/doc/glew
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "An OpenGL extension loading library for C(++)";
|
2010-02-05 22:00:51 +00:00
|
|
|
homepage = http://glew.sourceforge.net/;
|
|
|
|
license = ["BSD" "GLX" "SGI-B" "GPL2"]; # License description copied from gentoo-1.4.0
|
2008-01-16 02:20:46 +00:00
|
|
|
};
|
|
|
|
}
|