initial buildroot for linux 5.15
This commit is contained in:
@@ -0,0 +1,39 @@
|
||||
From cb190801706da046823c74f89472af83ff947ce1 Mon Sep 17 00:00:00 2001
|
||||
From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
|
||||
Date: Sat, 17 Aug 2019 22:25:06 +0200
|
||||
Subject: [PATCH] src/event/meson.build: add atomic dependency for sparc
|
||||
|
||||
Linking with libatomic is needed on sparc otherwise build fails on:
|
||||
/usr/lfs/v0/rc-buildroot-test/scripts/instance-0/output/host/opt/ext-toolchain/bin/../lib/gcc/sparc-buildroot-linux-uclibc/7.4.0/../../../../sparc-buildroot-linux-uclibc/bin/ld: src/event/libevent.a(MaskMonitor.cxx.o): undefined reference to symbol '__atomic_fetch_or_4@@LIBATOMIC_1.0'
|
||||
|
||||
Fixes:
|
||||
- http://autobuild.buildroot.org/results/7a9fdb7e323892fb6ed85a2441054303e889c089
|
||||
|
||||
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
|
||||
[Upstream status: not sent (the same kind of patch for ncmpc was
|
||||
refused: https://github.com/MusicPlayerDaemon/ncmpc/pull/45)]
|
||||
---
|
||||
src/event/meson.build | 4 ++++
|
||||
1 file changed, 4 insertions(+)
|
||||
|
||||
diff --git a/src/event/meson.build b/src/event/meson.build
|
||||
index bc13bbcd2..88370c03a 100644
|
||||
--- a/src/event/meson.build
|
||||
+++ b/src/event/meson.build
|
||||
@@ -21,9 +21,13 @@ event = static_library(
|
||||
],
|
||||
)
|
||||
|
||||
+# Needed on sparc
|
||||
+atomic_dep = c_compiler.find_library('atomic', required: false)
|
||||
+
|
||||
event_dep = declare_dependency(
|
||||
link_with: event,
|
||||
dependencies: [
|
||||
+ atomic_dep,
|
||||
thread_dep,
|
||||
system_dep,
|
||||
boost_dep,
|
||||
--
|
||||
2.20.1
|
||||
|
||||
@@ -0,0 +1,400 @@
|
||||
menuconfig BR2_PACKAGE_MPD
|
||||
bool "mpd"
|
||||
depends on BR2_INSTALL_LIBSTDCPP
|
||||
depends on BR2_USE_WCHAR # flac
|
||||
depends on BR2_TOOLCHAIN_HAS_THREADS
|
||||
depends on BR2_USE_MMU # fork
|
||||
depends on BR2_TOOLCHAIN_HAS_ATOMIC
|
||||
depends on BR2_TOOLCHAIN_GCC_AT_LEAST_8 # C++17
|
||||
depends on BR2_HOST_GCC_AT_LEAST_8 # C++17
|
||||
select BR2_PACKAGE_BOOST
|
||||
select BR2_PACKAGE_LIBICONV if !BR2_ENABLE_LOCALE
|
||||
help
|
||||
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.
|
||||
|
||||
http://www.musicpd.org
|
||||
|
||||
if BR2_PACKAGE_MPD
|
||||
|
||||
comment "Archive plugins"
|
||||
|
||||
config BR2_PACKAGE_MPD_BZIP2
|
||||
bool "bzip2"
|
||||
select BR2_PACKAGE_BZIP2
|
||||
help
|
||||
Enable bzip2 archive support.
|
||||
|
||||
config BR2_PACKAGE_MPD_SQLITE
|
||||
bool "sqlite"
|
||||
select BR2_PACKAGE_SQLITE
|
||||
help
|
||||
Enable sqlite database support.
|
||||
If you don't use sqlite it will use an ASCII database.
|
||||
|
||||
config BR2_PACKAGE_MPD_ZZIP
|
||||
bool "zzip"
|
||||
select BR2_PACKAGE_ZZIPLIB
|
||||
help
|
||||
Enable ZIP archive support.
|
||||
|
||||
comment "Commercial services"
|
||||
|
||||
config BR2_PACKAGE_MPD_QOBUZ
|
||||
bool "qobuz"
|
||||
depends on BR2_PACKAGE_LIBGPG_ERROR_ARCH_SUPPORTS
|
||||
select BR2_PACKAGE_MPD_CURL
|
||||
select BR2_PACKAGE_LIBGCRYPT
|
||||
select BR2_PACKAGE_YAJL
|
||||
help
|
||||
Play songs from the commercial streaming service Qobuz.
|
||||
|
||||
config BR2_PACKAGE_MPD_SOUNDCLOUD
|
||||
bool "soundcloud"
|
||||
select BR2_PACKAGE_MPD_CURL
|
||||
select BR2_PACKAGE_YAJL
|
||||
help
|
||||
Enable soundcloud.com playlist support.
|
||||
|
||||
comment "Converter plugins"
|
||||
|
||||
config BR2_PACKAGE_MPD_LIBSAMPLERATE
|
||||
bool "libsamplerate"
|
||||
select BR2_PACKAGE_LIBSAMPLERATE
|
||||
help
|
||||
Enable libsamplerate input support.
|
||||
Select this for software sample rate conversion.
|
||||
|
||||
config BR2_PACKAGE_MPD_LIBSOXR
|
||||
bool "libsoxr"
|
||||
select BR2_PACKAGE_LIBSOXR
|
||||
help
|
||||
Enable libsoxr resampler support.
|
||||
The SoX Resampler library performs software sample-rate
|
||||
conversion.
|
||||
|
||||
comment "Decoder plugins"
|
||||
|
||||
config BR2_PACKAGE_MPD_DSD
|
||||
bool "dsd"
|
||||
help
|
||||
Enable Digital Speech Decoder (DSD) support to play audio
|
||||
files encoded in a digital speech format.
|
||||
|
||||
config BR2_PACKAGE_MPD_FAAD2
|
||||
bool "faad2"
|
||||
select BR2_PACKAGE_FAAD2
|
||||
help
|
||||
Enable faad2 input support.
|
||||
Select this if you want to play back MP4/AAC files.
|
||||
|
||||
config BR2_PACKAGE_MPD_FFMPEG
|
||||
bool "ffmpeg"
|
||||
depends on BR2_PACKAGE_FFMPEG_ARCH_SUPPORTS
|
||||
select BR2_PACKAGE_FFMPEG
|
||||
help
|
||||
Enable ffmpeg input support.
|
||||
Select this if you want to play back files supported by
|
||||
ffmpeg.
|
||||
|
||||
config BR2_PACKAGE_MPD_FLAC
|
||||
bool "flac"
|
||||
select BR2_PACKAGE_FLAC
|
||||
help
|
||||
Enable flac input/streaming support.
|
||||
Select this if you want to play back FLAC files.
|
||||
|
||||
config BR2_PACKAGE_MPD_FLUIDSYNTH
|
||||
bool "fluidsynth"
|
||||
depends on !BR2_STATIC_LIBS
|
||||
select BR2_PACKAGE_FLUIDSYNTH
|
||||
help
|
||||
Enable fluidsynth MIDI decoder support.
|
||||
|
||||
comment "fluidsynth support needs a toolchain w/ dynamic library"
|
||||
depends on BR2_STATIC_LIBS
|
||||
|
||||
config BR2_PACKAGE_MPD_LIBSNDFILE
|
||||
bool "libsndfile"
|
||||
select BR2_PACKAGE_LIBSNDFILE
|
||||
help
|
||||
Enable libsndfile input/streaming support.
|
||||
Select this if you want to play back WAV files.
|
||||
|
||||
config BR2_PACKAGE_MPD_MAD
|
||||
bool "mad"
|
||||
default y
|
||||
select BR2_PACKAGE_LIBID3TAG
|
||||
select BR2_PACKAGE_LIBMAD
|
||||
help
|
||||
Enable mad input support.
|
||||
Select this if you want to play back MP3 files.
|
||||
|
||||
config BR2_PACKAGE_MPD_MODPLUG
|
||||
bool "modplug"
|
||||
select BR2_PACKAGE_LIBMODPLUG
|
||||
help
|
||||
Enable Modplug decoder support.
|
||||
|
||||
config BR2_PACKAGE_MPD_MPG123
|
||||
bool "mpg123"
|
||||
select BR2_PACKAGE_LIBID3TAG
|
||||
select BR2_PACKAGE_MPG123
|
||||
help
|
||||
Enable mpg123 input support.
|
||||
Select this if you want to play back MP3 files.
|
||||
|
||||
config BR2_PACKAGE_MPD_MUSEPACK
|
||||
bool "musepack"
|
||||
select BR2_PACKAGE_LIBCUEFILE
|
||||
select BR2_PACKAGE_LIBREPLAYGAIN
|
||||
select BR2_PACKAGE_MUSEPACK
|
||||
help
|
||||
Enable musepack input support.
|
||||
Select this if you want to play back MPC files.
|
||||
|
||||
config BR2_PACKAGE_MPD_OPUS
|
||||
bool "opus"
|
||||
select BR2_PACKAGE_OPUS
|
||||
select BR2_PACKAGE_LIBOGG
|
||||
help
|
||||
Enable opus input support.
|
||||
Select this if you want to play back OPUS encoded files.
|
||||
|
||||
config BR2_PACKAGE_MPD_SIDPLAY
|
||||
bool "sidplay"
|
||||
select BR2_PACKAGE_LIBSIDPLAY2
|
||||
help
|
||||
Enable C64 SID support.
|
||||
|
||||
config BR2_PACKAGE_MPD_TREMOR
|
||||
bool "tremor"
|
||||
depends on !BR2_PACKAGE_MPD_VORBIS
|
||||
select BR2_PACKAGE_LIBOGG
|
||||
select BR2_PACKAGE_TREMOR
|
||||
help
|
||||
Enable vorbis input support.
|
||||
Select this if you want to play back OGG files on softfloat
|
||||
targets.
|
||||
|
||||
config BR2_PACKAGE_MPD_VORBIS
|
||||
bool "vorbis"
|
||||
select BR2_PACKAGE_LIBOGG
|
||||
select BR2_PACKAGE_LIBVORBIS
|
||||
help
|
||||
Enable vorbis input/streaming support.
|
||||
Select this if you want to play back OGG files on hardfloat
|
||||
targets.
|
||||
|
||||
config BR2_PACKAGE_MPD_WAVPACK
|
||||
bool "wavpack"
|
||||
select BR2_PACKAGE_WAVPACK
|
||||
help
|
||||
Enable wavpack input support.
|
||||
Select this if you want to play back WV files.
|
||||
|
||||
comment "Encoder plugins"
|
||||
|
||||
config BR2_PACKAGE_MPD_LAME
|
||||
bool "lame"
|
||||
select BR2_PACKAGE_LAME
|
||||
help
|
||||
Enable lame (mp3) encoding support.
|
||||
|
||||
config BR2_PACKAGE_MPD_TWOLAME
|
||||
bool "twolame"
|
||||
select BR2_PACKAGE_TWOLAME
|
||||
help
|
||||
Enable TwoLAME mp2 encoding.
|
||||
|
||||
comment "Input plugins"
|
||||
|
||||
config BR2_PACKAGE_MPD_CDIO_PARANOIA
|
||||
bool "cdio-paranoia"
|
||||
select BR2_PACKAGE_LIBCDIO_PARANOIA
|
||||
help
|
||||
Enable cdio-paranoia support.
|
||||
|
||||
config BR2_PACKAGE_MPD_CURL
|
||||
bool "curl"
|
||||
select BR2_PACKAGE_LIBCURL
|
||||
help
|
||||
Enable curl streaming (http) support.
|
||||
|
||||
config BR2_PACKAGE_MPD_LIBMMS
|
||||
bool "mms"
|
||||
select BR2_PACKAGE_LIBMMS
|
||||
help
|
||||
Enable MMS support.
|
||||
|
||||
config BR2_PACKAGE_MPD_LIBNFS
|
||||
bool "nfs"
|
||||
# libnfs -> libtirpc
|
||||
depends on BR2_TOOLCHAIN_HAS_NATIVE_RPC || BR2_TOOLCHAIN_HAS_THREADS
|
||||
select BR2_PACKAGE_LIBNFS
|
||||
help
|
||||
Enable Network File System (NFS) support.
|
||||
|
||||
comment "nfs support needs a toolchain w/ threads support"
|
||||
depends on !(BR2_TOOLCHAIN_HAS_THREADS || BR2_TOOLCHAIN_HAS_NATIVE_RPC)
|
||||
|
||||
comment "samba support needs a glibc toolchain w/ dynamic library, RPC"
|
||||
depends on !BR2_nios2
|
||||
depends on !BR2_TOOLCHAIN_USES_GLIBC || BR2_STATIC_LIBS || \
|
||||
!BR2_TOOLCHAIN_HAS_NATIVE_RPC
|
||||
|
||||
config BR2_PACKAGE_MPD_LIBSMBCLIENT
|
||||
bool "samba"
|
||||
depends on !BR2_nios2 # samba
|
||||
depends on BR2_TOOLCHAIN_USES_GLIBC
|
||||
depends on !BR2_STATIC_LIBS
|
||||
depends on BR2_TOOLCHAIN_HAS_NATIVE_RPC
|
||||
depends on BR2_TOOLCHAIN_HAS_SYNC_4
|
||||
select BR2_PACKAGE_SAMBA4
|
||||
help
|
||||
Enable Samba support.
|
||||
|
||||
comment "Output plugins"
|
||||
|
||||
config BR2_PACKAGE_MPD_ALSA
|
||||
bool "alsa"
|
||||
default y
|
||||
select BR2_PACKAGE_ALSA_LIB
|
||||
select BR2_PACKAGE_ALSA_LIB_PCM
|
||||
select BR2_PACKAGE_ALSA_LIB_MIXER
|
||||
help
|
||||
Enable alsa output support.
|
||||
|
||||
config BR2_PACKAGE_MPD_AO
|
||||
bool "ao"
|
||||
select BR2_PACKAGE_LIBAO
|
||||
help
|
||||
Enable libao output support.
|
||||
|
||||
config BR2_PACKAGE_MPD_HTTPD_OUTPUT
|
||||
bool "httpd output"
|
||||
help
|
||||
Enable httpd output support.
|
||||
|
||||
config BR2_PACKAGE_MPD_JACK2
|
||||
bool "jack2"
|
||||
depends on !BR2_STATIC_LIBS # jack2
|
||||
depends on BR2_TOOLCHAIN_HAS_SYNC_4
|
||||
select BR2_PACKAGE_JACK2
|
||||
help
|
||||
Enable jack output support.
|
||||
|
||||
comment "jack support needs a toolchain w/ dynamic library"
|
||||
depends on BR2_TOOLCHAIN_HAS_SYNC_4
|
||||
depends on BR2_STATIC_LIBS
|
||||
|
||||
config BR2_PACKAGE_MPD_OPENAL
|
||||
bool "openal"
|
||||
depends on BR2_PACKAGE_OPENAL_ARCH_SUPPORTS
|
||||
depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL
|
||||
select BR2_PACKAGE_OPENAL
|
||||
help
|
||||
Enable OpenAL output support.
|
||||
|
||||
comment "openal support needs a toolchain w/ NPTL"
|
||||
depends on BR2_PACKAGE_OPENAL_ARCH_SUPPORTS
|
||||
depends on !BR2_TOOLCHAIN_HAS_THREADS_NPTL
|
||||
|
||||
config BR2_PACKAGE_MPD_OSS
|
||||
bool "oss"
|
||||
help
|
||||
Enable OSS (Open Sound System) output support.
|
||||
|
||||
config BR2_PACKAGE_MPD_PULSEAUDIO
|
||||
bool "pulseaudio"
|
||||
depends on BR2_PACKAGE_PULSEAUDIO_HAS_ATOMIC
|
||||
depends on BR2_USE_WCHAR
|
||||
depends on BR2_TOOLCHAIN_HAS_THREADS
|
||||
depends on !BR2_STATIC_LIBS
|
||||
depends on BR2_USE_MMU
|
||||
select BR2_PACKAGE_PULSEAUDIO
|
||||
help
|
||||
Enable pulseaudio output support.
|
||||
|
||||
comment "pulseaudio support needs a toolchain w/ threads, wchar, dynamic library"
|
||||
depends on BR2_USE_MMU
|
||||
depends on BR2_PACKAGE_PULSEAUDIO_HAS_ATOMIC
|
||||
depends on !BR2_TOOLCHAIN_HAS_THREADS || BR2_STATIC_LIBS || !BR2_USE_WCHAR
|
||||
|
||||
config BR2_PACKAGE_MPD_SHOUTCAST
|
||||
bool "shoutcast"
|
||||
select BR2_PACKAGE_LIBSHOUT
|
||||
help
|
||||
Enable shoutcast streaming output support.
|
||||
|
||||
comment "Miscellaneous plugins"
|
||||
|
||||
config BR2_PACKAGE_MPD_AVAHI_SUPPORT
|
||||
bool "avahi (zeroconf) support"
|
||||
depends on !BR2_STATIC_LIBS # avahi
|
||||
select BR2_PACKAGE_AVAHI
|
||||
select BR2_PACKAGE_AVAHI_DAEMON
|
||||
select BR2_PACKAGE_AVAHI_LIBDNSSD_COMPATIBILITY
|
||||
help
|
||||
Enable Avahi (zeroconf) support.
|
||||
Select this for multicast DNS/DNS-SD service discovery
|
||||
support. This allows MPD to publish service information on a
|
||||
local network.
|
||||
|
||||
comment "avahi support needs a toolchain w/ dynamic library"
|
||||
depends on BR2_STATIC_LIBS
|
||||
|
||||
config BR2_PACKAGE_MPD_LIBMPDCLIENT
|
||||
bool "libmpdclient"
|
||||
select BR2_PACKAGE_LIBMPDCLIENT
|
||||
help
|
||||
Enable libmpdclient support.
|
||||
|
||||
config BR2_PACKAGE_MPD_NEIGHBOR_DISCOVERY_SUPPORT
|
||||
bool "neighbor discovery support"
|
||||
depends on BR2_PACKAGE_MPD_LIBSMBCLIENT || BR2_PACKAGE_MPD_UPNP
|
||||
help
|
||||
Enable support for neighbor discovery.
|
||||
This option can be used in conjunction with the smbclient
|
||||
plugin to provide a list of SMB/CIFS servers or with the
|
||||
UPnP plugin to provide a list of UPnP servers on the local
|
||||
network. The neighbor plugin needs configuration in
|
||||
mpd.conf. For further information take a look at the MPD
|
||||
documentation.
|
||||
|
||||
config BR2_PACKAGE_MPD_TCP
|
||||
bool "tcp sockets"
|
||||
default y
|
||||
help
|
||||
Enable MPD to listen on tcp sockets.
|
||||
|
||||
You want this on if MPD and the client(s) work
|
||||
on different machines (the usual scenario).
|
||||
|
||||
config BR2_PACKAGE_MPD_UPNP
|
||||
bool "UPnP"
|
||||
select BR2_PACKAGE_EXPAT
|
||||
select BR2_PACKAGE_LIBUPNP
|
||||
select BR2_PACKAGE_MPD_CURL
|
||||
help
|
||||
Enable MPD UPnP client support.
|
||||
|
||||
comment "Tag plugins"
|
||||
|
||||
config BR2_PACKAGE_MPD_ID3TAG
|
||||
bool "id3tag"
|
||||
select BR2_PACKAGE_LIBID3TAG
|
||||
help
|
||||
Enable ID3 support.
|
||||
|
||||
endif
|
||||
|
||||
comment "mpd needs a toolchain w/ C++, threads, wchar, gcc >= 7, host gcc >= 7"
|
||||
depends on BR2_USE_MMU
|
||||
depends on BR2_TOOLCHAIN_HAS_ATOMIC
|
||||
depends on !BR2_INSTALL_LIBSTDCPP || !BR2_USE_WCHAR || \
|
||||
!BR2_TOOLCHAIN_HAS_THREADS || \
|
||||
!BR2_TOOLCHAIN_GCC_AT_LEAST_8 || \
|
||||
!BR2_HOST_GCC_AT_LEAST_8
|
||||
@@ -0,0 +1,33 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Sanity checks
|
||||
test -f /etc/mpd.conf || exit 0
|
||||
|
||||
start() {
|
||||
printf "Starting mpd: "
|
||||
start-stop-daemon --start --quiet --background --exec /usr/bin/mpd \
|
||||
&& echo "OK" || echo "FAIL"
|
||||
}
|
||||
|
||||
stop() {
|
||||
printf "Stopping mpd: "
|
||||
start-stop-daemon --stop --quiet --pidfile /var/run/mpd.pid \
|
||||
&& echo "OK" || echo "FAIL"
|
||||
}
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
start
|
||||
;;
|
||||
stop)
|
||||
stop
|
||||
;;
|
||||
restart|reload)
|
||||
stop
|
||||
sleep 1
|
||||
start
|
||||
;;
|
||||
*)
|
||||
echo "Usage: $0 {start|stop|restart}"
|
||||
exit 1
|
||||
esac
|
||||
@@ -0,0 +1,32 @@
|
||||
#
|
||||
# Sample configuration file for mpd
|
||||
# This is a minimal configuration, see the manpage for more options
|
||||
#
|
||||
|
||||
# Directory where the music is stored
|
||||
music_directory "/var/lib/mpd/music"
|
||||
|
||||
# Directory where user-made playlists are stored (RW)
|
||||
playlist_directory "/var/lib/mpd/playlists"
|
||||
|
||||
# Database file (RW)
|
||||
db_file "/var/lib/mpd/database"
|
||||
|
||||
# Log file (RW)
|
||||
log_file "/var/log/mpd.log"
|
||||
|
||||
# Process ID file (RW)
|
||||
pid_file "/var/run/mpd.pid"
|
||||
|
||||
# State file (RW)
|
||||
state_file "/var/lib/mpd/state"
|
||||
|
||||
# User id to run the daemon as
|
||||
#user "nobody"
|
||||
|
||||
# TCP socket binding
|
||||
bind_to_address "any"
|
||||
#bind_to_address "localhost"
|
||||
|
||||
# Unix socket to listen on
|
||||
bind_to_address "/var/lib/mpd/socket"
|
||||
@@ -0,0 +1,3 @@
|
||||
# Locally calculated after checking pgp signature
|
||||
sha256 143f7f34aaee6e87888f3dd35d49aade6656052651b960ca42b46cbb518ca0a0 mpd-0.22.11.tar.xz
|
||||
sha256 ab15fd526bd8dd18a9e77ebc139656bf4d33e97fc7238cd11bf60e2b9b8666c6 COPYING
|
||||
@@ -0,0 +1,337 @@
|
||||
################################################################################
|
||||
#
|
||||
# mpd
|
||||
#
|
||||
################################################################################
|
||||
|
||||
MPD_VERSION_MAJOR = 0.22
|
||||
MPD_VERSION = $(MPD_VERSION_MAJOR).11
|
||||
MPD_SOURCE = mpd-$(MPD_VERSION).tar.xz
|
||||
MPD_SITE = http://www.musicpd.org/download/mpd/$(MPD_VERSION_MAJOR)
|
||||
MPD_DEPENDENCIES = host-pkgconf boost
|
||||
MPD_LICENSE = GPL-2.0+
|
||||
MPD_LICENSE_FILES = COPYING
|
||||
MPD_SELINUX_MODULES = mpd
|
||||
MPD_CONF_OPTS = \
|
||||
-Daudiofile=disabled \
|
||||
-Ddocumentation=disabled
|
||||
|
||||
# Zeroconf support depends on libdns_sd from avahi.
|
||||
ifeq ($(BR2_PACKAGE_MPD_AVAHI_SUPPORT),y)
|
||||
MPD_DEPENDENCIES += avahi
|
||||
MPD_CONF_OPTS += -Dzeroconf=avahi
|
||||
else
|
||||
MPD_CONF_OPTS += -Dzeroconf=disabled
|
||||
endif
|
||||
|
||||
# MPD prefers libicu for utf8 collation instead of libglib2.
|
||||
ifeq ($(BR2_PACKAGE_ICU),y)
|
||||
MPD_DEPENDENCIES += icu
|
||||
MPD_CONF_OPTS += -Dicu=enabled
|
||||
else
|
||||
MPD_CONF_OPTS += -Dicu=disabled
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_MPD_ALSA),y)
|
||||
MPD_DEPENDENCIES += alsa-lib
|
||||
MPD_CONF_OPTS += -Dalsa=enabled
|
||||
else
|
||||
MPD_CONF_OPTS += -Dalsa=disabled
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_MPD_AO),y)
|
||||
MPD_DEPENDENCIES += libao
|
||||
MPD_CONF_OPTS += -Dao=enabled
|
||||
else
|
||||
MPD_CONF_OPTS += -Dao=disabled
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_MPD_BZIP2),y)
|
||||
MPD_DEPENDENCIES += bzip2
|
||||
MPD_CONF_OPTS += -Dbzip2=enabled
|
||||
else
|
||||
MPD_CONF_OPTS += -Dbzip2=disabled
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_MPD_CDIO_PARANOIA),y)
|
||||
MPD_DEPENDENCIES += libcdio-paranoia
|
||||
MPD_CONF_OPTS += -Dcdio_paranoia=enabled
|
||||
else
|
||||
MPD_CONF_OPTS += -Dcdio_paranoia=disabled
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_MPD_CURL),y)
|
||||
MPD_DEPENDENCIES += libcurl
|
||||
MPD_CONF_OPTS += -Dcurl=enabled
|
||||
else
|
||||
MPD_CONF_OPTS += -Dcurl=disabled
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_MPD_DSD),y)
|
||||
MPD_CONF_OPTS += -Ddsd=true
|
||||
else
|
||||
MPD_CONF_OPTS += -Ddsd=false
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_MPD_FAAD2),y)
|
||||
MPD_DEPENDENCIES += faad2
|
||||
MPD_CONF_OPTS += -Dfaad=enabled
|
||||
else
|
||||
MPD_CONF_OPTS += -Dfaad=disabled
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_MPD_FFMPEG),y)
|
||||
MPD_DEPENDENCIES += ffmpeg
|
||||
MPD_CONF_OPTS += -Dffmpeg=enabled
|
||||
else
|
||||
MPD_CONF_OPTS += -Dffmpeg=disabled
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_MPD_FLAC),y)
|
||||
MPD_DEPENDENCIES += flac
|
||||
MPD_CONF_OPTS += -Dflac=enabled
|
||||
else
|
||||
MPD_CONF_OPTS += -Dflac=disabled
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_MPD_FLUIDSYNTH),y)
|
||||
MPD_DEPENDENCIES += fluidsynth
|
||||
MPD_CONF_OPTS += -Dfluidsynth=enabled
|
||||
else
|
||||
MPD_CONF_OPTS += -Dfluidsynth=disabled
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_MPD_HTTPD_OUTPUT),y)
|
||||
MPD_CONF_OPTS += -Dhttpd=true
|
||||
else
|
||||
MPD_CONF_OPTS += -Dhttpd=false
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_MPD_ID3TAG),y)
|
||||
MPD_DEPENDENCIES += libid3tag
|
||||
MPD_CONF_OPTS += -Did3tag=enabled
|
||||
else
|
||||
MPD_CONF_OPTS += -Did3tag=disabled
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_MPD_JACK2),y)
|
||||
MPD_DEPENDENCIES += jack2
|
||||
MPD_CONF_OPTS += -Djack=enabled
|
||||
else
|
||||
MPD_CONF_OPTS += -Djack=disabled
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_MPD_LAME),y)
|
||||
MPD_DEPENDENCIES += lame
|
||||
MPD_CONF_OPTS += -Dlame=enabled
|
||||
else
|
||||
MPD_CONF_OPTS += -Dlame=disabled
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_MPD_LIBMPDCLIENT),y)
|
||||
MPD_DEPENDENCIES += libmpdclient
|
||||
MPD_CONF_OPTS += -Dlibmpdclient=enabled
|
||||
else
|
||||
MPD_CONF_OPTS += -Dlibmpdclient=disabled
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_MPD_LIBMMS),y)
|
||||
MPD_DEPENDENCIES += libmms
|
||||
MPD_CONF_OPTS += -Dmms=enabled
|
||||
else
|
||||
MPD_CONF_OPTS += -Dmms=disabled
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_MPD_LIBNFS),y)
|
||||
MPD_DEPENDENCIES += libnfs
|
||||
MPD_CONF_OPTS += -Dnfs=enabled
|
||||
else
|
||||
MPD_CONF_OPTS += -Dnfs=disabled
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_MPD_LIBSMBCLIENT),y)
|
||||
MPD_DEPENDENCIES += samba4
|
||||
MPD_CONF_OPTS += -Dsmbclient=enabled
|
||||
else
|
||||
MPD_CONF_OPTS += -Dsmbclient=disabled
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_MPD_LIBSAMPLERATE),y)
|
||||
MPD_DEPENDENCIES += libsamplerate
|
||||
MPD_CONF_OPTS += -Dlibsamplerate=enabled
|
||||
else
|
||||
MPD_CONF_OPTS += -Dlibsamplerate=disabled
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_MPD_LIBSNDFILE),y)
|
||||
MPD_DEPENDENCIES += libsndfile
|
||||
MPD_CONF_OPTS += -Dsndfile=enabled
|
||||
else
|
||||
MPD_CONF_OPTS += -Dsndfile=disabled
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_MPD_LIBSOXR),y)
|
||||
MPD_DEPENDENCIES += libsoxr
|
||||
MPD_CONF_OPTS += -Dsoxr=enabled
|
||||
else
|
||||
MPD_CONF_OPTS += -Dsoxr=disabled
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_MPD_MAD),y)
|
||||
MPD_DEPENDENCIES += libid3tag libmad
|
||||
MPD_CONF_OPTS += -Dmad=enabled
|
||||
else
|
||||
MPD_CONF_OPTS += -Dmad=disabled
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_MPD_MODPLUG),y)
|
||||
MPD_DEPENDENCIES += libmodplug
|
||||
MPD_CONF_OPTS += -Dmodplug=enabled
|
||||
else
|
||||
MPD_CONF_OPTS += -Dmodplug=disabled
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_MPD_MPG123),y)
|
||||
MPD_DEPENDENCIES += libid3tag mpg123
|
||||
MPD_CONF_OPTS += -Dmpg123=enabled
|
||||
else
|
||||
MPD_CONF_OPTS += -Dmpg123=disabled
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_MPD_MUSEPACK),y)
|
||||
MPD_DEPENDENCIES += musepack
|
||||
MPD_CONF_OPTS += -Dmpcdec=enabled
|
||||
else
|
||||
MPD_CONF_OPTS += -Dmpcdec=disabled
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_MPD_NEIGHBOR_DISCOVERY_SUPPORT),y)
|
||||
MPD_CONF_OPTS += -Dneighbor=true
|
||||
else
|
||||
MPD_CONF_OPTS += -Dneighbor=false
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_MPD_OPENAL),y)
|
||||
MPD_DEPENDENCIES += openal
|
||||
MPD_CONF_OPTS += -Dopenal=enabled
|
||||
else
|
||||
MPD_CONF_OPTS += -Dopenal=disabled
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_MPD_OPUS),y)
|
||||
MPD_DEPENDENCIES += opus libogg
|
||||
MPD_CONF_OPTS += -Dopus=enabled
|
||||
else
|
||||
MPD_CONF_OPTS += -Dopus=disabled
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_MPD_OSS),y)
|
||||
MPD_CONF_OPTS += -Doss=enabled
|
||||
else
|
||||
MPD_CONF_OPTS += -Doss=disabled
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_MPD_PULSEAUDIO),y)
|
||||
MPD_DEPENDENCIES += pulseaudio
|
||||
MPD_CONF_OPTS += -Dpulse=enabled
|
||||
else
|
||||
MPD_CONF_OPTS += -Dpulse=disabled
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_MPD_QOBUZ),y)
|
||||
MPD_DEPENDENCIES += libgcrypt yajl
|
||||
MPD_CONF_OPTS += -Dqobuz=enabled
|
||||
else
|
||||
MPD_CONF_OPTS += -Dqobuz=disabled
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_MPD_SHOUTCAST),y)
|
||||
MPD_DEPENDENCIES += libshout
|
||||
MPD_CONF_OPTS += -Dshout=enabled
|
||||
else
|
||||
MPD_CONF_OPTS += -Dshout=disabled
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_MPD_SIDPLAY),y)
|
||||
MPD_DEPENDENCIES += libsidplay2
|
||||
MPD_CONF_OPTS += -Dsidplay=enabled
|
||||
else
|
||||
MPD_CONF_OPTS += -Dsidplay=disabled
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_MPD_SOUNDCLOUD),y)
|
||||
MPD_DEPENDENCIES += yajl
|
||||
MPD_CONF_OPTS += -Dsoundcloud=enabled
|
||||
else
|
||||
MPD_CONF_OPTS += -Dsoundcloud=disabled
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_MPD_SQLITE),y)
|
||||
MPD_DEPENDENCIES += sqlite
|
||||
MPD_CONF_OPTS += -Dsqlite=enabled
|
||||
else
|
||||
MPD_CONF_OPTS += -Dsqlite=disabled
|
||||
endif
|
||||
|
||||
ifneq ($(BR2_PACKAGE_MPD_TCP),y)
|
||||
MPD_CONF_OPTS += -Dtcp=true
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_MPD_TREMOR),y)
|
||||
MPD_DEPENDENCIES += tremor
|
||||
MPD_CONF_OPTS += -Dtremor=enabled
|
||||
else
|
||||
MPD_CONF_OPTS += -Dtremor=disabled
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_MPD_TWOLAME),y)
|
||||
MPD_DEPENDENCIES += twolame
|
||||
MPD_CONF_OPTS += -Dtwolame=enabled
|
||||
else
|
||||
MPD_CONF_OPTS += -Dtwolame=disabled
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_MPD_UPNP),y)
|
||||
MPD_DEPENDENCIES += \
|
||||
expat \
|
||||
libupnp
|
||||
MPD_CONF_OPTS += -Dupnp=enabled
|
||||
else
|
||||
MPD_CONF_OPTS += -Dupnp=disabled
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_MPD_VORBIS),y)
|
||||
MPD_DEPENDENCIES += libvorbis
|
||||
MPD_CONF_OPTS += -Dvorbis=enabled -Dvorbisenc=enabled
|
||||
else
|
||||
MPD_CONF_OPTS += -Dvorbis=disabled -Dvorbisenc=disabled
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_MPD_WAVPACK),y)
|
||||
MPD_DEPENDENCIES += wavpack
|
||||
MPD_CONF_OPTS += -Dwavpack=enabled
|
||||
else
|
||||
MPD_CONF_OPTS += -Dwavpack=disabled
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_MPD_ZZIP),y)
|
||||
MPD_DEPENDENCIES += zziplib
|
||||
MPD_CONF_OPTS += -Dzzip=enabled
|
||||
else
|
||||
MPD_CONF_OPTS += -Dzzip=disabled
|
||||
endif
|
||||
|
||||
define MPD_INSTALL_EXTRA_FILES
|
||||
$(INSTALL) -m 0644 -D package/mpd/mpd.conf $(TARGET_DIR)/etc/mpd.conf
|
||||
mkdir -p $(TARGET_DIR)/var/lib/mpd/music
|
||||
mkdir -p $(TARGET_DIR)/var/lib/mpd/playlists
|
||||
endef
|
||||
|
||||
MPD_POST_INSTALL_TARGET_HOOKS += MPD_INSTALL_EXTRA_FILES
|
||||
|
||||
define MPD_INSTALL_INIT_SYSV
|
||||
$(INSTALL) -m 0755 -D package/mpd/S95mpd \
|
||||
$(TARGET_DIR)/etc/init.d/S95mpd
|
||||
endef
|
||||
|
||||
$(eval $(meson-package))
|
||||
Reference in New Issue
Block a user