Accepting request 1134722 from home:gladiac:branches:graphics:darktable

Build with system libraw

OBS-URL: https://build.opensuse.org/request/show/1134722
OBS-URL: https://build.opensuse.org/package/show/graphics:darktable/darktable?expand=0&rev=69
This commit is contained in:
Andreas Schneider 2023-12-23 10:17:49 +00:00 committed by Git OBS Bridge
parent dcb2b542e5
commit d285f7c38a
2 changed files with 17 additions and 0 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Sat Dec 23 09:58:05 UTC 2023 - Andreas Schneider <asn@cryptomilk.org>
- Build with system libraw
-------------------------------------------------------------------
Sat Dec 23 09:32:45 UTC 2023 - Andreas Schneider <asn@cryptomilk.org>

View File

@ -72,6 +72,14 @@
%bcond_with libheif
%endif
%if 0%{?suse_version} >= 1550 || 0%{?fedora} >= 38
%bcond_without libraw
%global _use_system_libraw "ON"
%else
%bcond_with libraw
%global _use_system_libraw "ON"
%endif
%ifarch ppc64le
# The OpenCL kernels don't compile on ppc64le and if you get
# them compiled there are funny runtime issues.
@ -193,6 +201,9 @@ BuildRequires: pkgconfig(libheif)
%if %{with jxl}
BuildRequires: pkgconfig(libjxl) >= 0.7.0
%endif
%if %{with libraw}
BuildRequires: pkgconfig(libraw) >= 0.21
%endif
BuildRequires: pkgconfig(librsvg-2.0)
BuildRequires: pkgconfig(libsecret-1)
BuildRequires: pkgconfig(libwebp)
@ -299,6 +310,7 @@ rm -rf src/external/lua/
-DUSE_OPENMP="%{_use_openmp}" \\\
-DUSE_GMIC="%{_use_gmic}" \\\
-DUSE_AVIF="%{_use_avif}" \\\
-DDONT_USE_INTERNAL_LIBRAW="%{_use_system_libraw}" \\\
-DBUILD_NOISE_TOOLS=ON \\\
-DBUILD_CURVE_TOOLS=ON