forked from mirrors/nixpkgs
Merge pull request #207950 from wegank/libopenshot
libsForQt5.libopenshot-audio: unbreak on aarch64-darwin
This commit is contained in:
commit
a79e10a205
|
@ -1,6 +1,7 @@
|
|||
{ lib
|
||||
, stdenv
|
||||
, fetchFromGitHub
|
||||
, fetchpatch
|
||||
, alsa-lib
|
||||
, cmake
|
||||
, doxygen
|
||||
|
@ -28,6 +29,11 @@ stdenv.mkDerivation rec {
|
|||
sha256 = "sha256-XtwTZsj/L/sw/28E7Qr5UyghGlBFFXvbmZLGXBB8vg0=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
# https://forum.juce.com/t/juce-and-macos-11-arm/40285/24
|
||||
./undef-fpret-on-aarch64-darwin.patch
|
||||
];
|
||||
|
||||
nativeBuildInputs = [
|
||||
cmake
|
||||
doxygen
|
||||
|
@ -63,7 +69,5 @@ stdenv.mkDerivation rec {
|
|||
license = with licenses; gpl3Plus;
|
||||
maintainers = with maintainers; [ AndersonTorres ];
|
||||
platforms = with platforms; unix;
|
||||
# never built on aarch64-darwin since first introduction in nixpkgs
|
||||
broken = stdenv.isDarwin && stdenv.isAarch64;
|
||||
};
|
||||
}
|
||||
|
|
|
@ -35,8 +35,9 @@ stdenv.mkDerivation rec {
|
|||
export _REL_PYTHON_MODULE_PATH=$(toPythonPath $out)
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [
|
||||
nativeBuildInputs = lib.optionals stdenv.isLinux [
|
||||
alsa-lib
|
||||
] ++ [
|
||||
cmake
|
||||
doxygen
|
||||
pkg-config
|
||||
|
|
|
@ -0,0 +1,13 @@
|
|||
diff --git a/JuceLibraryCode/modules/juce_core/native/juce_osx_ObjCHelpers.h b/JuceLibraryCode/modules/juce_core/native/juce_osx_ObjCHelpers.h
|
||||
index 2593790..0b5983d 100644
|
||||
--- a/JuceLibraryCode/modules/juce_core/native/juce_osx_ObjCHelpers.h
|
||||
+++ b/JuceLibraryCode/modules/juce_core/native/juce_osx_ObjCHelpers.h
|
||||
@@ -209,7 +209,7 @@ static inline ReturnValue ObjCMsgSendSuper (struct objc_super* s, SEL sel, Param
|
||||
typedef id (*MsgSendSuperFn) (struct objc_super*, SEL, ...);
|
||||
static inline MsgSendSuperFn getMsgSendSuperFn() noexcept { return (MsgSendSuperFn) (void*) objc_msgSendSuper; }
|
||||
|
||||
-#if ! JUCE_IOS
|
||||
+#if JUCE_INTEL && ! JUCE_IOS
|
||||
typedef double (*MsgSendFPRetFn) (id, SEL op, ...);
|
||||
static inline MsgSendFPRetFn getMsgSendFPRetFn() noexcept { return (MsgSendFPRetFn) (void*) objc_msgSend_fpret; }
|
||||
#endif
|
Loading…
Reference in a new issue