diff options
Diffstat (limited to 'media-gfx/darktable')
-rw-r--r-- | media-gfx/darktable/darktable-2.4.0-r2.ebuild (renamed from media-gfx/darktable/darktable-2.4.0-r1.ebuild) | 3 | ||||
-rw-r--r-- | media-gfx/darktable/files/darktable-2.4.0-find-opencl.patch | 12 |
2 files changed, 14 insertions, 1 deletions
diff --git a/media-gfx/darktable/darktable-2.4.0-r1.ebuild b/media-gfx/darktable/darktable-2.4.0-r2.ebuild index e44570c9..a9ec874a 100644 --- a/media-gfx/darktable/darktable-2.4.0-r1.ebuild +++ b/media-gfx/darktable/darktable-2.4.0-r2.ebuild @@ -75,8 +75,9 @@ pkg_pretend() { } src_prepare() { + default use cpu_flags_x86_sse3 && append-flags -msse3 - + eapply "${FILESDIR}"/"${P}"-find-opencl.patch cmake-utils_src_prepare } diff --git a/media-gfx/darktable/files/darktable-2.4.0-find-opencl.patch b/media-gfx/darktable/files/darktable-2.4.0-find-opencl.patch new file mode 100644 index 00000000..0a692f93 --- /dev/null +++ b/media-gfx/darktable/files/darktable-2.4.0-find-opencl.patch @@ -0,0 +1,12 @@ +diff -Nur a/CMakeLists.txt b/CMakeLists.txt +--- a/CMakeLists.txt 2017-12-24 09:09:10.000000000 +0000 ++++ b/CMakeLists.txt 2017-12-25 20:42:40.998693994 +0000 +@@ -355,7 +355,7 @@ + message(STATUS "Found clang compiler - ${CLANG_OPENCL_COMPILER}") + + find_path(CLANG_OPENCL_INCLUDE_DIR opencl-c.h +- HINTS ${LLVM_INSTALL_PREFIX}/lib/clang ${LLVM_INSTALL_PREFIX}/lib64/clang ++ HINTS ${LLVM_INSTALL_PREFIX}/lib/clang ${LLVM_INSTALL_PREFIX}/lib64/clang /usr/lib/clang /usr/lib64/clang + PATH_SUFFIXES include ${LLVM_PACKAGE_VERSION}/include + NO_DEFAULT_PATH + ) |