From 054d1f8c321b050b0ee02dec4eabd07f41bad3a2 Mon Sep 17 00:00:00 2001 From: Florian Fainelli Date: Sun, 27 Jul 2008 12:02:54 +0000 Subject: [PATCH] Update shell-fm to 0.5 (#3614) SVN-Revision: 11956 --- sound/shell-fm/Makefile | 18 ++++++++---------- sound/shell-fm/patches/001-cross_compile.patch | 12 ++++++++++++ sound/shell-fm/patches/002-wifcontinued.patch | 13 +++++++++++++ 3 files changed, 33 insertions(+), 10 deletions(-) create mode 100644 sound/shell-fm/patches/001-cross_compile.patch create mode 100644 sound/shell-fm/patches/002-wifcontinued.patch diff --git a/sound/shell-fm/Makefile b/sound/shell-fm/Makefile index 5819d693a..ea73b03bb 100644 --- a/sound/shell-fm/Makefile +++ b/sound/shell-fm/Makefile @@ -9,15 +9,12 @@ include $(TOPDIR)/rules.mk PKG_NAME:=shell-fm -PKG_VERSION:=0.2 -PKG_RELEASE:=2 +PKG_VERSION:=0.5 +PKG_RELEASE:=1 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 -PKG_SOURCE_URL:=http://nex.scrapping.cc/shell-fm/downloads -PKG_MD5SUM:=6ebbcf1af241a92a1237547fc39ca728 - -PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME) -PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install +PKG_SOURCE_URL:=http://nex.scrapping.cc/code/shell-fm/downloads/ +PKG_MD5SUM:=a257283b0f7e9173ee1073b88e57c5f6 include $(INCLUDE_DIR)/package.mk @@ -39,19 +36,20 @@ define Package/shell-fm/conffiles endef define Build/Configure - $(PKG_BUILD_DIR)/reconfig - $(call Build/Configure/Default, --disable-ao) endef define Build/Compile $(MAKE) -C $(PKG_BUILD_DIR) \ + $(TARGET_CONFIGURE_OPTS) \ + CFLAGS="$(TARGET_CFLAGS) -I./include/ -I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \ DESTDIR="$(PKG_INSTALL_DIR)" \ + LDFLAGS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib -lmad -lao" \ all install endef define Package/shell-fm/install $(INSTALL_DIR) $(1)/usr/bin - $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/shell-fm $(1)/usr/bin/ + $(INSTALL_BIN) $(PKG_INSTALL_DIR)/bin/shell-fm $(1)/usr/bin/ $(INSTALL_DIR) $(1)/etc $(INSTALL_DATA) ./files/shell-fm.rc $(1)/etc/shell-fm.rc $(INSTALL_DIR) $(1)/etc/init.d diff --git a/sound/shell-fm/patches/001-cross_compile.patch b/sound/shell-fm/patches/001-cross_compile.patch new file mode 100644 index 000000000..00e19536b --- /dev/null +++ b/sound/shell-fm/patches/001-cross_compile.patch @@ -0,0 +1,12 @@ +diff -urN shell-fm-0.5/source/Makefile shell-fm-0.5.new/source/Makefile +--- shell-fm-0.5/source/Makefile 2008-04-10 22:27:28.000000000 +0200 ++++ shell-fm-0.5.new/source/Makefile 2008-07-26 21:00:48.000000000 +0200 +@@ -9,7 +9,7 @@ + .PHONY: clean + + shell-fm : $(OBJECT) +- gcc -o $(BINARY) $(CFLAGS) $(OBJECT) $(shell pkg-config mad --libs) $(LDFLAGS) ++ $(CC) -o $(BINARY) $(CFLAGS) $(OBJECT) $(shell pkg-config mad --libs) $(LDFLAGS) + + clean : + rm -f $(OBJECT) $(BINARY) diff --git a/sound/shell-fm/patches/002-wifcontinued.patch b/sound/shell-fm/patches/002-wifcontinued.patch new file mode 100644 index 000000000..7a12ce4c4 --- /dev/null +++ b/sound/shell-fm/patches/002-wifcontinued.patch @@ -0,0 +1,13 @@ +--- shell-fm-0.5/source/main.c 2008-04-10 22:27:28.000000000 +0200 ++++ shell-fm-0.5.new/source/main.c 2008-07-27 13:50:43.000000000 +0200 +@@ -33,6 +33,10 @@ + #define PATH_MAX 4096 + #endif + ++#ifndef WIFCONTINUED ++#define WIFCONTINUED(wstat) (0) ++#endif ++ + unsigned flags = RTP; + time_t changeTime = 0, pausetime = 0; + char * nextstation = NULL; -- 2.30.2