From: Christoph Gysin christoph.gy...@gmail.com
- remove madplay dependency
- enable libao support (we already depend on it)
- disable external command in default configuration
- add symlink for .libao
To configure libao, the library looks for a .libao configuration file in
the users home directory.
To allow configuring libao for shell-fm running as a daemon, we symlink
/etc/libao.conf to the temporary HOME for shell-fm.
Signed-off-by: Christoph Gysin christoph.gy...@gmail.com
---
sound/shell-fm/Makefile|4 ++--
sound/shell-fm/files/shell-fm.init |1 +
sound/shell-fm/files/shell-fm.rc |2 +-
3 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/sound/shell-fm/Makefile b/sound/shell-fm/Makefile
index 8fea1a1..fea1127 100644
--- a/sound/shell-fm/Makefile
+++ b/sound/shell-fm/Makefile
@@ -23,7 +23,7 @@ include $(INCLUDE_DIR)/package.mk
define Package/shell-fm
SECTION:=sound
CATEGORY:=Sound
- DEPENDS:=+libao +madplay +libpthread
+ DEPENDS:=+libao +libpthread
TITLE:=Console Based Last.FM Radio Player
URL:=http://nex.scrapping.cc
endef
@@ -43,7 +43,7 @@ endef
define Build/Compile
$(MAKE) -C $(PKG_BUILD_DIR) \
$(TARGET_CONFIGURE_OPTS) \
- CFLAGS=$(TARGET_CFLAGS) -I./include/ $(TARGET_CPPFLAGS) \
+ CFLAGS=$(TARGET_CFLAGS) -I./include/ -DLIBAO
$(TARGET_CPPFLAGS) \
DESTDIR=$(PKG_INSTALL_DIR) \
LDFLAGS=$(TARGET_LDFLAGS) -lmad -lao -lpthread \
all install
diff --git a/sound/shell-fm/files/shell-fm.init
b/sound/shell-fm/files/shell-fm.init
index 0e68d34..f0403b6 100644
--- a/sound/shell-fm/files/shell-fm.init
+++ b/sound/shell-fm/files/shell-fm.init
@@ -5,6 +5,7 @@ START=99
start() {
[ -d /tmp/.shell-fm ] || mkdir /tmp/.shell-fm
[ -L /tmp/.shell-fm/shell-fm.rc ] || ln -s /etc/shell-fm.rc
/tmp/.shell-fm/shell-fm.rc
+ [ -L /tmp/.libao ] || ln -s /etc/libao.conf /tmp/.libao
HOME=/tmp shell-fm -d
}
diff --git a/sound/shell-fm/files/shell-fm.rc b/sound/shell-fm/files/shell-fm.rc
index 43ec7d2..b3f6a2d 100644
--- a/sound/shell-fm/files/shell-fm.rc
+++ b/sound/shell-fm/files/shell-fm.rc
@@ -6,4 +6,4 @@ t-color = 1;32 # light green track titles
a-color = 0;32 # dark green track artist names
s-color = 1;37 # white station names
bind = 0.0.0.0
-extern = madplay -q -
+#extern = madplay -q -
--
1.7.6.4
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel