2 # Copyright (C) 2011-2013 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 +libstdcpp
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 +libusb-1.0
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.
95 define Build/InstallDev
96 $(INSTALL_DIR) $(1)/usr/include/libboblight
97 $(CP) $(PKG_INSTALL_DIR)/usr/include/libboblight $(1)/usr/include/
98 $(INSTALL_DIR) $(1)/usr/lib
99 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libboblight.{a,so*} $(1)/usr/lib/
102 define Package/boblight-client/install
103 $(INSTALL_DIR) $(1)/usr/bin
104 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/boblight-constant $(1)/usr/bin/
107 define Package/boblight-daemon/install
108 $(INSTALL_DIR) $(1)/etc
109 $(INSTALL_CONF) $(PKG_BUILD_DIR)/boblight.conf $(1)/etc/
110 $(INSTALL_DIR) $(1)/etc/init.d
111 $(INSTALL_BIN) ./files/boblight.init $(1)/etc/init.d/boblight
112 $(INSTALL_DIR) $(1)/usr/bin
113 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/boblightd $(1)/usr/bin/
116 define Package/libboblight/install
117 $(INSTALL_DIR) $(1)/usr/lib
118 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libboblight.so* $(1)/usr/lib/
121 $(eval $(call BuildPackage,boblight-client))
122 $(eval $(call BuildPackage,boblight-daemon))
123 $(eval $(call BuildPackage,libboblight))