Merge pull request #13580 from matthewbauer/openal-darwin
openal darwin fixes
This commit is contained in:
commit
dfe69e2f4f
@ -1,6 +1,7 @@
|
||||
{ stdenv, fetchurl, cmake
|
||||
, alsaSupport ? true, alsaLib ? null
|
||||
, pulseSupport ? true, libpulseaudio ? null
|
||||
, alsaSupport ? !stdenv.isDarwin, alsaLib ? null
|
||||
, pulseSupport ? !stdenv.isDarwin, libpulseaudio ? null
|
||||
, CoreServices, AudioUnit, AudioToolbox
|
||||
}:
|
||||
|
||||
with stdenv.lib;
|
||||
@ -9,17 +10,18 @@ assert alsaSupport -> alsaLib != null;
|
||||
assert pulseSupport -> libpulseaudio != null;
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
version = "1.16.0";
|
||||
version = "1.17.2";
|
||||
name = "openal-soft-${version}";
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://kcat.strangesoft.net/openal-releases/${name}.tar.bz2";
|
||||
sha256 = "0pqdykdclycfnk66v166srjrry936y39d1dz9wl92qz27wqwsg9g";
|
||||
sha256 = "051k5fy8pk4fd9ha3qaqcv08xwbks09xl5qs4ijqq2qz5xaghhd3";
|
||||
};
|
||||
|
||||
buildInputs = [ cmake ]
|
||||
++ optional alsaSupport alsaLib
|
||||
++ optional pulseSupport libpulseaudio;
|
||||
++ optional pulseSupport libpulseaudio
|
||||
++ optional stdenv.isDarwin [ CoreServices AudioUnit AudioToolbox ];
|
||||
|
||||
NIX_LDFLAGS = []
|
||||
++ optional alsaSupport "-lasound"
|
||||
@ -30,5 +32,6 @@ stdenv.mkDerivation rec {
|
||||
homepage = http://kcat.strangesoft.net/openal.html;
|
||||
license = licenses.lgpl2;
|
||||
maintainers = with maintainers; [ftrvxmtrx];
|
||||
platforms = platforms.unix;
|
||||
};
|
||||
}
|
||||
|
@ -8244,7 +8244,9 @@ let
|
||||
oniguruma = callPackage ../development/libraries/oniguruma { };
|
||||
|
||||
openal = openalSoft;
|
||||
openalSoft = callPackage ../development/libraries/openal-soft { };
|
||||
openalSoft = callPackage ../development/libraries/openal-soft {
|
||||
inherit (darwin.apple_sdk.frameworks) CoreServices AudioUnit AudioToolbox;
|
||||
};
|
||||
|
||||
openbabel = callPackage ../development/libraries/openbabel { };
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user