summaryrefslogtreecommitdiff
path: root/uthash
diff options
context:
space:
mode:
authorKarel Kočí <karel.koci@nic.cz>2019-03-21 17:32:46 +0100
committerKarel Kočí <karel.koci@nic.cz>2019-03-21 17:32:46 +0100
commita008ad7cdc8bd7bb06c96cb9f483f6020b692f58 (patch)
treebabdc8a81a360d649ef3beca689d35d22dc1e847 /uthash
parentbd2a9ab20b470e808cd8f5156c3a2d872f752ea0 (diff)
downloadopenwrt-personal-pkgs-a008ad7cdc8bd7bb06c96cb9f483f6020b692f58.tar.gz
openwrt-personal-pkgs-a008ad7cdc8bd7bb06c96cb9f483f6020b692f58.tar.bz2
openwrt-personal-pkgs-a008ad7cdc8bd7bb06c96cb9f483f6020b692f58.zip
updater-ng: dependencies
Diffstat (limited to 'uthash')
-rw-r--r--uthash/Makefile38
1 files changed, 38 insertions, 0 deletions
diff --git a/uthash/Makefile b/uthash/Makefile
new file mode 100644
index 0000000..4c32e76
--- /dev/null
+++ b/uthash/Makefile
@@ -0,0 +1,38 @@
+#
+## Copyright (C) 2019 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:=uthash
+PKG_VERSION:=2.1.0
+PKG_RELEASE:=1
+
+PKG_SOURCE:=v$(PKG_VERSION).tar.gz
+PKG_SOURCE_URL:=https://github.com/troydhanson/uthash/archive
+PKG_HASH:=152ccd8e64d0f495377232e3964d06c7ec8bb8c3fbd3217f8a5702614f9a669e
+PKG_BUILD_DIR:=$(BUILD_DIR)/uthash-$(PKG_VERSION)
+PKG_MAINTAINER:=CZ.NIC <packaging@turris.cz>
+
+include $(INCLUDE_DIR)/host-build.mk
+include $(INCLUDE_DIR)/package.mk
+
+Build/Compile:=:
+Host/Compile:=:
+
+define Build/InstallDev
+ $(INSTALL_DIR) $(1)/usr/include
+ $(CP) $(PKG_BUILD_DIR)/include/* $(1)/usr/include/
+endef
+
+define Host/Install
+ $(INSTALL_DIR) $(STAGING_DIR_HOST)/usr/include
+ $(CP) $(HOST_BUILD_DIR)/include/* $(STAGING_DIR_HOST)/usr/include/
+endef
+
+
+$(eval $(call HostBuild))
+$(eval $(call Build/DefaultTargets))