mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-04 11:32:03 +00:00
fmod42416: fix upstream url, use provided Makefile
This commit is contained in:
parent
28f8ec1df6
commit
94a07ab3ae
|
@ -11,12 +11,12 @@ let
|
||||||
src =
|
src =
|
||||||
(if (bits == "64") then
|
(if (bits == "64") then
|
||||||
fetchurl {
|
fetchurl {
|
||||||
url = "http://www.fmod.org/download/fmodex/api/Linux/fmodapi42416linux64.tar.gz";
|
url = "http://zandronum.com/essentials/fmod/fmodapi42416linux64.tar.gz";
|
||||||
sha256 = "0hkwlzchzzgd7fanqznbv5bs53z2qy8iiv9l2y77l4sg1jwmlm6y";
|
sha256 = "0hkwlzchzzgd7fanqznbv5bs53z2qy8iiv9l2y77l4sg1jwmlm6y";
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
fetchurl {
|
fetchurl {
|
||||||
url = "http://www.fmod.org/download/fmodex/api/Linux/fmodapi42416linux.tar.gz";
|
url = "http://zandronum.com/essentials/fmod/fmodapi42416linux.tar.gz";
|
||||||
sha256 = "13diw3ax2slkr99mwyjyc62b8awc30k0z08cvkpk2p3i1j6f85m5";
|
sha256 = "13diw3ax2slkr99mwyjyc62b8awc30k0z08cvkpk2p3i1j6f85m5";
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
@ -28,23 +28,26 @@ stdenv.mkDerivation rec {
|
||||||
version = "4.24.16";
|
version = "4.24.16";
|
||||||
|
|
||||||
dontStrip = true;
|
dontStrip = true;
|
||||||
|
dontPatchELF = true;
|
||||||
|
|
||||||
|
makeFlags = [ "DESTLIBDIR=$(out)/lib" "DESTHDRDIR=$(out)/include" ];
|
||||||
|
|
||||||
buildPhase = "true";
|
buildPhase = "true";
|
||||||
installPhase = ''
|
|
||||||
mkdir -p $out/lib $out/include/fmodex
|
|
||||||
|
|
||||||
cd api/inc && cp * $out/include/fmodex && cd ../lib
|
preInstall = ''
|
||||||
cp libfmodex${bits}-${version}.so $out/lib/libfmodex.so
|
mkdir -p $out/lib
|
||||||
cp libfmodex${bits}L-${version}.so $out/lib/libfmodexL.so
|
|
||||||
|
|
||||||
${patchLib "$out/lib/libfmodex.so"}
|
|
||||||
${patchLib "$out/lib/libfmodexL.so"}
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = {
|
postInstall = ''
|
||||||
|
mv $out/lib/libfmodex${bits}-${version}.so $out/lib/libfmodex.so
|
||||||
|
mv $out/lib/libfmodexp${bits}-${version}.so $out/lib/libfmodexp.so
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = with stdenv.lib; {
|
||||||
description = "Programming library and toolkit for the creation and playback of interactive audio";
|
description = "Programming library and toolkit for the creation and playback of interactive audio";
|
||||||
homepage = "http://www.fmod.org/";
|
homepage = "http://www.fmod.org/";
|
||||||
license = stdenv.lib.licenses.unfreeRedistributable;
|
license = licenses.unfreeRedistributable;
|
||||||
platforms = stdenv.lib.platforms.linux;
|
platforms = platforms.linux;
|
||||||
maintainers = [ stdenv.lib.maintainers.lassulus ];
|
maintainers = [ stdenv.lib.maintainers.lassulus ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue