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