Makefile (1087B)
1 # 2 # Copyright (C) 2006-2011 OpenWrt.org 3 # 4 # This is free software, licensed under the GNU General Public License v2. 5 # See /LICENSE for more information. 6 # 7 8 include $(TOPDIR)/rules.mk 9 10 PKG_NAME:=yunbridge 11 PKG_VERSION:=160 12 13 PKG_RELEASE=$(PKG_SOURCE_VERSION) 14 15 PKG_SOURCE_PROTO:=git 16 PKG_SOURCE_URL:=https://github.com/arduino/YunBridge.git 17 PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION) 18 PKG_SOURCE_VERSION:=f2042052115e71ad2c91f77e78d21db8275fcdd6 19 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz 20 21 PKG_MAINTAINER:=John Crispin <blogic@openwrt.org> 22 PKG_LICENSE:=GPL-2.0 23 24 include $(INCLUDE_DIR)/package.mk 25 26 define Package/yunbridge 27 SECTION:=utils 28 CATEGORY:=Utilities 29 TITLE:=Arduino YUN bridge library 30 URL:=http://arduino.cc/ 31 DEPENDS:=+python 32 endef 33 34 define Package/yunbridge/description 35 Arduino YUN bridge library 36 endef 37 38 define Build/Compile 39 true 40 endef 41 42 define Package/yunbridge/install 43 mkdir -p $(1)/usr/lib/python2.7/bridge 44 $(CP) $(PKG_BUILD_DIR)/bridge/*.py $(1)/usr/lib/python2.7/bridge/ 45 $(CP) ./files/* $(1) 46 endef 47 48 $(eval $(call BuildPackage,yunbridge))