gentoo-ebuilds/media-sound/cantata/files/cantata-3.3.0-cdparanoia.patch
Nicolas PARLANT 2edede5d41
media-sound/cantata: add 3.3.0, qt6 fork
switch to gh-fork nullobsi as initial CDrummond is archived

plocales removed

patches :
* use KF6::solid instead of 'lite-vendored' (so unkeyword ~ppc)
* fix cdparanoia detection

useflags :
* rm cdio. As upstream, use cdda for cdioparanoia with cdparanoia as fallback
* add +taglib as it's required for almost all other useflags

mentions :
* taglib-2.0 is required by upstream, but package may still be built
  with taglib-1.13. Nonetheless, I don't see the real issue as
  there is no obstacle to taglib2's stabilization.
* libvlc has been removed from useflags in the past. I didn’t add it as
  an alternative of qtmultimedia for playing stream.
* breeze or oxygen icons are not strictly required. removed from rdep.

Bug: https://bugs.gentoo.org/927073
Signed-off-by: Nicolas PARLANT <nicolas.parlant@parhuet.fr>
Closes: https://github.com/gentoo/gentoo/pull/40475
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2025-02-08 09:17:39 +01:00

29 lines
989 B
Diff

https://github.com/nullobsi/cantata/pull/51.patch
diff --git a/cmake/FindCDParanoia.cmake b/cmake/FindCDParanoia.cmake
index c5eaf4a7..d145d78c 100644
--- a/cmake/FindCDParanoia.cmake
+++ b/cmake/FindCDParanoia.cmake
@@ -43,6 +43,8 @@ The following cache variables may also be set:
The directory containing ``cdda_interface.h``.
#]===]
+include(CheckCSourceCompiles)
+
# First use PKG-Config as a starting point.
find_package(PkgConfig)
if(PKG_CONFIG_FOUND)
@@ -96,6 +98,7 @@ if(CDParanoia_FOUND)
)
endif ()
if(NOT TARGET CDDA::Interface)
+ add_library(CDDA::Interface UNKNOWN IMPORTED)
set_target_properties(CDDA::Interface PROPERTIES
IMPORTED_LOCATION "${CDParanoia_INTERFACE_LIBRARY}"
INTERFACE_COMPILE_OPTIONS "${PC_CDParanoia_CFLAGS_OTHER}"
@@ -118,4 +121,4 @@ mark_as_advanced(
CDParanoia_INTERFACE_INCLUDE_DIR
CDParanoia_PARANOIA_LIBRARY
CDParanoia_INTERFACE_LIBRARY
-)
\ No newline at end of file
+)