From 9f0f3e1b06456f43bc02e00839238a664b4ee6fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Thu, 16 Feb 2017 13:43:05 +0100 Subject: baskup turris-lcd package makefile --- deactivated/turris-lcd/Makefile | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 deactivated/turris-lcd/Makefile (limited to 'deactivated/turris-lcd/Makefile') diff --git a/deactivated/turris-lcd/Makefile b/deactivated/turris-lcd/Makefile new file mode 100644 index 0000000..dbf260a --- /dev/null +++ b/deactivated/turris-lcd/Makefile @@ -0,0 +1,41 @@ +# +## Copyright (C) 2016 CZ.NIC z.s.p.o. (http://www.nic.cz/) +# +## This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# # +# +include $(TOPDIR)/rules.mk + +PKG_NAME:=turris-lcd +PKG_VERSION:=1 +PKG_RELEASE:=3 +PKG_SOURCE_PROTO:=git +PKG_SOURCE_URL:=http://git.cynerd.cz/turris-lcd +PKG_SOURCE:=$(PKG_NAME).tar.gz +PKG_SOURCE_VERSION:=eda6326d35e65098e08518a2c6b499709f8ee67e +PKG_SOURCE:=$(PKG_NAME)-$(PKG_SOURCE_VERSION).tar.gz +PKG_SOURCE_SUBDIR:=$(PKG_NAME) +PKG_MAINTAINER:=Karel Koci +PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME) + +include $(INCLUDE_DIR)/package.mk + +define Package/turris-lcd + TITLE:=turris-lcd + DEPENDS:=+libc +libstdcpp +endef + +# Compilation seems to be some what broken with static library so just go around.. +define Build/Compile + cd $(PKG_BUILD_DIR) && ./configure + $(MAKE_VARS) $(MAKE) -C $(PKG_BUILD_DIR) $(MAKE_FLAGS) Q= +endef + #cd $(BUILD_DIR)/turris-lcd && arm-openwrt-linux-g++ -Iliblcd liblcd/I2CIO.cpp liblcd/LCD.cpp liblcd/LiquidCrystal_I2C.cpp liblcd/smbus.c src/turris-lcd.cpp -o turris-lcd + +define Package/turris-lcd/install + $(INSTALL_DIR) $(1)/usr/bin/ + $(INSTALL_BIN) $(PKG_BUILD_DIR)/turris-lcd $(1)/usr/bin/turris-lcd +endef + +$(eval $(call BuildPackage,turris-lcd)) -- cgit v1.2.3