2010-07-28 19:35:01 +04:00
|
|
|
{ stdenv, fetchurl, mesa, x11, libXmu, libXi }:
|
2010-02-06 01:00:51 +03:00
|
|
|
|
2012-01-26 22:04:02 +04:00
|
|
|
stdenv.mkDerivation rec {
|
2013-05-18 11:31:02 +04:00
|
|
|
name = "glew-1.9.0";
|
2008-01-16 05:20:46 +03:00
|
|
|
|
2008-01-30 20:20:48 +03:00
|
|
|
src = fetchurl {
|
2012-01-26 22:04:02 +04:00
|
|
|
url = "mirror://sourceforge/glew/${name}.tgz";
|
2013-05-18 11:31:02 +04:00
|
|
|
sha256 = "11xpmsw7m5qn7y8fa2ihhqcislz1bdd83mp99didd5ac84756dlv";
|
2008-01-16 05:20:46 +03:00
|
|
|
};
|
|
|
|
|
2010-07-28 19:35:01 +04:00
|
|
|
buildInputs = [ mesa x11 libXmu libXi ];
|
2008-01-16 05:20:46 +03:00
|
|
|
|
2013-05-18 11:31:02 +04: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-06 01:00:51 +03:00
|
|
|
homepage = http://glew.sourceforge.net/;
|
|
|
|
license = ["BSD" "GLX" "SGI-B" "GPL2"]; # License description copied from gentoo-1.4.0
|
2008-01-16 05:20:46 +03:00
|
|
|
};
|
|
|
|
}
|