Move all to deprecated folder.
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
From f7d5081b727f69ae3a894a4a3310670a5d9ab077 Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Fran=C3=A7ois=20Revol?= <revol@free.fr>
|
||||
Date: Thu, 17 Sep 2015 22:18:10 +0200
|
||||
Subject: [PATCH] notify: Don't use constexpr on Haiku
|
||||
|
||||
[Thomas: taken from upstream commit bf73d0f9051fd5740c22bf6e5114ceb4535d548f.]
|
||||
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
|
||||
---
|
||||
src/notify.hxx | 3 ++-
|
||||
1 file changed, 2 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/src/notify.hxx b/src/notify.hxx
|
||||
index 3e62a01..1ee413f 100644
|
||||
--- a/src/notify.hxx
|
||||
+++ b/src/notify.hxx
|
||||
@@ -28,7 +28,8 @@ struct notify {
|
||||
Cond cond;
|
||||
bool pending;
|
||||
|
||||
-#if !defined(WIN32) && !defined(__NetBSD__) && !defined(__BIONIC__)
|
||||
+#if !defined(WIN32) && !defined(__NetBSD__) && !defined(__BIONIC__) && \
|
||||
+ !defined(__HAIKU__)
|
||||
constexpr
|
||||
#endif
|
||||
notify():pending(false) {}
|
||||
--
|
||||
2.6.4
|
||||
|
||||
@@ -0,0 +1,31 @@
|
||||
From 09830d448d6299a47fbccf39af6f325be5f2b514 Mon Sep 17 00:00:00 2001
|
||||
From: Max Kellermann <max@duempel.org>
|
||||
Date: Thu, 17 Sep 2015 22:56:35 +0200
|
||||
Subject: [PATCH] notify: use "constexpr" only with glibc
|
||||
|
||||
The Mutex and Cond constructors are only "constexpr" with glibc, and
|
||||
this is what this #ifdef is about.
|
||||
|
||||
[Thomas: taken from upstream commit 459a812a54509ebfd634a3df2998395c9cb5b98f.]
|
||||
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
|
||||
---
|
||||
src/notify.hxx | 3 +--
|
||||
1 file changed, 1 insertion(+), 2 deletions(-)
|
||||
|
||||
diff --git a/src/notify.hxx b/src/notify.hxx
|
||||
index 1ee413f..c96390b 100644
|
||||
--- a/src/notify.hxx
|
||||
+++ b/src/notify.hxx
|
||||
@@ -28,8 +28,7 @@ struct notify {
|
||||
Cond cond;
|
||||
bool pending;
|
||||
|
||||
-#if !defined(WIN32) && !defined(__NetBSD__) && !defined(__BIONIC__) && \
|
||||
- !defined(__HAIKU__)
|
||||
+#ifdef __GLIBC__
|
||||
constexpr
|
||||
#endif
|
||||
notify():pending(false) {}
|
||||
--
|
||||
2.6.4
|
||||
|
||||
@@ -0,0 +1,97 @@
|
||||
From 42a5f0c4435757505bd515b68c2a27e8f7565f34 Mon Sep 17 00:00:00 2001
|
||||
From: Max Kellermann <max@duempel.org>
|
||||
Date: Tue, 25 Aug 2015 12:46:12 +0200
|
||||
Subject: [PATCH] thread/Posix{Mutex,Cond}: use "constexpr" only with glibc
|
||||
|
||||
Apparently all other C libraries are not compatible with "constexpr".
|
||||
Those which are not will get a performance penalty, but at least they
|
||||
work at all.
|
||||
|
||||
[Thomas: taken from upstream commit 75dff6445063d9b49cca126fd661c9abbd680977.]
|
||||
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
|
||||
---
|
||||
src/thread/PosixCond.hxx | 16 ++++++++--------
|
||||
src/thread/PosixMutex.hxx | 16 ++++++++--------
|
||||
2 files changed, 16 insertions(+), 16 deletions(-)
|
||||
|
||||
diff --git a/src/thread/PosixCond.hxx b/src/thread/PosixCond.hxx
|
||||
index b3fe204..73dbe02 100644
|
||||
--- a/src/thread/PosixCond.hxx
|
||||
+++ b/src/thread/PosixCond.hxx
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
- * Copyright (C) 2009-2013 Max Kellermann <max@duempel.org>
|
||||
+ * Copyright (C) 2009-2015 Max Kellermann <max@duempel.org>
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions
|
||||
@@ -41,9 +41,13 @@ class PosixCond {
|
||||
pthread_cond_t cond;
|
||||
|
||||
public:
|
||||
-#if defined(__NetBSD__) || defined(__BIONIC__)
|
||||
- /* NetBSD's PTHREAD_COND_INITIALIZER is not compatible with
|
||||
- "constexpr" */
|
||||
+#ifdef __GLIBC__
|
||||
+ /* optimized constexpr constructor for pthread implementations
|
||||
+ that support it */
|
||||
+ constexpr PosixCond():cond(PTHREAD_COND_INITIALIZER) {}
|
||||
+#else
|
||||
+ /* slow fallback for pthread implementations that are not
|
||||
+ compatible with "constexpr" */
|
||||
PosixCond() {
|
||||
pthread_cond_init(&cond, nullptr);
|
||||
}
|
||||
@@ -51,10 +55,6 @@ public:
|
||||
~PosixCond() {
|
||||
pthread_cond_destroy(&cond);
|
||||
}
|
||||
-#else
|
||||
- /* optimized constexpr constructor for sane POSIX
|
||||
- implementations */
|
||||
- constexpr PosixCond():cond(PTHREAD_COND_INITIALIZER) {}
|
||||
#endif
|
||||
|
||||
PosixCond(const PosixCond &other) = delete;
|
||||
diff --git a/src/thread/PosixMutex.hxx b/src/thread/PosixMutex.hxx
|
||||
index 5805158..e0fd614 100644
|
||||
--- a/src/thread/PosixMutex.hxx
|
||||
+++ b/src/thread/PosixMutex.hxx
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
- * Copyright (C) 2009-2013 Max Kellermann <max@duempel.org>
|
||||
+ * Copyright (C) 2009-2015 Max Kellermann <max@duempel.org>
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions
|
||||
@@ -41,9 +41,13 @@ class PosixMutex {
|
||||
pthread_mutex_t mutex;
|
||||
|
||||
public:
|
||||
-#if defined(__NetBSD__) || defined(__BIONIC__)
|
||||
- /* NetBSD's PTHREAD_MUTEX_INITIALIZER is not compatible with
|
||||
- "constexpr" */
|
||||
+#ifdef __GLIBC__
|
||||
+ /* optimized constexpr constructor for pthread implementations
|
||||
+ that support it */
|
||||
+ constexpr PosixMutex():mutex(PTHREAD_MUTEX_INITIALIZER) {}
|
||||
+#else
|
||||
+ /* slow fallback for pthread implementations that are not
|
||||
+ compatible with "constexpr" */
|
||||
PosixMutex() {
|
||||
pthread_mutex_init(&mutex, nullptr);
|
||||
}
|
||||
@@ -51,10 +55,6 @@ public:
|
||||
~PosixMutex() {
|
||||
pthread_mutex_destroy(&mutex);
|
||||
}
|
||||
-#else
|
||||
- /* optimized constexpr constructor for sane POSIX
|
||||
- implementations */
|
||||
- constexpr PosixMutex():mutex(PTHREAD_MUTEX_INITIALIZER) {}
|
||||
#endif
|
||||
|
||||
PosixMutex(const PosixMutex &other) = delete;
|
||||
--
|
||||
2.6.4
|
||||
|
||||
@@ -0,0 +1,28 @@
|
||||
From a0a9fed68126eb24e04af924c0d46351ff5eeb0f Mon Sep 17 00:00:00 2001
|
||||
From: Gustavo Zacarias <gustavo@zacarias.com.ar>
|
||||
Date: Mon, 26 Jan 2015 09:55:04 -0300
|
||||
Subject: [PATCH] thread/Name: include stdio.h for prctl as well
|
||||
|
||||
We're still using snprintf so we need it, otherwise it leads to build
|
||||
failure.
|
||||
|
||||
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
|
||||
---
|
||||
src/thread/Name.hxx | 1 +
|
||||
1 file changed, 1 insertion(+)
|
||||
|
||||
diff --git a/src/thread/Name.hxx b/src/thread/Name.hxx
|
||||
index a99208d..8f9d7d3 100644
|
||||
--- a/src/thread/Name.hxx
|
||||
+++ b/src/thread/Name.hxx
|
||||
@@ -25,6 +25,7 @@
|
||||
# include <pthread.h>
|
||||
#elif defined(HAVE_PRCTL)
|
||||
# include <sys/prctl.h>
|
||||
+# include <stdio.h>
|
||||
# ifdef PR_SET_NAME
|
||||
# define HAVE_THREAD_NAME
|
||||
# endif
|
||||
--
|
||||
2.6.4
|
||||
|
||||
@@ -0,0 +1,40 @@
|
||||
From 8eaf14a17244aaf000b4d19e4fde4a637576939f Mon Sep 17 00:00:00 2001
|
||||
From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
|
||||
Date: Sun, 7 Feb 2016 21:40:47 +0100
|
||||
Subject: [PATCH] configure.ac: check if libatomic is needed
|
||||
|
||||
The mpd source code uses the C++11 <atomic> functionality, which
|
||||
internally is implemented using the __atomic_*() gcc built-ins. On
|
||||
certain architectures, the __atomic_*() built-ins are implemented in
|
||||
the libatomic library that comes with the rest of the gcc runtime. Due
|
||||
to this, code using <atomic> might need to link against libatomic,
|
||||
otherwise one hits build issues such as:
|
||||
|
||||
GlobalEvents.cxx:(.text._ZN12GlobalEvents4EmitENS_5EventE+0x14): undefined reference to `__atomic_fetch_or_4'
|
||||
|
||||
on an architecture like SPARC.
|
||||
|
||||
To solve this, a configure.ac check is added to know if we need to
|
||||
link against libatomic or not.
|
||||
|
||||
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
|
||||
---
|
||||
configure.ac | 2 ++
|
||||
1 file changed, 2 insertions(+)
|
||||
|
||||
diff --git a/configure.ac b/configure.ac
|
||||
index 107b45a..8e6fab7 100644
|
||||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -233,6 +233,8 @@ if test x$have_pthread_setname_np = xyes; then
|
||||
AC_DEFINE(HAVE_PTHREAD_SETNAME_NP, 1, [Is pthread_setname_np() available?])
|
||||
fi
|
||||
|
||||
+AC_SEARCH_LIBS([__atomic_load_4], [atomic])
|
||||
+
|
||||
dnl ---------------------------------------------------------------------------
|
||||
dnl Event loop selection
|
||||
dnl ---------------------------------------------------------------------------
|
||||
--
|
||||
2.6.4
|
||||
|
||||
318
deprecated/firmware/buildroot/package/mpd/Config.in
Normal file
318
deprecated/firmware/buildroot/package/mpd/Config.in
Normal file
@@ -0,0 +1,318 @@
|
||||
menuconfig BR2_PACKAGE_MPD
|
||||
bool "mpd"
|
||||
depends on BR2_INSTALL_LIBSTDCPP
|
||||
depends on BR2_USE_WCHAR # libglib2, flac
|
||||
depends on BR2_TOOLCHAIN_HAS_THREADS # libglib2
|
||||
depends on BR2_USE_MMU # libglib2
|
||||
depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_6
|
||||
depends on BR2_PACKAGE_BOOST_ARCH_SUPPORTS
|
||||
depends on BR2_TOOLCHAIN_HAS_ATOMIC
|
||||
select BR2_PACKAGE_BOOST
|
||||
select BR2_PACKAGE_LIBGLIB2
|
||||
select BR2_PACKAGE_LIBICONV if !BR2_ENABLE_LOCALE
|
||||
select BR2_PACKAGE_MPD_TREMOR if !(BR2_PACKAGE_MPD_MAD || BR2_PACKAGE_MPD_MPG123 || BR2_PACKAGE_MPD_VORBIS || BR2_PACKAGE_MPD_WAVPACK || BR2_PACKAGE_MPD_FLAC || BR2_PACKAGE_MPD_MUSEPACK || BR2_PACKAGE_MPD_FFMPEG)
|
||||
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.
|
||||
|
||||
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_AUDIOFILE
|
||||
bool "audiofile"
|
||||
select BR2_PACKAGE_AUDIOFILE
|
||||
help
|
||||
Enable audiofile input/streaming support.
|
||||
Select this if you want to play back WAV files.
|
||||
|
||||
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"
|
||||
select BR2_PACKAGE_FFMPEG
|
||||
depends on !BR2_nios2 # 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_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_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_TREMOR
|
||||
bool "tremor"
|
||||
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_CURL
|
||||
bool "curl"
|
||||
select BR2_PACKAGE_LIBCURL
|
||||
help
|
||||
Enable curl streaming (http) 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 an (e)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.
|
||||
|
||||
config BR2_PACKAGE_MPD_SOUNDCLOUD
|
||||
bool "soundcloud"
|
||||
select BR2_PACKAGE_YAJL
|
||||
help
|
||||
Enable soundcloud.com playlist 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_OSS
|
||||
bool "oss"
|
||||
help
|
||||
Enable OSS (Open Sound System) output support.
|
||||
|
||||
config BR2_PACKAGE_MPD_PULSEAUDIO
|
||||
bool "pulseaudio"
|
||||
depends on !BR2_STATIC_LIBS # pulseaudio
|
||||
depends on BR2_TOOLCHAIN_HAS_SYNC_4 # pulseaudio -> json-c
|
||||
select BR2_PACKAGE_PULSEAUDIO
|
||||
help
|
||||
Enable pulseaudio output support.
|
||||
|
||||
comment "pulseaudio support needs a toolchain w/ dynamic library"
|
||||
depends on BR2_TOOLCHAIN_HAS_SYNC_4
|
||||
depends on BR2_STATIC_LIBS
|
||||
|
||||
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_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
|
||||
help
|
||||
Enable MPD UPnP client support.
|
||||
|
||||
endif
|
||||
|
||||
comment "mpd needs a toolchain w/ C++, threads, wchar, gcc >= 4.6"
|
||||
depends on BR2_USE_MMU
|
||||
depends on BR2_PACKAGE_BOOST_ARCH_SUPPORTS
|
||||
depends on BR2_TOOLCHAIN_HAS_ATOMIC
|
||||
depends on !BR2_INSTALL_LIBSTDCPP || !BR2_USE_WCHAR || \
|
||||
!BR2_TOOLCHAIN_HAS_THREADS || !BR2_TOOLCHAIN_GCC_AT_LEAST_4_6
|
||||
34
deprecated/firmware/buildroot/package/mpd/S95mpd
Normal file
34
deprecated/firmware/buildroot/package/mpd/S95mpd
Normal file
@@ -0,0 +1,34 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Sanity checks
|
||||
test -f /usr/bin/mpd || exit 0
|
||||
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
|
||||
32
deprecated/firmware/buildroot/package/mpd/mpd.conf
Normal file
32
deprecated/firmware/buildroot/package/mpd/mpd.conf
Normal file
@@ -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"
|
||||
2
deprecated/firmware/buildroot/package/mpd/mpd.hash
Normal file
2
deprecated/firmware/buildroot/package/mpd/mpd.hash
Normal file
@@ -0,0 +1,2 @@
|
||||
# Locally calculated after checking pgp signature
|
||||
sha256 7b6fe6c7ce72f5f80a276d680072b524ecb395e546e252b8f3a0756377e1e875 mpd-0.19.12.tar.xz
|
||||
260
deprecated/firmware/buildroot/package/mpd/mpd.mk
Normal file
260
deprecated/firmware/buildroot/package/mpd/mpd.mk
Normal file
@@ -0,0 +1,260 @@
|
||||
################################################################################
|
||||
#
|
||||
# mpd
|
||||
#
|
||||
################################################################################
|
||||
|
||||
MPD_VERSION_MAJOR = 0.19
|
||||
MPD_VERSION = $(MPD_VERSION_MAJOR).12
|
||||
MPD_SOURCE = mpd-$(MPD_VERSION).tar.xz
|
||||
MPD_SITE = http://www.musicpd.org/download/mpd/$(MPD_VERSION_MAJOR)
|
||||
MPD_DEPENDENCIES = host-pkgconf boost libglib2
|
||||
MPD_LICENSE = GPLv2+
|
||||
MPD_LICENSE_FILES = COPYING
|
||||
MPD_AUTORECONF = YES
|
||||
|
||||
# Some options need an explicit --disable or --enable
|
||||
|
||||
# Zeroconf support depends on libdns_sd from avahi.
|
||||
ifeq ($(BR2_PACKAGE_MPD_AVAHI_SUPPORT),y)
|
||||
MPD_DEPENDENCIES += avahi
|
||||
MPD_CONF_OPTS += --with-zeroconf=avahi
|
||||
else
|
||||
MPD_CONF_OPTS += --with-zeroconf=no
|
||||
endif
|
||||
|
||||
# MPD prefers libicu for utf8 collation instead of libglib2.
|
||||
ifeq ($(BR2_PACKAGE_ICU),y)
|
||||
MPD_DEPENDENCIES += icu
|
||||
MPD_CONF_OPTS += --enable-icu
|
||||
else
|
||||
MPD_CONF_OPTS += --disable-icu
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_MPD_ALSA),y)
|
||||
MPD_DEPENDENCIES += alsa-lib
|
||||
MPD_CONF_OPTS += --enable-alsa
|
||||
else
|
||||
MPD_CONF_OPTS += --disable-alsa
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_MPD_AO),y)
|
||||
MPD_DEPENDENCIES += libao
|
||||
MPD_CONF_OPTS += --enable-ao
|
||||
else
|
||||
MPD_CONF_OPTS += --disable-ao
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_MPD_AUDIOFILE),y)
|
||||
MPD_DEPENDENCIES += audiofile
|
||||
MPD_CONF_OPTS += --enable-audiofile
|
||||
else
|
||||
MPD_CONF_OPTS += --disable-audiofile
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_MPD_BZIP2),y)
|
||||
MPD_DEPENDENCIES += bzip2
|
||||
MPD_CONF_OPTS += --enable-bzip2
|
||||
else
|
||||
MPD_CONF_OPTS += --disable-bzip2
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_MPD_CURL),y)
|
||||
MPD_DEPENDENCIES += libcurl
|
||||
MPD_CONF_OPTS += --enable-curl
|
||||
else
|
||||
MPD_CONF_OPTS += --disable-curl
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_MPD_DSD),y)
|
||||
MPD_CONF_OPTS += --enable-dsd
|
||||
else
|
||||
MPD_CONF_OPTS += --disable-dsd
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_MPD_FAAD2),y)
|
||||
MPD_DEPENDENCIES += faad2
|
||||
MPD_CONF_OPTS += --enable-aac
|
||||
else
|
||||
MPD_CONF_OPTS += --disable-aac
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_MPD_FFMPEG),y)
|
||||
MPD_DEPENDENCIES += ffmpeg
|
||||
MPD_CONF_OPTS += --enable-ffmpeg
|
||||
else
|
||||
MPD_CONF_OPTS += --disable-ffmpeg
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_MPD_FLAC),y)
|
||||
MPD_DEPENDENCIES += flac
|
||||
MPD_CONF_OPTS += --enable-flac
|
||||
else
|
||||
MPD_CONF_OPTS += --disable-flac
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_MPD_HTTPD_OUTPUT),y)
|
||||
MPD_CONF_OPTS += --enable-httpd-output
|
||||
else
|
||||
MPD_CONF_OPTS += --disable-httpd-output
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_MPD_JACK2),y)
|
||||
MPD_DEPENDENCIES += jack2
|
||||
MPD_CONF_OPTS += --enable-jack
|
||||
else
|
||||
MPD_CONF_OPTS += --disable-jack
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_MPD_LAME),y)
|
||||
MPD_DEPENDENCIES += lame
|
||||
MPD_CONF_OPTS += --enable-lame-encoder
|
||||
else
|
||||
MPD_CONF_OPTS += --disable-lame-encoder
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_MPD_LIBNFS),y)
|
||||
MPD_DEPENDENCIES += libnfs
|
||||
MPD_CONF_OPTS += --enable-nfs
|
||||
else
|
||||
MPD_CONF_OPTS += --disable-nfs
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_MPD_LIBSMBCLIENT),y)
|
||||
MPD_DEPENDENCIES += samba4
|
||||
MPD_CONF_OPTS += --enable-smbclient
|
||||
else
|
||||
MPD_CONF_OPTS += --disable-smbclient
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_MPD_LIBSAMPLERATE),y)
|
||||
MPD_DEPENDENCIES += libsamplerate
|
||||
MPD_CONF_OPTS += --enable-lsr
|
||||
else
|
||||
MPD_CONF_OPTS += --disable-lsr
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_MPD_LIBSNDFILE),y)
|
||||
MPD_DEPENDENCIES += libsndfile
|
||||
MPD_CONF_OPTS += --enable-sndfile
|
||||
else
|
||||
MPD_CONF_OPTS += --disable-sndfile
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_MPD_LIBSOXR),y)
|
||||
MPD_DEPENDENCIES += libsoxr
|
||||
MPD_CONF_OPTS += --enable-soxr
|
||||
else
|
||||
MPD_CONF_OPTS += --disable-soxr
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_MPD_MAD),y)
|
||||
MPD_DEPENDENCIES += libid3tag libmad
|
||||
MPD_CONF_OPTS += --enable-mad
|
||||
else
|
||||
MPD_CONF_OPTS += --disable-mad
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_MPD_MPG123),y)
|
||||
MPD_DEPENDENCIES += libid3tag mpg123
|
||||
MPD_CONF_OPTS += --enable-mpg123
|
||||
else
|
||||
MPD_CONF_OPTS += --disable-mpg123
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_MPD_MUSEPACK),y)
|
||||
MPD_DEPENDENCIES += musepack
|
||||
MPD_CONF_OPTS += --enable-mpc
|
||||
else
|
||||
MPD_CONF_OPTS += --disable-mpc
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_MPD_NEIGHBOR_DISCOVERY_SUPPORT),y)
|
||||
MPD_CONF_OPTS += --enable-neighbor-plugins
|
||||
else
|
||||
MPD_CONF_OPTS += --disable-neighbor-plugins
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_MPD_OPUS),y)
|
||||
MPD_DEPENDENCIES += opus libogg
|
||||
MPD_CONF_OPTS += --enable-opus
|
||||
else
|
||||
MPD_CONF_OPTS += --disable-opus
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_MPD_OSS),y)
|
||||
MPD_CONF_OPTS += --enable-oss
|
||||
else
|
||||
MPD_CONF_OPTS += --disable-oss
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_MPD_PULSEAUDIO),y)
|
||||
MPD_DEPENDENCIES += pulseaudio
|
||||
MPD_CONF_OPTS += --enable-pulse
|
||||
else
|
||||
MPD_CONF_OPTS += --disable-pulse
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_MPD_SOUNDCLOUD),y)
|
||||
MPD_DEPENDENCIES += yajl
|
||||
MPD_CONF_OPTS += --enable-soundcloud
|
||||
else
|
||||
MPD_CONF_OPTS += --disable-soundcloud
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_MPD_SQLITE),y)
|
||||
MPD_DEPENDENCIES += sqlite
|
||||
MPD_CONF_OPTS += --enable-sqlite
|
||||
else
|
||||
MPD_CONF_OPTS += --disable-sqlite
|
||||
endif
|
||||
|
||||
ifneq ($(BR2_PACKAGE_MPD_TCP),y)
|
||||
MPD_CONF_OPTS += --disable-tcp
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_MPD_TREMOR),y)
|
||||
MPD_DEPENDENCIES += tremor
|
||||
MPD_CONF_OPTS += --with-tremor
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_MPD_TWOLAME),y)
|
||||
MPD_DEPENDENCIES += twolame
|
||||
MPD_CONF_OPTS += --enable-twolame-encoder
|
||||
else
|
||||
MPD_CONF_OPTS += --disable-twolame-encoder
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_MPD_UPNP),y)
|
||||
MPD_DEPENDENCIES += expat libupnp
|
||||
MPD_CONF_OPTS += --enable-upnp
|
||||
else
|
||||
MPD_CONF_OPTS += --disable-upnp
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_MPD_VORBIS),y)
|
||||
MPD_DEPENDENCIES += libvorbis
|
||||
MPD_CONF_OPTS += --enable-vorbis --enable-vorbis-encoder
|
||||
else
|
||||
MPD_CONF_OPTS += --disable-vorbis --disable-vorbis-encoder
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_MPD_WAVPACK),y)
|
||||
MPD_DEPENDENCIES += wavpack
|
||||
MPD_CONF_OPTS += --enable-wavpack
|
||||
else
|
||||
MPD_CONF_OPTS += --disable-wavpack
|
||||
endif
|
||||
|
||||
define MPD_INSTALL_EXTRA_FILES
|
||||
$(INSTALL) -m 0644 -D package/mpd/mpd.conf $(TARGET_DIR)/etc/mpd.conf
|
||||
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 $(autotools-package))
|
||||
Reference in New Issue
Block a user