glew: install glewinfo and visualinfo

This commit is contained in:
Evgeny Egorochkin 2013-10-24 13:01:53 +03:00
parent 23d3c30f55
commit 0d76e1cb94

View File

@ -8,6 +8,7 @@ stdenv.mkDerivation rec {
sha256 = "11xpmsw7m5qn7y8fa2ihhqcislz1bdd83mp99didd5ac84756dlv";
};
buildInputs = [ x11 libXmu libXi ];
propagatedBuildInputs = [ mesa_glu ]; # GL/glew.h includes GL/glu.h
@ -15,8 +16,9 @@ stdenv.mkDerivation rec {
sed -i 's|lib64|lib|' config/Makefile.linux
'';
buildPhase = "make all";
installPhase = ''
GLEW_DEST=$out make install
GLEW_DEST=$out make install.all
mkdir -pv $out/share/doc/glew
mkdir -p $out/lib/pkgconfig
cp glew*.pc $out/lib/pkgconfig