2 # Copyright (C) 2008 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR)/rules.mk
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=http://download.origo.ethz.ch/bemused-lnx-mpdhack/512
17 PKG_MD5SUM:=76cb208842cce784fd65ec4d392fd6cb
19 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
20 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
22 include $(INCLUDE_DIR)/package.mk
24 define Package/bemusedlinuxserver
27 DEPENDS:=+bluez-libs +glib1 +mpd +libstdcpp +libiconv
28 TITLE:=Bemused linux server
29 URL:=http://bemused-lnx-mpdhack.origo.ethz.ch/
32 define Package/bemusedlinuxserver/description
33 Bemused is a system which allows you to control your music collection
34 from your phone, using Bluetooth.
35 This is the MPD hack version.
36 Check http://jamse.sourceforge.net/ for a mobile phone client.
40 $(MAKE) -C $(PKG_BUILD_DIR) \
41 $(TARGET_CONFIGURE_OPTS) \
42 CFLAGS="$(TARGET_CFLAGS) $(EXTRA_CPPFLAGS)" \
43 LDFLAGS="$(TARGET_LDFLAGS) " \
44 CPPFLAGS="$(TARGET_CPPFLAGS)" \
45 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" \
46 MYLIBS="-lbluetooth -lglib -L$(STAGING_DIR)/usr/lib/libiconv/lib -liconv"
47 $(STRIP) $(PKG_BUILD_DIR)/bemusedlinuxserver
50 define Package/bemusedlinuxserver/install
51 $(INSTALL_DIR) $(1)/usr/sbin
52 $(INSTALL_BIN) $(PKG_BUILD_DIR)/bemusedlinuxserver $(1)/usr/sbin/
53 $(INSTALL_DIR) $(1)/etc
54 $(INSTALL_CONF) ./files/bemused.conf $(1)/etc/bemused.conf
55 $(INSTALL_CONF) ./files/bemused-bookmarks $(1)/etc/bemused-bookmarks
56 $(INSTALL_DIR) $(1)/etc/init.d
57 $(INSTALL_BIN) ./files/bemused.init $(1)/etc/init.d/bemused
60 $(eval $(call BuildPackage,bemusedlinuxserver))