2 # Copyright (C) 2011-2012 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
12 PKG_VERSION:=$(PKG_REV)
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=http://boblight.googlecode.com/svn/trunk
17 PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
19 PKG_SOURCE_VERSION:=$(PKG_REV)
23 include $(INCLUDE_DIR)/package.mk
25 define Package/boblight/Default
28 TITLE:=Tools for driving lights connected to an external controller
29 URL:=http://code.google.com/p/boblight/
30 DEPENDS:=+librt +uclibcxx
33 define Package/boblight/Default/description
34 Its main purpose is to create light effects from an external input, such as a
35 video stream (desktop capture, video player, tv card), an audio stream (jack,
36 alsa), or user input (lirc, http). Currently it only handles video input by
37 desktop capture with xlib, video capture from v4l/v4l2 devices and user input
38 from the commandline with boblight-constant.
40 Boblight uses a client/server model, where clients are responsible for
41 translating an external input to light data, and boblightd is responsible for
42 translating the light data into commands for external light controllers.
45 define Package/boblight-client
46 $(call Package/boblight/Default)
49 TITLE+= (constant color client)
50 DEPENDS+= +libboblight
53 define Package/boblight-client/description
54 $(call Package/boblight/Default/description)
56 This package contains the boblight constant color client.
59 define Package/boblight-daemon
60 $(call Package/boblight/Default)
64 DEPENDS+= +libboblight
67 define Package/boblight-daemon/conffiles
71 define Package/boblight-daemon/description
72 $(call Package/boblight/Default/description)
74 This package contains the boblight daemon.
77 define Package/libboblight
78 $(call Package/boblight/Default)
84 define Package/libboblight/description
85 $(call Package/boblight/Default/description)
87 This package contains the libboblight shared library.
94 TARGET_CXX = $(STAGING_DIR)/host/bin/g++-uc
96 define Build/InstallDev
97 $(INSTALL_DIR) $(1)/usr/include/libboblight
98 $(CP) $(PKG_INSTALL_DIR)/usr/include/libboblight $(1)/usr/include/
99 $(INSTALL_DIR) $(1)/usr/lib
100 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libboblight.{a,so*} $(1)/usr/lib/
103 define Package/boblight-client/install
104 $(INSTALL_DIR) $(1)/usr/bin
105 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/boblight-constant $(1)/usr/bin/
108 define Package/boblight-daemon/install
109 $(INSTALL_DIR) $(1)/etc
110 $(INSTALL_CONF) $(PKG_BUILD_DIR)/boblight.conf $(1)/etc/
111 $(INSTALL_DIR) $(1)/etc/init.d
112 $(INSTALL_BIN) ./files/boblight.init $(1)/etc/init.d/boblight
113 $(INSTALL_DIR) $(1)/usr/bin
114 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/boblightd $(1)/usr/bin/
117 define Package/libboblight/install
118 $(INSTALL_DIR) $(1)/usr/lib
119 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libboblight.so* $(1)/usr/lib/
122 $(eval $(call BuildPackage,boblight-client))
123 $(eval $(call BuildPackage,boblight-daemon))
124 $(eval $(call BuildPackage,libboblight))