include $(TOPDIR)/rules.mk
PKG_NAME:=bemused-mpd
-PKG_VERSION:=r047
+PKG_VERSION:=r059
PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
-PKG_SOURCE_URL:=http://download.origo.ethz.ch/bemused-lnx-mpdhack/382
-PKG_MD5SUM:=f40715812d59d2ab1bd93f96c5e8818b
+PKG_SOURCE_URL:=http://download.origo.ethz.ch/bemused-lnx-mpdhack/512
+PKG_MD5SUM:=76cb208842cce784fd65ec4d392fd6cb
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
define Package/bemusedlinuxserver
SECTION:=utils
CATEGORY:=Utilities
- DEPENDS:=+bluez-libs +glib1 +mpd +libstdcpp
+ DEPENDS:=+bluez-libs +glib1 +mpd +libstdcpp +libiconv
TITLE:=Bemused linux server
URL:=http://bemused-lnx-mpdhack.origo.ethz.ch/
endef
CFLAGS="$(TARGET_CFLAGS) $(EXTRA_CPPFLAGS)" \
LDFLAGS="$(TARGET_LDFLAGS) " \
CPPFLAGS="$(TARGET_CPPFLAGS)" \
- INCL="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/usr/include/glib-1.2 -I$(STAGING_DIR)/usr/lib/glib/include" \
- MYLIBS="-lbluetooth -lglib"
+ INCL="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/usr/include/glib-1.2 -I$(STAGING_DIR)/usr/lib/glib/include -I$(STAGING_DIR)/usr/lib/libiconv/include" \
+ MYLIBS="-lbluetooth -lglib -L$(STAGING_DIR)/usr/lib/libiconv/lib -liconv"
$(STRIP) $(PKG_BUILD_DIR)/bemusedlinuxserver
endef
# You only need to set up options which have no default and which ware not optinal
# this is a mpd-hack version by michu@neophob.com
-# just for information: "xmms" means "mpd"!
# Path to mpd (if mpd is in path only mpd) (default is mpd)
-xmmsdir=/usr/local/bin/mpd
+mpddir=/usr/local/bin/mpd
# channel for what the serial port service is registered (with sdptool look in README) (default 10)
# example:
# point this directory to the mpd music directory!
mp3dir=/
-# whether to autostart mpd when the server is started (0 (no) or 1 (yes)) (default=1)
-# THIS OPTION IS NOT SUPPORTED!
-# autostartxmms=0
-
# bookmarks file for URLs of net radio stations (optional)
bookmarkfile=/etc/bemused-bookmarks
--- /dev/null
+--- bemused-mpd-r059/mpdctrl.orig 2008-04-23 11:53:58.000000000 +0200
++++ bemused-mpd-r059/mpdctrl.c 2008-04-23 14:36:34.000000000 +0200
+@@ -160,8 +160,8 @@
+ }
+
+ /* OpenWRT needs a type cast */
+- /* iconv_value = iconv(i, (const char **)&p1, &fromlen, &p2, &tolen); */
+- iconv_value = iconv(i, &p1, &fromlen, &p2, &tolen);
++ iconv_value = iconv(i, (const char **)&p1, &fromlen, &p2, &tolen);
++ /* iconv_value = iconv(i, &p1, &fromlen, &p2, &tolen); */
+ if (iconv_value == (size_t) -1) {
+ error ("ICONV ERROR3: failed to convert string, error: %d\n", errno);
+ return "ICONV ERROR3";