2013-08-06 10:33:41 +02:00
|
|
|
{ stdenv, fetchurl, mesa_glu, 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
|
|
|
};
|
|
|
|
|
2013-10-24 12:01:53 +02:00
|
|
|
|
2013-08-06 10:33:41 +02:00
|
|
|
buildInputs = [ x11 libXmu libXi ];
|
|
|
|
propagatedBuildInputs = [ mesa_glu ]; # GL/glew.h includes GL/glu.h
|
2008-01-16 03:20:46 +01:00
|
|
|
|
2013-06-09 02:33:34 +02:00
|
|
|
patchPhase = ''
|
|
|
|
sed -i 's|lib64|lib|' config/Makefile.linux
|
|
|
|
'';
|
|
|
|
|
2013-10-24 12:01:53 +02:00
|
|
|
buildPhase = "make all";
|
2013-05-18 09:31:02 +02:00
|
|
|
installPhase = ''
|
2013-10-24 12:01:53 +02:00
|
|
|
GLEW_DEST=$out make install.all
|
2013-05-18 09:31:02 +02:00
|
|
|
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
|
|
|
};
|
|
|
|
}
|