[OpenWrt-Devel,1/2] confuse: new host package

Message ID 1490345416-19734-2-git-send-email-yegorslists@googlemail.com
State New
Headers show

Commit Message

Yegor Yefremov March 24, 2017, 8:50 a.m.
From: Yegor Yefremov <yegorslists@googlemail.com>

This library is a dependency of genimage.

Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
---
 tools/confuse/Makefile | 35 +++++++++++++++++++++++++++++++++++
 1 file changed, 35 insertions(+)
 create mode 100644 tools/confuse/Makefile

Patch

diff --git a/tools/confuse/Makefile b/tools/confuse/Makefile
new file mode 100644
index 0000000..01a0be6
--- /dev/null
+++ b/tools/confuse/Makefile
@@ -0,0 +1,35 @@ 
+#
+# Copyright (C) 2017 Yegor Yefremov <yegorslists@googlemail.com>
+#
+# This is free software, licensed under the GNU General Public License v2.
+# See /LICENSE for more information.
+#
+
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=confuse
+PKG_VERSION:=3.0
+PKG_RELEASE:=1
+
+PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
+PKG_SOURCE_URL:=https://github.com/martinh/libconfuse/releases/download/v$(PKG_VERSION)
+PKG_HASH:=bb75174e02aa8b44fa1a872a47beeea1f5fe715ab669694c97803eb6127cc861
+
+PKG_FIXUP:=autoreconf
+HOST_BUILD_PARALLEL:=1
+
+include $(INCLUDE_DIR)/host-build.mk
+
+HOST_CONFIGURE_ARGS += \
+	--enable-shared=no \
+	--enable-static=yes \
+	--disable-rpath \
+	--without-libiconv-prefix \
+	--without-libintl-prefix \
+	--disable-examples
+
+define Host/Install
+	+$(MAKE) $(HOST_JOBS) -C $(HOST_BUILD_DIR) install
+endef
+
+$(eval $(call HostBuild))