3
0
Fork 0
forked from mirrors/nixpkgs

glew: fix darwin install name

This commit is contained in:
Orivej Desh 2017-11-27 15:57:50 +00:00
parent 4a8caddb6e
commit 78af59354c

View file

@ -19,8 +19,9 @@ stdenv.mkDerivation rec {
patchPhase = ''
sed -i 's|lib64|lib|' config/Makefile.linux
substituteInPlace config/Makefile.darwin --replace /usr/local "$out"
${optionalString (hostPlatform != buildPlatform) ''
sed -i -e 's/\(INSTALL.*\)-s/\1/' Makefile
sed -i -e 's/\(INSTALL.*\)-s/\1/' Makefile
''}
'';
@ -43,6 +44,8 @@ stdenv.mkDerivation rec {
"SYSTEM=${if hostPlatform.isMinGW then "mingw" else hostPlatform.parsed.kernel.name}"
];
enableParallelBuilding = true;
meta = with stdenv.lib; {
description = "An OpenGL extension loading library for C(++)";
homepage = http://glew.sourceforge.net/;