packages: fix parallel build by adding + for every make command that passes the jobserver
[openwrt/svn-archive/archive.git] / utils / bemused / Makefile
1 #
2 # Copyright (C) 2008-2011 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:=4
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 PKG_BUILD_PARALLEL:=1
19
20 include $(INCLUDE_DIR)/package.mk
21 include $(INCLUDE_DIR)/nls.mk
22
23 define Package/bemusedlinuxserver
24 SECTION:=utils
25 CATEGORY:=Utilities
26 DEPENDS:=+bluez-libs +glib1 +mpd +libstdcpp $(ICONV_DEPENDS)
27 TITLE:=Bemused linux server
28 URL:=http://bemused-lnx-mpdhack.origo.ethz.ch/
29 endef
30
31 define Package/bemusedlinuxserver/description
32 Bemused is a system which allows you to control your music collection
33 from your phone, using Bluetooth.
34 This is the MPD hack version.
35 Check http://jamse.sourceforge.net/ for a mobile phone client.
36 endef
37
38 EXTRA_CPPFLAGS:= \
39 -I$(STAGING_DIR)/usr/include/glib-1.2 \
40 -I$(STAGING_DIR)/usr/lib/glib/include
41
42 define Build/Compile
43 +$(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR) \
44 $(TARGET_CONFIGURE_OPTS) \
45 CFLAGS="$(TARGET_CFLAGS) $(EXTRA_CFLAGS)" \
46 CXXFLAGS="$(TARGET_CFLAGS) $(EXTRA_CFLAGS)" \
47 LDFLAGS="$(TARGET_LDFLAGS) $(EXTRA_LDFLAGS)" \
48 CPPFLAGS="$(TARGET_CPPFLAGS) $(EXTRA_CPPFLAGS)" \
49 LDLIBS="-lbluetooth -lglib -liconv"
50 endef
51
52 define Package/bemusedlinuxserver/install
53 $(INSTALL_DIR) $(1)/usr/sbin
54 $(INSTALL_BIN) $(PKG_BUILD_DIR)/bemusedlinuxserver $(1)/usr/sbin/
55 $(INSTALL_DIR) $(1)/etc
56 $(INSTALL_CONF) ./files/bemused.conf $(1)/etc/bemused.conf
57 $(INSTALL_CONF) ./files/bemused-bookmarks $(1)/etc/bemused-bookmarks
58 $(INSTALL_DIR) $(1)/etc/init.d
59 $(INSTALL_BIN) ./files/bemused.init $(1)/etc/init.d/bemused
60 endef
61
62 define Package/bemusedlinuxserver/conffiles
63 /etc/bemused.conf
64 /etc/bemused-bookmarks
65 endef
66
67 $(eval $(call BuildPackage,bemusedlinuxserver))