Merge pull request #184921 from wegank/rawtherapee-darwin

rawtherapee: add darwin support
This commit is contained in:
superherointj 2022-08-02 22:28:31 -03:00 committed by GitHub
commit af761d96e2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 23 additions and 4 deletions

View file

@ -1,6 +1,6 @@
{ lib, stdenv, fetchFromGitHub, pkg-config, cmake, pixman, libpthreadstubs, gtkmm3, libXau
, libXdmcp, lcms2, libiptcdata, libcanberra-gtk3, fftw, expat, pcre, libsigcxx, wrapGAppsHook
, lensfun, librsvg
, lensfun, librsvg, gtk-mac-integration
}:
stdenv.mkDerivation rec {
@ -17,11 +17,17 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ cmake pkg-config wrapGAppsHook ];
# This patch is upstream; remove it in 5.9.
patches = [ ./fix-6324.patch ];
patches = [ ./fix-6324.patch ]
# Disable upstream-enforced bundling on macOS.
++ lib.optionals stdenv.isDarwin [ ./do-not-bundle.patch ];
buildInputs = [
pixman libpthreadstubs gtkmm3 libXau libXdmcp
lcms2 libiptcdata libcanberra-gtk3 fftw expat pcre libsigcxx lensfun librsvg
lcms2 libiptcdata fftw expat pcre libsigcxx lensfun librsvg
] ++ lib.optionals stdenv.isLinux [
libcanberra-gtk3
] ++ lib.optionals stdenv.isDarwin [
gtk-mac-integration
];
cmakeFlags = [
@ -40,6 +46,6 @@ stdenv.mkDerivation rec {
homepage = "http://www.rawtherapee.com/";
license = lib.licenses.gpl3Plus;
maintainers = with lib.maintainers; [ jcumming mahe ];
platforms = with lib.platforms; linux;
platforms = with lib.platforms; unix;
};
}

View file

@ -0,0 +1,13 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 0a55ca6d5..68c059aa5 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -233,6 +233,6 @@ if(WIN32 OR APPLE)
endif()
- set(BUILD_BUNDLE ON FORCE)
+ set(BUILD_BUNDLE OFF)
endif()
if(NOT DEFINED BUNDLE_BASE_INSTALL_DIR)
- if(APPLE)
+ if(FALSE)