[package] shell-fm: add libao support
- 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 <christoph.gysin@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/packages@31162 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
05074dd92a
commit
f9e5e04092
@ -23,7 +23,7 @@ include $(INCLUDE_DIR)/package.mk
|
|||||||
define Package/shell-fm
|
define Package/shell-fm
|
||||||
SECTION:=sound
|
SECTION:=sound
|
||||||
CATEGORY:=Sound
|
CATEGORY:=Sound
|
||||||
DEPENDS:=+libao +madplay +libpthread
|
DEPENDS:=+libao +libpthread +libmad
|
||||||
TITLE:=Console Based Last.FM Radio Player
|
TITLE:=Console Based Last.FM Radio Player
|
||||||
URL:=http://nex.scrapping.cc
|
URL:=http://nex.scrapping.cc
|
||||||
endef
|
endef
|
||||||
@ -43,7 +43,7 @@ endef
|
|||||||
define Build/Compile
|
define Build/Compile
|
||||||
$(MAKE) -C $(PKG_BUILD_DIR) \
|
$(MAKE) -C $(PKG_BUILD_DIR) \
|
||||||
$(TARGET_CONFIGURE_OPTS) \
|
$(TARGET_CONFIGURE_OPTS) \
|
||||||
CFLAGS="$(TARGET_CFLAGS) -I./include/ $(TARGET_CPPFLAGS)" \
|
CFLAGS="$(TARGET_CFLAGS) -I./include/ -DLIBAO $(TARGET_CPPFLAGS)" \
|
||||||
DESTDIR="$(PKG_INSTALL_DIR)" \
|
DESTDIR="$(PKG_INSTALL_DIR)" \
|
||||||
LDFLAGS="$(TARGET_LDFLAGS) -lmad -lao -lpthread" \
|
LDFLAGS="$(TARGET_LDFLAGS) -lmad -lao -lpthread" \
|
||||||
all install
|
all install
|
||||||
|
@ -5,6 +5,7 @@ START=99
|
|||||||
start() {
|
start() {
|
||||||
[ -d /tmp/.shell-fm ] || mkdir /tmp/.shell-fm
|
[ -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/.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
|
HOME=/tmp shell-fm -d
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -6,4 +6,4 @@ t-color = 1;32 # light green track titles
|
|||||||
a-color = 0;32 # dark green track artist names
|
a-color = 0;32 # dark green track artist names
|
||||||
s-color = 1;37 # white station names
|
s-color = 1;37 # white station names
|
||||||
bind = 0.0.0.0
|
bind = 0.0.0.0
|
||||||
extern = madplay -q -
|
#extern = madplay -q -
|
||||||
|
Loading…
x
Reference in New Issue
Block a user