A new package smtptrapd to provide a (secondary) SMTP server returning 4xx soft error...
[openwrt/svn-archive/archive.git] / utils / bemused / Makefile
1 #
2 # Copyright (C) 2008 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=bemused-mpd
12 PKG_VERSION:=r047
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=http://download.origo.ethz.ch/bemused-lnx-mpdhack/382
17 PKG_MD5SUM:=f40715812d59d2ab1bd93f96c5e8818b
18
19 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
20 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
21
22 include $(INCLUDE_DIR)/package.mk
23
24 define Package/bemusedlinuxserver
25 SECTION:=utils
26 CATEGORY:=Utilities
27 DEPENDS:=+bluez-libs +glib1 +mpd +libstdcpp
28 TITLE:=Bemused linux server
29 URL:=http://bemused-lnx-mpdhack.origo.ethz.ch/
30 endef
31
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.
37 endef
38
39 define Build/Compile
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" \
46 MYLIBS="-lbluetooth -lglib"
47 $(STRIP) $(PKG_BUILD_DIR)/bemusedlinuxserver
48 endef
49
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
58 endef
59
60 $(eval $(call BuildPackage,bemusedlinuxserver))