Move all to deprecated folder.
This commit is contained in:
@@ -0,0 +1,54 @@
|
||||
From a0f2e79d1373967dac9f3df4c500a71cd1b96b2b Mon Sep 17 00:00:00 2001
|
||||
From: Hiroshi Kawashima <kei-k@ca2.so-net.ne.jp>
|
||||
Date: Sun, 7 Feb 2016 18:04:53 +0100
|
||||
Subject: [PATCH] Makefile: allow passing CFLAGS and LDFLAGS
|
||||
|
||||
This patch is applied to squeezelite Makefile to add override
|
||||
directive for CFLAGS and LDFLAGS assignment.
|
||||
This enables adding flags to CFLAGS and LDFLAGS in Makefile.
|
||||
|
||||
Signed-off-by: Hiroshi Kawashima <kei-k@ca2.so-net.ne.jp>
|
||||
---
|
||||
Makefile | 12 +++++++-----
|
||||
1 file changed, 7 insertions(+), 5 deletions(-)
|
||||
|
||||
diff --git a/Makefile b/Makefile
|
||||
index dca2abd..286c725 100644
|
||||
--- a/Makefile
|
||||
+++ b/Makefile
|
||||
@@ -1,4 +1,6 @@
|
||||
# Cross compile support - create a Makefile which defines these three variables and then includes this Makefile...
|
||||
+override CFLAGS += $(OPTS)
|
||||
+override LDFLAGS += -lasound -lpthread -lm -lrt
|
||||
CFLAGS ?= -Wall -fPIC -O2 $(OPTS)
|
||||
LDFLAGS ?= -lasound -lpthread -lm -lrt
|
||||
EXECUTABLE ?= squeezelite
|
||||
@@ -52,20 +54,20 @@ endif
|
||||
|
||||
# add optional link options
|
||||
ifneq (,$(findstring $(OPT_LINKALL), $(CFLAGS)))
|
||||
- LDFLAGS += $(LINKALL)
|
||||
+ override LDFLAGS += $(LINKALL)
|
||||
ifneq (,$(findstring $(OPT_FF), $(CFLAGS)))
|
||||
- LDFLAGS += $(LINKALL_FF)
|
||||
+ override LDFLAGS += $(LINKALL_FF)
|
||||
endif
|
||||
ifneq (,$(findstring $(OPT_RESAMPLE), $(CFLAGS)))
|
||||
- LDFLAGS += $(LINKALL_RESAMPLE)
|
||||
+ override LDFLAGS += $(LINKALL_RESAMPLE)
|
||||
endif
|
||||
ifneq (,$(findstring $(OPT_IR), $(CFLAGS)))
|
||||
- LDFLAGS += $(LINKALL_IR)
|
||||
+ override LDFLAGS += $(LINKALL_IR)
|
||||
endif
|
||||
else
|
||||
# if not LINKALL and linux add LINK_LINUX
|
||||
ifeq ($(UNAME), Linux)
|
||||
- LDFLAGS += $(LINK_LINUX)
|
||||
+ override LDFLAGS += $(LINK_LINUX)
|
||||
endif
|
||||
endif
|
||||
|
||||
--
|
||||
2.6.4
|
||||
|
||||
@@ -0,0 +1,34 @@
|
||||
From 903922a7bcf06e04d9830b47bba6d65ed37304c1 Mon Sep 17 00:00:00 2001
|
||||
From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
|
||||
Date: Sun, 7 Feb 2016 18:05:56 +0100
|
||||
Subject: [PATCH] output_alsa: use mallopt() only on glibc
|
||||
|
||||
The musl C library does not provide the glibc specific mallopt()
|
||||
functionality, so use it only when __GLIBC__ is defined.
|
||||
|
||||
uClibc pretends to be glibc by defining __GLIBC__, but it implements
|
||||
mallopt(), so it works fine.
|
||||
|
||||
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
|
||||
---
|
||||
output_alsa.c | 2 ++
|
||||
1 file changed, 2 insertions(+)
|
||||
|
||||
diff --git a/output_alsa.c b/output_alsa.c
|
||||
index aa01560..44c9fc7 100644
|
||||
--- a/output_alsa.c
|
||||
+++ b/output_alsa.c
|
||||
@@ -862,8 +862,10 @@ void output_init_alsa(log_level level, const char *device, unsigned output_buf_s
|
||||
LOG_INFO("memory locked");
|
||||
}
|
||||
|
||||
+#ifdef __GLIBC__
|
||||
mallopt(M_TRIM_THRESHOLD, -1);
|
||||
mallopt(M_MMAP_MAX, 0);
|
||||
+#endif
|
||||
|
||||
touch_memory(silencebuf, MAX_SILENCE_FRAMES * BYTES_PER_FRAME);
|
||||
touch_memory(outputbuf->buf, outputbuf->size);
|
||||
--
|
||||
2.6.4
|
||||
|
||||
42
deprecated/firmware/buildroot/package/squeezelite/Config.in
Normal file
42
deprecated/firmware/buildroot/package/squeezelite/Config.in
Normal file
@@ -0,0 +1,42 @@
|
||||
config BR2_PACKAGE_SQUEEZELITE
|
||||
bool "squeezelite"
|
||||
depends on BR2_USE_WCHAR # flac
|
||||
depends on BR2_TOOLCHAIN_HAS_THREADS # alsa-lib
|
||||
depends on BR2_USE_MMU # mpg123
|
||||
depends on !BR2_STATIC_LIBS # dlopen
|
||||
select BR2_PACKAGE_ALSA_LIB
|
||||
select BR2_PACKAGE_ALSA_LIB_MIXER
|
||||
select BR2_PACKAGE_FLAC
|
||||
select BR2_PACKAGE_LIBMAD
|
||||
select BR2_PACKAGE_LIBVORBIS
|
||||
select BR2_PACKAGE_FAAD2
|
||||
select BR2_PACKAGE_MPG123
|
||||
help
|
||||
Logitech Media Server client
|
||||
|
||||
https://code.google.com/p/squeezelite/
|
||||
|
||||
if BR2_PACKAGE_SQUEEZELITE
|
||||
|
||||
config BR2_PACKAGE_SQUEEZELITE_FFMPEG
|
||||
bool "Enable WMA and ALAC decoding"
|
||||
default y
|
||||
select BR2_PACKAGE_FFMPEG
|
||||
depends on !BR2_nios2 # ffmpeg
|
||||
|
||||
config BR2_PACKAGE_SQUEEZELITE_DSD
|
||||
bool "Enable DSD decoding"
|
||||
|
||||
config BR2_PACKAGE_SQUEEZELITE_RESAMPLE
|
||||
bool "Enable resampling support"
|
||||
select BR2_PACKAGE_LIBSOXR
|
||||
|
||||
config BR2_PACKAGE_SQUEEZELITE_VISEXPORT
|
||||
bool "Enable visualiser support"
|
||||
|
||||
endif
|
||||
|
||||
comment "squeezelite needs a toolchain w/ wchar, threads, dynamic library"
|
||||
depends on BR2_USE_MMU
|
||||
depends on !BR2_USE_WCHAR || !BR2_TOOLCHAIN_HAS_THREADS \
|
||||
|| BR2_STATIC_LIBS
|
||||
@@ -0,0 +1,2 @@
|
||||
# Locally calculated
|
||||
sha256 0c844e7714d3f15325629c59ee75e6309763116e61a6b73486b502e2e5cce5fd squeezelite-v1.8.tar.gz
|
||||
@@ -0,0 +1,42 @@
|
||||
################################################################################
|
||||
#
|
||||
# squeezelite
|
||||
#
|
||||
################################################################################
|
||||
|
||||
SQUEEZELITE_VERSION = v1.8
|
||||
SQUEEZELITE_SITE = $(call github,robadenshi,squeezelite,$(SQUEEZELITE_VERSION))
|
||||
SQUEEZELITE_LICENSE = GPLv3
|
||||
SQUEEZELITE_LICENSE_FILES = LICENSE.txt
|
||||
SQUEEZELITE_DEPENDENCIES = alsa-lib flac libmad libvorbis faad2 mpg123
|
||||
SQUEEZELITE_MAKE_OPTS = -DLINKALL
|
||||
|
||||
ifeq ($(BR2_PACKAGE_SQUEEZELITE_FFMPEG),y)
|
||||
SQUEEZELITE_DEPENDENCIES += ffmpeg
|
||||
SQUEEZELITE_MAKE_OPTS += -DFFMPEG
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_SQUEEZELITE_DSD),y)
|
||||
SQUEEZELITE_MAKE_OPTS += -DDSD
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_SQUEEZELITE_RESAMPLE),y)
|
||||
SQUEEZELITE_DEPENDENCIES += libsoxr
|
||||
SQUEEZELITE_MAKE_OPTS += -DRESAMPLE
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_SQUEEZELITE_VISEXPORT),y)
|
||||
SQUEEZELITE_MAKE_OPTS += -DVISEXPORT
|
||||
endif
|
||||
|
||||
define SQUEEZELITE_BUILD_CMDS
|
||||
$(TARGET_MAKE_ENV) $(MAKE) $(TARGET_CONFIGURE_OPTS) \
|
||||
OPTS="$(SQUEEZELITE_MAKE_OPTS)" -C $(@D) all
|
||||
endef
|
||||
|
||||
define SQUEEZELITE_INSTALL_TARGET_CMDS
|
||||
$(INSTALL) -D -m 0755 $(@D)/squeezelite \
|
||||
$(TARGET_DIR)/usr/bin/squeezelite
|
||||
endef
|
||||
|
||||
$(eval $(generic-package))
|
||||
Reference in New Issue
Block a user