2 # Copyright (C) 2015-2016 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
11 PKG_VERSION
:=1.8.4-743
15 PKG_LICENSE_FILES
:=LICENSE.txt
16 PKG_MAINTAINER
:=Ted Hess
<thess@kitschensync.net
>
19 PKG_SOURCE_URL
:=https
://github.com
/ralph-irving
/squeezelite.git
20 PKG_SOURCE_SUBDIR
:=$(PKG_NAME
)-$(PKG_VERSION
)
21 PKG_SOURCE_VERSION
:=e37ed17fed9e11a7346cbe9f1e1deeccc051f42e
22 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
)-$(PKG_SOURCE_VERSION
).
tar.gz
24 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(BUILD_VARIANT
)/$(PKG_NAME
)-$(PKG_VERSION
)
26 PKG_BUILD_DEPENDS
:=libflac libvorbis libmad libfaad2 SQUEEZELITE_WMA
:libffmpeg-audio-dec
28 include $(INCLUDE_DIR
)/package.mk
30 define Package
/squeezelite
/default
33 TITLE
:=Headless squeezebox emulator
35 URL
:=https
://github.com
/ralph-irving
/squeezelite
36 DEPENDS
:= +alsa-lib
+SQUEEZELITE_RESAMPLE
:libsoxr
40 define Package
/squeezelite-full
41 $(call Package
/squeezelite
/default
)
43 DEPENDS
+= +libflac
+libvorbis
+libmad
+libfaad2 \
44 +SQUEEZELITE_WMA
:libffmpeg-audio-dec
48 define Package
/squeezelite-mini
49 $(call Package
/squeezelite
/default
)
54 define Package
/squeezelite
/config
/default
56 config SQUEEZELITE_WMA
57 bool
"WMA/ALAC decode support"
59 Include WMA and ALAC decoding using ffmpeg
62 config SQUEEZELITE_RESAMPLE
63 bool
"Resample support"
65 Include support for resampling using libsoxr
68 config SQUEEZELITE_DSD
69 bool
"DSD playback over PCM (DoP)"
71 Include support for DSD over PCM for compatible DAC
"
75 define Package/squeezelite-full/config
76 if PACKAGE_squeezelite-full
77 $(call Package/squeezelite/config/default)
81 define Package/squeezelite-mini/config
82 if PACKAGE_squeezelite-mini
83 $(call Package/squeezelite/config/default)
87 define Package/squeezelite/description/default
88 Squeezelite is a small headless squeezebox emulator for linux using alsa audio output
89 It is aimed at supporting high quality audio at multiple sample rates including
90 44.1/48/88.2/96/176.4/192k/352.8/384kHz
91 Supported codecs: mp3, flac, ogg, aac, (wma and alac via ffmpeg)
92 Native support for PCM builtin
93 Optional support of DSD playback via PCM for DoP capable DAC
94 Optional resampling to match sound device
97 define Package/squeezelite/description
98 $(call Package/squeezelite/description/default)
100 This package has all the audio codecs compiled in.
103 define Package/squeezelite-mini/description
104 $(call Package/squeezelite/description/default)
106 This package will dynamically load installed codecs.
109 #ifeq ($(CONFIG_SQUEEZELITE_WMA),y)
110 # PKG_BUILD_DEPENDS+= libffmpeg-audio-dec
113 TARGET_CFLAGS+= -Wall -fPIC -O2 -DSELFPIPE
115 ifeq ($(CONFIG_SQUEEZELITE_WMA),y)
116 TARGET_CFLAGS+= -DFFMPEG
119 ifeq ($(CONFIG_SQUEEZELITE_DSD),y)
120 TARGET_CFLAGS+= -DDSD
123 ifeq ($(CONFIG_SQUEEZELITE_RESAMPLE),y)
124 TARGET_CFLAGS+= -DRESAMPLE
127 TARGET_LDFLAGS+= -lasound -lpthread -lm -lrt
129 ifeq ($(BUILD_VARIANT),full)
130 TARGET_CFLAGS+= -DLINKALL
131 TARGET_LDFLAGS+= -lvorbis -logg
134 define Package/squeezelite/install
135 $(INSTALL_DIR) $(1)/usr/bin
136 $(INSTALL_BIN) $(PKG_BUILD_DIR)/squeezelite $(1)/usr/bin
137 $(INSTALL_DIR) $(1)/etc/init.d
138 $(INSTALL_BIN) ./files/squeezelite.init $(1)/etc/init.d/squeezelite
139 $(INSTALL_DIR) $(1)/etc/config
140 $(INSTALL_CONF) ./files/squeezelite.conf $(1)/etc/config/squeezelite
143 Package/squeezelite-mini/install=$(Package/squeezelite/install)
144 Package/squeezelite-full/install=$(Package/squeezelite/install)
146 $(eval $(call BuildPackage,squeezelite-mini))
147 $(eval $(call BuildPackage,squeezelite-full))