Skip to content

Commit

Permalink
audio/strawberry: Update to 1.0.20
Browse files Browse the repository at this point in the history
Version 1.0.20 is a hotfix release on top of 1.0.19.

Add EBUR128 option for loudness normalization analysis.

Switch default flavor to qt6. Upstream has recommended building against
Qt6 whenever possible for 18 months.

https://github.com/strawberrymusicplayer/strawberry/releases/tag/1.0.20
https://github.com/strawberrymusicplayer/strawberry/releases/tag/1.0.19
  • Loading branch information
BSDKaffee committed Sep 25, 2023
1 parent 3bb9a0a commit 384aeb3
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 20 deletions.
28 changes: 17 additions & 11 deletions audio/strawberry/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
PORTNAME= strawberry
DISTVERSION= 1.0.18
PORTREVISION= 1
DISTVERSION= 1.0.20
CATEGORIES= audio
MASTER_SITES= https://github.com/strawberrymusicplayer/${PORTNAME}/releases/download/${DISTVERSION}/ \
https://files.jkvinge.net/packages/strawberry/
Expand All @@ -14,23 +13,25 @@ LICENSE= GPLv3
LICENSE_FILE= ${WRKSRC}/COPYING

BUILD_DEPENDS= boost-libs>0:devel/boost-libs
LIB_DEPENDS= libgnutls.so:security/gnutls \
libprotobuf.so:devel/protobuf \
LIB_DEPENDS= libprotobuf.so:devel/protobuf \
libtag.so:audio/taglib

FLAVORS= qt5 qt6
FLAVORS= qt6 qt5
FLAVOR?= ${FLAVORS:[1]}
qt5_CONFLICTS_INSTALL= strawberry strawberry-qt6
qt6_CONFLICTS_INSTALL= strawberry strawberry-qt5

USES= cmake compiler:c++17-lang desktop-file-utils gettext-runtime \
gnome pkgconfig qt:${FLAVOR:S/qt//} sqlite tar:xz xorg
gl gnome pkgconfig qt:${FLAVOR:S/qt//} sqlite tar:xz xorg

USE_GNOME= glib20
_USE_QT5= concurrent core dbus gui network sql sql-sqlite3:run widgets \
_USE_GL_qt5= #
_USE_GL_qt6= opengl
USE_GL= ${_USE_GL_${FLAVOR}}
_USE_QT_qt5= concurrent core dbus gui network sql sql-sqlite3:run widgets \
x11extras buildtools:build linguisttools:build qmake:build
_USE_QT6= base sqldriver-sqlite:run tools:build
USE_QT= ${_USE_QT${FLAVOR:S/qt//}}
_USE_QT_qt6= base sqldriver-sqlite:run tools:build
USE_QT= ${_USE_QT_${FLAVOR}}
USE_XORG= ice sm x11 xcb xext

CMAKE_ON= BUILD_WITH_${FLAVOR:tu}
Expand All @@ -43,8 +44,8 @@ OPTIONS_MULTI_BACKEND= GSTREAMER VLC
OPTIONS_MULTI_SOUND= ALSA PULSEAUDIO
OPTIONS_SINGLE= UNICODE
OPTIONS_SINGLE_UNICODE= ICONV ICU
OPTIONS_DEFINE= CDIO IPOD MOODBAR MTP MUSICBRAINZ NLS TEST
OPTIONS_DEFAULT= ALSA GSTREAMER ICU MOODBAR MUSICBRAINZ
OPTIONS_DEFINE= CDIO EBUR128 IPOD MOODBAR MTP MUSICBRAINZ NLS TEST
OPTIONS_DEFAULT= ALSA EBUR128 GSTREAMER ICU MOODBAR MUSICBRAINZ
OPTIONS_SUB= yes

BACKEND_DESC= Playback engine
Expand All @@ -60,6 +61,11 @@ CDIO_LIB_DEPENDS= libcdio.so:sysutils/libcdio
CDIO_CMAKE_BOOL= ENABLE_AUDIOCD
CDIO_IMPLIES= GSTREAMER

EBUR128_DESC= EBU R 128 loudness normalization
EBUR128_USES= ebur128
EBUR128_CMAKE_BOOL= ENABLE_EBUR128
EBUR128_IMPLIES= GSTREAMER

GSTREAMER_USES= gstreamer
GSTREAMER_CMAKE_BOOL= ENABLE_GSTREAMER

Expand Down
6 changes: 3 additions & 3 deletions audio/strawberry/distinfo
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
TIMESTAMP = 1688332466
SHA256 (strawberry-1.0.18.tar.xz) = 8687463b3c5c6d4344ab295ed0946b56d279b7e45875eb4fcca521ca1218c860
SIZE (strawberry-1.0.18.tar.xz) = 11241608
TIMESTAMP = 1695601826
SHA256 (strawberry-1.0.20.tar.xz) = e27afd4b70cdbb1c88af868cafc3abcb526c825c53e413df326f008322413194
SIZE (strawberry-1.0.20.tar.xz) = 11234412
12 changes: 6 additions & 6 deletions audio/strawberry/files/patch-CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@ Find OPTIONAL_COMPONENTS seperately. When the REQUIRED keyword is used,
Qt5Config.cmake handles all components as required causing failure if
optional components are missing.

--- CMakeLists.txt.orig 2022-09-18 23:50:52 UTC
--- CMakeLists.txt.orig 2023-09-19 20:48:15 UTC
+++ CMakeLists.txt
@@ -207,7 +207,8 @@ endif()
list(APPEND QT_OPTIONAL_COMPONENTS X11Extras)
@@ -195,7 +195,8 @@ endif()
list(APPEND QT_COMPONENTS X11Extras)
endif()

-find_package(Qt${QT_VERSION_MAJOR} ${QT_MIN_VERSION} REQUIRED COMPONENTS ${QT_COMPONENTS} OPTIONAL_COMPONENTS ${QT_OPTIONAL_COMPONENTS})
-find_package(Qt${QT_VERSION_MAJOR} ${QT_MIN_VERSION} COMPONENTS ${QT_COMPONENTS} REQUIRED OPTIONAL_COMPONENTS ${QT_OPTIONAL_COMPONENTS})
+find_package(Qt${QT_VERSION_MAJOR} ${QT_MIN_VERSION} REQUIRED COMPONENTS ${QT_COMPONENTS})
+find_package(Qt${QT_VERSION_MAJOR} ${QT_MIN_VERSION} OPTIONAL_COMPONENTS ${QT_OPTIONAL_COMPONENTS})

set(QtCore_LIBRARIES Qt${QT_VERSION_MAJOR}::Core)
set(QtConcurrent_LIBRARIES Qt${QT_VERSION_MAJOR}::Concurrent)
if(Qt${QT_VERSION_MAJOR}DBus_FOUND)
get_target_property(QT_DBUSXML2CPP_EXECUTABLE Qt${QT_VERSION_MAJOR}::qdbusxml2cpp LOCATION)

0 comments on commit 384aeb3

Please sign in to comment.