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)/uclibc++.mk
24 include $(INCLUDE_DIR)/package.mk
26 define Package/boblight/Default
29 TITLE:=Tools for driving lights connected to an external controller
30 URL:=http://code.google.com/p/boblight/
31 DEPENDS:=+librt $(CXX_DEPENDS)
34 define Package/boblight/Default/description
35 Its main purpose is to create light effects from an external input, such as a
36 video stream (desktop capture, video player, tv card), an audio stream (jack,
37 alsa), or user input (lirc, http). Currently it only handles video input by
38 desktop capture with xlib, video capture from v4l/v4l2 devices and user input
39 from the commandline with boblight-constant.
41 Boblight uses a client/server model, where clients are responsible for
42 translating an external input to light data, and boblightd is responsible for
43 translating the light data into commands for external light controllers.
46 define Package/boblight-client
47 $(call Package/boblight/Default)
50 TITLE+= (constant color client)
51 DEPENDS+= +libboblight
54 define Package/boblight-client/description
55 $(call Package/boblight/Default/description)
57 This package contains the boblight constant color client.
60 define Package/boblight-daemon
61 $(call Package/boblight/Default)
65 DEPENDS+= +libboblight
68 define Package/boblight-daemon/conffiles
72 define Package/boblight-daemon/description
73 $(call Package/boblight/Default/description)
75 This package contains the boblight daemon.
78 define Package/libboblight
79 $(call Package/boblight/Default)
85 define Package/libboblight/description
86 $(call Package/boblight/Default/description)
88 This package contains the libboblight shared library.
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))