packages: add missing conffiles define
[openwrt.org/packages.git] / utils / bemused / Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
#
# Copyright (C) 2008-2011 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
 
include $(TOPDIR)/rules.mk
 
PKG_NAME:=bemused-mpd
PKG_VERSION:=r062
PKG_RELEASE:=4
 
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=http://download.origo.ethz.ch/bemused-lnx-mpdhack/526
PKG_MD5SUM:=aed8b41aed530e9177e43d9bebad10b7
 
PKG_BUILD_PARALLEL:=1
 
include $(INCLUDE_DIR)/package.mk
include $(INCLUDE_DIR)/nls.mk
 
define Package/bemusedlinuxserver
  SECTION:=utils
  CATEGORY:=Utilities
  DEPENDS:=+bluez-libs +glib1 +mpd +libstdcpp $(ICONV_DEPENDS)
  TITLE:=Bemused linux server
  URL:=http://bemused-lnx-mpdhack.origo.ethz.ch/
endef
 
define Package/bemusedlinuxserver/description
    Bemused is a system which allows you to control your music collection
    from your phone, using Bluetooth.
    This is the MPD hack version.
    Check http://jamse.sourceforge.net/ for a mobile phone client.
endef
 
EXTRA_CPPFLAGS:= \
        -I$(STAGING_DIR)/usr/include/glib-1.2 \
        -I$(STAGING_DIR)/usr/lib/glib/include
 
define Build/Compile
        $(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR) \
                $(TARGET_CONFIGURE_OPTS) \
                CFLAGS="$(TARGET_CFLAGS) $(EXTRA_CFLAGS)" \
                CXXFLAGS="$(TARGET_CFLAGS) $(EXTRA_CFLAGS)" \
                LDFLAGS="$(TARGET_LDFLAGS) $(EXTRA_LDFLAGS)" \
                CPPFLAGS="$(TARGET_CPPFLAGS) $(EXTRA_CPPFLAGS)" \
                LDLIBS="-lbluetooth -lglib -liconv"
endef
 
define Package/bemusedlinuxserver/install
        $(INSTALL_DIR) $(1)/usr/sbin
        $(INSTALL_BIN) $(PKG_BUILD_DIR)/bemusedlinuxserver $(1)/usr/sbin/
        $(INSTALL_DIR) $(1)/etc
        $(INSTALL_CONF) ./files/bemused.conf $(1)/etc/bemused.conf
        $(INSTALL_CONF) ./files/bemused-bookmarks $(1)/etc/bemused-bookmarks
        $(INSTALL_DIR) $(1)/etc/init.d
        $(INSTALL_BIN) ./files/bemused.init $(1)/etc/init.d/bemused
endef
 
define Package/bemusedlinuxserver/conffiles
/etc/bemused.conf
/etc/bemused-bookmarks
endef
 
$(eval $(call BuildPackage,bemusedlinuxserver))
 
comments