libogg: fix splitting and some referrers
This commit is contained in:
parent
1197003966
commit
9935a85851
|
@ -8,11 +8,9 @@ stdenv.mkDerivation rec {
|
||||||
sha256 = "16z74q422jmprhyvy7c9x909li8cqzmvzyr8cgbm52xcsp6pqs1z";
|
sha256 = "16z74q422jmprhyvy7c9x909li8cqzmvzyr8cgbm52xcsp6pqs1z";
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = [ "out" "doc" ];
|
outputs = [ "dev" "out" "doc" ];
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
|
|
||||||
outputs = [ "dev" "doc" "out" ];
|
|
||||||
homepage = http://xiph.org/ogg/;
|
homepage = http://xiph.org/ogg/;
|
||||||
license = licenses.bsd3;
|
license = licenses.bsd3;
|
||||||
maintainers = [ maintainers.emery ];
|
maintainers = [ maintainers.emery ];
|
||||||
|
|
|
@ -36,14 +36,14 @@ in stdenv.mkDerivation {
|
||||||
'';
|
'';
|
||||||
|
|
||||||
NIX_LDFLAGS = ''
|
NIX_LDFLAGS = ''
|
||||||
-rpath ${zlib}/lib
|
-rpath ${zlib.out}/lib
|
||||||
-rpath ${curl}/lib
|
-rpath ${curl.out}/lib
|
||||||
-rpath ${libjpeg}/lib
|
-rpath ${libjpeg.out}/lib
|
||||||
-rpath ${libpng}/lib
|
-rpath ${libpng.out}/lib
|
||||||
-rpath ${libvorbis}/lib
|
-rpath ${libvorbis.out}/lib
|
||||||
-rpath ${libtheora}/lib
|
-rpath ${libtheora.out}/lib
|
||||||
-rpath ${libogg}/lib
|
-rpath ${libogg.out}/lib
|
||||||
-rpath ${libmodplug}/lib
|
-rpath ${libmodplug.out}/lib
|
||||||
'';
|
'';
|
||||||
|
|
||||||
buildPhase = ''
|
buildPhase = ''
|
||||||
|
|
|
@ -15,6 +15,7 @@ stdenv.mkDerivation rec {
|
||||||
installPhase = let
|
installPhase = let
|
||||||
gameDir = "$out/openarena-$version";
|
gameDir = "$out/openarena-$version";
|
||||||
interpreter = "$(< \"$NIX_CC/nix-support/dynamic-linker\")";
|
interpreter = "$(< \"$NIX_CC/nix-support/dynamic-linker\")";
|
||||||
|
libPath = stdenv.lib.makeLibraryPath [ SDL libogg libvorbis ];
|
||||||
in ''
|
in ''
|
||||||
mkdir -pv $out/bin
|
mkdir -pv $out/bin
|
||||||
cd $out
|
cd $out
|
||||||
|
@ -23,11 +24,11 @@ stdenv.mkDerivation rec {
|
||||||
${if stdenv.system == "x86_64-linux" then ''
|
${if stdenv.system == "x86_64-linux" then ''
|
||||||
patchelf --set-interpreter "${interpreter}" "${gameDir}/openarena.x86_64"
|
patchelf --set-interpreter "${interpreter}" "${gameDir}/openarena.x86_64"
|
||||||
makeWrapper "${gameDir}/openarena.x86_64" "$out/bin/openarena" \
|
makeWrapper "${gameDir}/openarena.x86_64" "$out/bin/openarena" \
|
||||||
--prefix LD_LIBRARY_PATH : "${SDL}/lib:${libogg}/lib:${libvorbis}/lib"
|
--prefix LD_LIBRARY_PATH : "${libPath}"
|
||||||
'' else ''
|
'' else ''
|
||||||
patchelf --set-interpreter "${interpreter}" "${gameDir}/openarena.i386"
|
patchelf --set-interpreter "${interpreter}" "${gameDir}/openarena.i386"
|
||||||
makeWrapper "${gameDir}/openarena.i386" "$out/bin/openarena" \
|
makeWrapper "${gameDir}/openarena.i386" "$out/bin/openarena" \
|
||||||
--prefix LD_LIBRARY_PATH : "${SDL}/lib:${libogg}/lib:${libvorbis}/lib"
|
--prefix LD_LIBRARY_PATH : "${libPath}"
|
||||||
''}
|
''}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue