mirror of
https://git.freebsd.org/ports.git
synced 2025-06-20 04:00:41 -04:00
Switch to active fork as the original author archived their repo and is no longer working on it. [1] The most notable changes are that the project has been ported to Qt6 and has added support for TagLib 2.x. The QT5 option has been renamed to QTMULTIMEDIA. Enable QTMULTIMEDIA for streaming support by default instead of VLC as vlc still uses Qt5 and pulls in many more unneeded dependencies. Disable audio CD support by default. It builds, but doesn't work, even in the previous version. It will take some more work to port the udisks2 backend of the internal trimmed-down copy of Solid to bsdisks. This is primarily an MPD frontend and optical media has generally fallen out of popularity, so this is a bit of a rainy day project. Pet portclippy(1) and portlint(1). Whitespace cleanup. PR: 279462 [1] Reported by: diizzy [1]
50 lines
1.6 KiB
CMake
50 lines
1.6 KiB
CMake
--- cmake/FindCDParanoia.cmake.orig 2024-05-30 23:46:53 UTC
|
|
+++ cmake/FindCDParanoia.cmake
|
|
@@ -43,10 +43,13 @@ 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)
|
|
- pkg_check_modules(PC_CDParanoia QUIET cdparanoia)
|
|
+ pkg_check_modules(PC_CDParanoia QUIET libcdio_paranoia)
|
|
+ pkg_check_modules(PC_CDDA QUIET libcdio_cdda)
|
|
endif(PKG_CONFIG_FOUND)
|
|
|
|
find_path(CDParanoia_PARANOIA_INCLUDE_DIR
|
|
@@ -56,7 +59,7 @@ find_path(CDParanoia_INTERFACE_INCLUDE_DIR
|
|
)
|
|
find_path(CDParanoia_INTERFACE_INCLUDE_DIR
|
|
NAMES cdda_interface.h
|
|
- PATHS ${PC_CDParanoia_INCLUDE_DIRS}
|
|
+ PATHS ${PC_CDDA_INCLUDE_DIRS}
|
|
PATH_SUFFIXES cdda
|
|
)
|
|
|
|
@@ -66,7 +69,7 @@ find_library(CDParanoia_INTERFACE_LIBRARY
|
|
)
|
|
find_library(CDParanoia_INTERFACE_LIBRARY
|
|
NAMES cdda_interface
|
|
- PATHS ${PC_CDParanoia_LIBRARY_DIRS}
|
|
+ PATHS ${PC_CDDA_LIBRARY_DIRS}
|
|
)
|
|
|
|
# Set version from PC if applicable.
|
|
@@ -96,6 +99,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 +122,4 @@ mark_as_advanced(
|
|
CDParanoia_INTERFACE_INCLUDE_DIR
|
|
CDParanoia_PARANOIA_LIBRARY
|
|
CDParanoia_INTERFACE_LIBRARY
|
|
-)
|
|
\ No newline at end of file
|
|
+)
|