Date:2013-01-07 20:36:50 (7 years 4 months ago)
Author:kyak
Commit:971cadb3f1813698c258918df5f994c4f60da2ea
Message:libubb: initial package

Files: libubb/Makefile (1 diff)

Change Details

libubb/Makefile
1#
2# This is free software, licensed under the GNU General Public License v2.
3# See /LICENSE for more information.
4
5include $(TOPDIR)/rules.mk
6
7PKG_NAME:=libubb
8PKG_VERSION:=20130107
9PKG_REV:=127e18d7edd3747435ba8ad74ffe8b5d3a4e54b5
10PKG_RELEASE:=1
11
12PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_REV).tar.gz
13PKG_SOURCE_URL:=git://projects.qi-hardware.com/ben-blinkenlights.git
14PKG_SOURCE_PROTO:=git
15PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
16PKG_SOURCE_VERSION:=$(PKG_REV)
17
18include $(INCLUDE_DIR)/package.mk
19
20define Package/libubb
21    TITLE:=Helper functions for the Universal Breakout Board
22    SECTION:=libs
23    CATEGORY:=Libraries
24    URL:=http://projects.qi-hardware.com/index.php/p/ben-blinkenlights/source/tree/master/libubb/README
25endef
26
27define Package/libubb/description
28libubb gives convenient access to the GPIOs accessible via UBB.
29It also includes additional components that implement more advanced
30functions, such as a software UART, or giving access to additional
31CPU registers.
32endef
33
34MAKE_PATH=libubb
35
36define Build/InstallDev
37    $(INSTALL_DIR) $(1)/usr/include/ubb $(1)/usr/lib
38    $(CP) $(PKG_BUILD_DIR)/libubb/libubb.so $(1)/usr/lib
39    $(CP) $(PKG_BUILD_DIR)/libubb/include/ubb/* $(1)/usr/include/ubb
40endef
41
42define Package/libubb/install
43    $(INSTALL_DIR) $(1)/usr/lib
44    $(CP) $(PKG_BUILD_DIR)/libubb/libubb.so $(1)/usr/lib
45endef
46
47$(eval $(call BuildPackage,libubb))

Archive Download the corresponding diff file



interactive