diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-09-20 11:23:36 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-09-20 11:23:36 +0100 |
commit | c17e7d2a8cc12551a02d28209cd2edbf078d5675 (patch) | |
tree | cde162c484c03f53827a78ec75a7f153d18933d3 /media-gfx/darktable/files/darktable-4.0.1_libs-deps-automagic.patch | |
parent | 295483480d7b8ba2fff987fdd32eaa36fe730ce4 (diff) |
gentoo auto-resync : 20:09:2022 - 11:23:36
Diffstat (limited to 'media-gfx/darktable/files/darktable-4.0.1_libs-deps-automagic.patch')
-rw-r--r-- | media-gfx/darktable/files/darktable-4.0.1_libs-deps-automagic.patch | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/media-gfx/darktable/files/darktable-4.0.1_libs-deps-automagic.patch b/media-gfx/darktable/files/darktable-4.0.1_libs-deps-automagic.patch new file mode 100644 index 000000000000..1ea06241f8d7 --- /dev/null +++ b/media-gfx/darktable/files/darktable-4.0.1_libs-deps-automagic.patch @@ -0,0 +1,37 @@ +--- a/src/libs/CMakeLists.txt ++++ b/src/libs/CMakeLists.txt +@@ -84,11 +84,14 @@ + add_library(timeline MODULE "tools/timeline.c") + add_library(image_infos MODULE "tools/image_infos.c") + ++if (USE_PORTMIDI) + find_path(PORTMIDI_INCLUDE_DIR NAMES portmidi.h + DOC "The Portmidi include directory" ++ REQUIRED + ) + find_library(PORTMIDI_LIBRARY NAMES portmidi + DOC "The Portmidi library" ++ REQUIRED + ) + if(PORTMIDI_INCLUDE_DIR) + add_definitions("-DHAVE_PORTMIDI") +@@ -97,8 +100,10 @@ + add_library(midi MODULE "tools/midi.c") + target_link_libraries (midi ${PORTMIDI_LIBRARY}) + endif() ++endif() + +-find_package(SDL2) ++if (USE_SDL2) ++find_package(SDL2 REQUIRED) + if(SDL2_FOUND) + add_definitions("-DHAVE_SDL") + set(MODULES ${MODULES} gamepad) +@@ -110,6 +115,7 @@ + target_link_libraries(gamepad ${SDL2_LIBRARIES}) + endif() + endif() ++endif() + + if(BUILD_BATTERY_INDICATOR) + add_library(battery_indicator MODULE "tools/battery_indicator.c") |