aboutsummaryrefslogtreecommitdiff
path: root/deactivated
diff options
context:
space:
mode:
authorKarel Kočí <karel.koci@nic.cz>2017-02-16 13:43:05 +0100
committerKarel Kočí <karel.koci@nic.cz>2017-02-16 13:43:05 +0100
commit9f0f3e1b06456f43bc02e00839238a664b4ee6fe (patch)
tree7583585dab392a9093c3c4a706f1c42451457189 /deactivated
parentee7f3386b871673c738240bc1b200e1b6220b593 (diff)
downloadturris-myrepo-9f0f3e1b06456f43bc02e00839238a664b4ee6fe.tar.gz
turris-myrepo-9f0f3e1b06456f43bc02e00839238a664b4ee6fe.tar.bz2
turris-myrepo-9f0f3e1b06456f43bc02e00839238a664b4ee6fe.zip
baskup turris-lcd package makefile
Diffstat (limited to 'deactivated')
-rw-r--r--deactivated/turris-lcd/Makefile41
1 files changed, 41 insertions, 0 deletions
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))