Skip to content

Commit

Permalink
mpd: Requires C++17 support and SO_REUSEPORT with kernel >= 3.9
Browse files Browse the repository at this point in the history
  • Loading branch information
th0ma7 committed Mar 22, 2024
1 parent 754142a commit e77924e
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 14 deletions.
22 changes: 9 additions & 13 deletions cross/mpd/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,11 @@ PKG_DIST_SITE = https://github.com/MusicPlayerDaemon/MPD/archive
PKG_DIST_FILE = $(PKG_NAME)-$(PKG_VERS).$(PKG_EXT)
PKG_DIR = MPD-$(PKG_VERS)

# A compiler with support for C++14 language features is required.
# A compiler with support for C++17 language features is required.
UNSUPPORTED_ARCHS = $(ARMv5_ARCHS) $(ARMv7L_ARCHS) $(OLD_PPC_ARCHS)
REQUIRED_MIN_DSM = 7.0
# SO_REUSEPORT supported since Linux 3.9
UNSUPPORTED_ARCHS += $(i686_ARCHS)

OPTIONAL_DEPENDS = cross/libmad

Expand All @@ -32,21 +35,14 @@ DEPENDS += cross/opus
DEPENDS += cross/soxr
DEPENDS += cross/curl

OPTIONAL_DEPENDS = cross/boost_1.68 cross/boost_1.82
DEPENDS += cross/boost_1.82
BOOST_BUILD_PATH=$(WORK_DIR)/boost_1_82_0
BOOST_LIBRARIES += system
ENV += BOOST_INCLUDEDIR="$(BOOST_BUILD_PATH)/boost"
ENV += BOOST_LIBRARYDIR="$(BOOST_BUILD_PATH)/libs"

HOMEPAGE = https://www.musicpd.org/
COMMENT = Music Player Daemon (MPD) is a flexible, powerful, server-side application for playing music.
LICENSE = GPLv2

include ../../mk/spksrc.cross-meson.mk

ifeq ($(call version_lt, $(TC_GCC), 5),1)
DEPENDS += cross/boost_1.68
BOOST_BUILD_PATH=$(WORK_DIR)/boost_1_68_0
else
DEPENDS += cross/boost_1.82
BOOST_BUILD_PATH=$(WORK_DIR)/boost_1_82_0
endif
BOOST_LIBRARIES += system
ENV += BOOST_INCLUDEDIR="$(BOOST_BUILD_PATH)/boost"
ENV += BOOST_LIBRARYDIR="$(BOOST_BUILD_PATH)/libs"
5 changes: 4 additions & 1 deletion spk/mpd/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,11 @@ DSM_UI_DIR = app

DEPENDS = cross/$(SPK_NAME)

# A compiler with support for C++14 language features is required.
# A compiler with support for C++17 language features is required.
UNSUPPORTED_ARCHS = $(ARMv5_ARCHS) $(ARMv7L_ARCHS) $(OLD_PPC_ARCHS)
REQUIRED_MIN_DSM = 7.0
# SO_REUSEPORT supported since Linux 3.9
UNSUPPORTED_ARCHS += $(i686_ARCHS)

MAINTAINER = DigitalBox98
DESCRIPTION = Music Player Daemon \(MPD\) is a flexible, powerful, server-side application for playing music. Through plugins and libraries it can play a variety of sound files while being controlled by its network protocol.
Expand Down

0 comments on commit e77924e

Please sign in to comment.