Changeset 31162


Ignore:
Timestamp:
2012-04-02T18:20:00+02:00 (6 years ago)
Author:
florian
Message:

[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@…>

Location:
packages/sound/shell-fm
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • packages/sound/shell-fm/Makefile

    r20295 r31162  
    2424  SECTION:=sound 
    2525  CATEGORY:=Sound 
    26   DEPENDS:=+libao +madplay +libpthread 
     26  DEPENDS:=+libao +libpthread +libmad 
    2727  TITLE:=Console Based Last.FM Radio Player 
    2828  URL:=http://nex.scrapping.cc 
     
    4444        $(MAKE) -C $(PKG_BUILD_DIR) \ 
    4545                $(TARGET_CONFIGURE_OPTS) \ 
    46                 CFLAGS="$(TARGET_CFLAGS) -I./include/ $(TARGET_CPPFLAGS)" \ 
     46                CFLAGS="$(TARGET_CFLAGS) -I./include/ -DLIBAO $(TARGET_CPPFLAGS)" \ 
    4747                DESTDIR="$(PKG_INSTALL_DIR)" \ 
    4848                LDFLAGS="$(TARGET_LDFLAGS) -lmad -lao -lpthread" \ 
  • packages/sound/shell-fm/files/shell-fm.init

    r6500 r31162  
    66        [ -d /tmp/.shell-fm ] || mkdir /tmp/.shell-fm 
    77        [ -L /tmp/.shell-fm/shell-fm.rc ] || ln -s /etc/shell-fm.rc /tmp/.shell-fm/shell-fm.rc 
     8        [ -L /tmp/.libao ] || ln -s /etc/libao.conf /tmp/.libao 
    89        HOME=/tmp shell-fm -d 
    910} 
  • packages/sound/shell-fm/files/shell-fm.rc

    r17638 r31162  
    77s-color = 1;37          # white station names 
    88bind = 0.0.0.0 
    9 extern = madplay -q - 
     9#extern = madplay -q - 
Note: See TracChangeset for help on using the changeset viewer.