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