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 = '' patchPhase = ''
sed -i 's|lib64|lib|' config/Makefile.linux sed -i 's|lib64|lib|' config/Makefile.linux
substituteInPlace config/Makefile.darwin --replace /usr/local "$out"
${optionalString (hostPlatform != buildPlatform) '' ${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}" "SYSTEM=${if hostPlatform.isMinGW then "mingw" else hostPlatform.parsed.kernel.name}"
]; ];
enableParallelBuilding = true;
meta = with stdenv.lib; { meta = with stdenv.lib; {
description = "An OpenGL extension loading library for C(++)"; description = "An OpenGL extension loading library for C(++)";
homepage = http://glew.sourceforge.net/; homepage = http://glew.sourceforge.net/;