Merge pull request #49768 from LnL7/darwin-no-cfprivate
darwin: don't include cf-private in framework dependencies
This commit is contained in:
@@ -1,15 +1,16 @@
|
||||
{ stdenv, lib, fetchurl, fetchpatch, pkgconfig, audiofile, libcap, libiconv
|
||||
, openglSupport ? false, libGL, libGLU
|
||||
, alsaSupport ? true, alsaLib
|
||||
, x11Support ? stdenv.hostPlatform == stdenv.buildPlatform, libXext, libICE, libXrandr
|
||||
, pulseaudioSupport ? true, libpulseaudio
|
||||
{ stdenv, config, libGLSupported, fetchurl, fetchpatch, pkgconfig, audiofile, libcap, libiconv
|
||||
, openglSupport ? libGLSupported, libGL, libGLU
|
||||
, alsaSupport ? stdenv.isLinux, alsaLib
|
||||
, x11Support ? !stdenv.isCygwin, libXext, libICE, libXrandr
|
||||
, pulseaudioSupport ? config.pulseaudio or stdenv.isLinux, libpulseaudio
|
||||
, OpenGL, CoreAudio, CoreServices, AudioUnit, Kernel, Cocoa
|
||||
, cf-private
|
||||
}:
|
||||
|
||||
# NOTE: When editing this expression see if the same change applies to
|
||||
# SDL2 expression too
|
||||
|
||||
with lib;
|
||||
with stdenv.lib;
|
||||
|
||||
assert !stdenv.isDarwin -> alsaSupport || pulseaudioSupport;
|
||||
assert openglSupport -> (stdenv.isDarwin || x11Support && libGL != null && libGLU != null);
|
||||
@@ -41,7 +42,11 @@ stdenv.mkDerivation rec {
|
||||
|
||||
buildInputs = [ ]
|
||||
++ optional (!stdenv.hostPlatform.isMinGW) audiofile
|
||||
++ optionals stdenv.isDarwin [ AudioUnit CoreAudio CoreServices Kernel OpenGL ];
|
||||
++ optionals stdenv.isDarwin [
|
||||
AudioUnit CoreAudio CoreServices Kernel OpenGL
|
||||
# Needed for NSDefaultRunLoopMode symbols.
|
||||
cf-private
|
||||
];
|
||||
|
||||
configureFlags = [
|
||||
"--disable-oss"
|
||||
@@ -109,7 +114,7 @@ stdenv.mkDerivation rec {
|
||||
postFixup = ''
|
||||
for lib in $out/lib/*.so* ; do
|
||||
if [[ -L "$lib" ]]; then
|
||||
patchelf --set-rpath "$(patchelf --print-rpath $lib):${lib.makeLibraryPath propagatedBuildInputs}" "$lib"
|
||||
patchelf --set-rpath "$(patchelf --print-rpath $lib):${makeLibraryPath propagatedBuildInputs}" "$lib"
|
||||
fi
|
||||
done
|
||||
'';
|
||||
|
||||
@@ -1,20 +1,20 @@
|
||||
{ stdenv, lib, fetchurl, pkgconfig, pruneLibtoolFiles
|
||||
, openglSupport ? false, libGL
|
||||
, alsaSupport ? true, alsaLib
|
||||
, x11Support ? true, libX11, xproto, libICE, libXi, libXScrnSaver, libXcursor, libXinerama, libXext, libXxf86vm, libXrandr
|
||||
, waylandSupport ? true, wayland, wayland-protocols, libxkbcommon
|
||||
, dbusSupport ? false, dbus
|
||||
{ stdenv, config, libGLSupported, fetchurl, pkgconfig, pruneLibtoolFiles
|
||||
, openglSupport ? libGLSupported, libGL
|
||||
, alsaSupport ? stdenv.isLinux, alsaLib
|
||||
, x11Support ? !stdenv.isCygwin, libX11, xproto, libICE, libXi, libXScrnSaver, libXcursor, libXinerama, libXext, libXxf86vm, libXrandr
|
||||
, waylandSupport ? stdenv.isLinux, wayland, wayland-protocols, libxkbcommon
|
||||
, dbusSupport ? stdenv.isLinux, dbus
|
||||
, udevSupport ? false, udev
|
||||
, ibusSupport ? false, ibus
|
||||
, pulseaudioSupport ? true, libpulseaudio
|
||||
, pulseaudioSupport ? config.pulseaudio or stdenv.isLinux, libpulseaudio
|
||||
, AudioUnit, Cocoa, CoreAudio, CoreServices, ForceFeedback, OpenGL
|
||||
, audiofile, libiconv
|
||||
, audiofile, cf-private, libiconv
|
||||
}:
|
||||
|
||||
# NOTE: When editing this expression see if the same change applies to
|
||||
# SDL expression too
|
||||
|
||||
with lib;
|
||||
with stdenv.lib;
|
||||
|
||||
assert !stdenv.isDarwin -> alsaSupport || pulseaudioSupport;
|
||||
assert openglSupport -> (stdenv.isDarwin || x11Support && libGL != null);
|
||||
@@ -54,7 +54,11 @@ stdenv.mkDerivation rec {
|
||||
buildInputs = [ audiofile libiconv ]
|
||||
++ dlopenBuildInputs
|
||||
++ optional ibusSupport ibus
|
||||
++ optionals stdenv.isDarwin [ AudioUnit Cocoa CoreAudio CoreServices ForceFeedback OpenGL ];
|
||||
++ optionals stdenv.isDarwin [
|
||||
AudioUnit Cocoa CoreAudio CoreServices ForceFeedback OpenGL
|
||||
# Needed for NSDefaultRunLoopMode symbols.
|
||||
cf-private
|
||||
];
|
||||
|
||||
# /build/SDL2-2.0.7/src/video/wayland/SDL_waylandevents.c:41:10: fatal error:
|
||||
# pointer-constraints-unstable-v1-client-protocol.h: No such file or directory
|
||||
|
||||
Reference in New Issue
Block a user