[packages] make libintl and libiconv stub/full implementations switchable, use the...
[openwrt/svn-archive/archive.git] / utils / bemused / Makefile
1 #
2 # Copyright (C) 2008-2010 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=bemused-mpd
11 PKG_VERSION:=r062
12 PKG_RELEASE:=2
13
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
17
18 include $(INCLUDE_DIR)/package.mk
19 include $(INCLUDE_DIR)/nls.mk
20
21 define Package/bemusedlinuxserver
22 SECTION:=utils
23 CATEGORY:=Utilities
24 DEPENDS:=+bluez-libs +glib1 +mpd +libstdcpp $(ICONV_DEPENDS)
25 TITLE:=Bemused linux server
26 URL:=http://bemused-lnx-mpdhack.origo.ethz.ch/
27 endef
28
29 define Package/bemusedlinuxserver/description
30 Bemused is a system which allows you to control your music collection
31 from your phone, using Bluetooth.
32 This is the MPD hack version.
33 Check http://jamse.sourceforge.net/ for a mobile phone client.
34 endef
35
36 define Build/Compile
37 $(MAKE) -C $(PKG_BUILD_DIR) \
38 $(TARGET_CONFIGURE_OPTS) \
39 CFLAGS="$(TARGET_CFLAGS) $(EXTRA_CPPFLAGS)" \
40 LDFLAGS="$(TARGET_LDFLAGS) " \
41 CPPFLAGS="$(TARGET_CPPFLAGS)" \
42 INCL="$(TARGET_CPPFLAGS) -I$(STAGING_DIR)/usr/include/glib-1.2 -I$(STAGING_DIR)/usr/lib/glib/include -I$(ICONV_PREFIX)/include" \
43 MYLIBS="-lbluetooth -lglib -L$(ICONV_PREFIX)/lib -liconv"
44 $(STRIP) $(PKG_BUILD_DIR)/bemusedlinuxserver
45 endef
46
47 define Package/bemusedlinuxserver/install
48 $(INSTALL_DIR) $(1)/usr/sbin
49 $(INSTALL_BIN) $(PKG_BUILD_DIR)/bemusedlinuxserver $(1)/usr/sbin/
50 $(INSTALL_DIR) $(1)/etc
51 $(INSTALL_CONF) ./files/bemused.conf $(1)/etc/bemused.conf
52 $(INSTALL_CONF) ./files/bemused-bookmarks $(1)/etc/bemused-bookmarks
53 $(INSTALL_DIR) $(1)/etc/init.d
54 $(INSTALL_BIN) ./files/bemused.init $(1)/etc/init.d/bemused
55 endef
56
57 $(eval $(call BuildPackage,bemusedlinuxserver))