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 | |
| 5 | include $(TOPDIR)/rules.mk |
| 6 | |
| 7 | PKG_NAME:=libubb |
| 8 | PKG_VERSION:=20130107 |
| 9 | PKG_REV:=127e18d7edd3747435ba8ad74ffe8b5d3a4e54b5 |
| 10 | PKG_RELEASE:=1 |
| 11 | |
| 12 | PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_REV).tar.gz |
| 13 | PKG_SOURCE_URL:=git://projects.qi-hardware.com/ben-blinkenlights.git |
| 14 | PKG_SOURCE_PROTO:=git |
| 15 | PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION) |
| 16 | PKG_SOURCE_VERSION:=$(PKG_REV) |
| 17 | |
| 18 | include $(INCLUDE_DIR)/package.mk |
| 19 | |
| 20 | define 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 |
| 25 | endef |
| 26 | |
| 27 | define Package/libubb/description |
| 28 | libubb gives convenient access to the GPIOs accessible via UBB. |
| 29 | It also includes additional components that implement more advanced |
| 30 | functions, such as a software UART, or giving access to additional |
| 31 | CPU registers. |
| 32 | endef |
| 33 | |
| 34 | MAKE_PATH=libubb |
| 35 | |
| 36 | define 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 |
| 40 | endef |
| 41 | |
| 42 | define Package/libubb/install |
| 43 | $(INSTALL_DIR) $(1)/usr/lib |
| 44 | $(CP) $(PKG_BUILD_DIR)/libubb/libubb.so $(1)/usr/lib |
| 45 | endef |
| 46 | |
| 47 | $(eval $(call BuildPackage,libubb)) |
Download the corresponding diff file