[package] shell-fm: add libao support
authorFlorian Fainelli <[email protected]>
Mon, 2 Apr 2012 16:20:00 +0000 (16:20 +0000)
committerFlorian Fainelli <[email protected]>
Mon, 2 Apr 2012 16:20:00 +0000 (16:20 +0000)
- 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.

[florian: added missing libmad dependency]

Signed-off-by: Christoph Gysin <[email protected]>
SVN-Revision: 31162

sound/shell-fm/Makefile
sound/shell-fm/files/shell-fm.init
sound/shell-fm/files/shell-fm.rc

index 8fea1a1350964e809e7602e420d9b302456927f7..2c08ca44bb1603f2b67b3109e6d48106ae905812 100644 (file)
@@ -23,7 +23,7 @@ include $(INCLUDE_DIR)/package.mk
 define Package/shell-fm
   SECTION:=sound
   CATEGORY:=Sound
-  DEPENDS:=+libao +madplay +libpthread
+  DEPENDS:=+libao +libpthread +libmad
   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
index 0e68d34d7bed1b0a0cdce513ff68003cd215054d..f0403b6ce856b7c8f422753ea9c422e27c3f1034 100644 (file)
@@ -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
 }
 
index 43ec7d2a1af0727598b8a592c779bdeb6ba1091e..b3f6a2d05d041efa04a73d574336e0b2442fa5b0 100644 (file)
@@ -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 -