2 # Copyright (C) 2008-2010 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
15 PKG_SOURCE_URL
:=http
://download.origo.ethz.ch
/bemused-lnx-mpdhack
/526
16 PKG_MD5SUM
:=aed8b41aed530e9177e43d9bebad10b7
18 include $(INCLUDE_DIR
)/package.mk
20 define Package
/bemusedlinuxserver
23 DEPENDS
:=+bluez-libs
+glib1
+mpd
+libstdcpp
+libiconv
24 TITLE
:=Bemused linux server
25 URL
:=http
://bemused-lnx-mpdhack.origo.ethz.ch
/
28 define Package
/bemusedlinuxserver
/description
29 Bemused is a system which allows you to control your music collection
30 from your phone
, using Bluetooth.
31 This is the MPD hack version.
32 Check http
://jamse.sourceforge.net
/ for a mobile phone client.
36 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
37 $(TARGET_CONFIGURE_OPTS
) \
38 CFLAGS
="$(TARGET_CFLAGS) $(EXTRA_CPPFLAGS)" \
39 LDFLAGS
="$(TARGET_LDFLAGS) " \
40 CPPFLAGS
="$(TARGET_CPPFLAGS)" \
41 INCL
="$(TARGET_CPPFLAGS) -I$(STAGING_DIR)/usr/include/glib-1.2 -I$(STAGING_DIR)/usr/lib/glib/include -I$(STAGING_DIR)/usr/lib/libiconv/include" \
42 MYLIBS
="-lbluetooth -lglib -L$(STAGING_DIR)/usr/lib/libiconv/lib -liconv"
43 $(STRIP
) $(PKG_BUILD_DIR
)/bemusedlinuxserver
46 define Package
/bemusedlinuxserver
/install
47 $(INSTALL_DIR
) $(1)/usr
/sbin
48 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/bemusedlinuxserver
$(1)/usr
/sbin
/
49 $(INSTALL_DIR
) $(1)/etc
50 $(INSTALL_CONF
) .
/files
/bemused.conf
$(1)/etc
/bemused.conf
51 $(INSTALL_CONF
) .
/files
/bemused-bookmarks
$(1)/etc
/bemused-bookmarks
52 $(INSTALL_DIR
) $(1)/etc
/init.d
53 $(INSTALL_BIN
) .
/files
/bemused.init
$(1)/etc
/init.d
/bemused
56 $(eval
$(call BuildPackage
,bemusedlinuxserver
))