From a008ad7cdc8bd7bb06c96cb9f483f6020b692f58 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Thu, 21 Mar 2019 17:32:46 +0100 Subject: updater-ng: dependencies --- uriparser/Makefile | 86 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 86 insertions(+) create mode 100644 uriparser/Makefile (limited to 'uriparser') diff --git a/uriparser/Makefile b/uriparser/Makefile new file mode 100644 index 0000000..b1256c5 --- /dev/null +++ b/uriparser/Makefile @@ -0,0 +1,86 @@ +# +## 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:=uriparser +PKG_VERSION:=0.9.1 +PKG_RELEASE:=1 + +PKG_SOURCE:=uriparser-$(PKG_VERSION).tar.gz +PKG_SOURCE_URL:=https://github.com/uriparser/uriparser/archive +PKG_HASH:=2d241d771368fb341c5d7231c2a754d4a5fa1280b958b82131dd7838900dc976 +PKG_BUILD_DIR:=$(BUILD_DIR)/uriparser-uriparser-$(PKG_VERSION) +PKG_MAINTAINER:=CZ.NIC +PKG_URL:=https://uriparser.github.io + +PKG_INSTALL:=1 +PKG_FIXUP:=autoreconf + +include $(INCLUDE_DIR)/host-build.mk +include $(INCLUDE_DIR)/package.mk +include $(INCLUDE_DIR)/autotools.mk + + +define Package/uriparser + SECTION:=utils + CATEGORY:=Utilities + TITLE:=uriparser + DEPENDS:=+liburiparser +endef + +define Package/liburiparser + SECTION:=libs + CATEGORY:=Libraries + TITLE:=liburiparser +endef + +define package/uriparser/description + strictly rfc 3986 compliant uri parser written in c89 +endef + +define package/liburiparser/description + strictly rfc 3986 compliant uri parsing and handling library written in c89 +endef + +CONFIGURE_ARGS += \ + --disable-test \ + --disable-doc \ + --disable-wchar_t +HOST_CONFIGURE_ARGS:=$(CONFIGURE_ARGS) + +define Package/uriparser/install + $(INSTALL_DIR) $(1)/usr/bin + $(CP) $(PKG_INSTALL_DIR)/usr/bin/uriparse $(1)/usr/bin/ +endef + +define Package/liburiparser/install + $(INSTALL_DIR) $(1)/usr/lib + $(CP) $(PKG_INSTALL_DIR)/usr/lib/liburiparser.so* $(1)/usr/lib/ +endef + +define Build/InstallDev + $(INSTALL_DIR) $(1)/usr/lib + $(CP) $(PKG_INSTALL_DIR)/usr/lib/* $(1)/usr/lib/ + $(INSTALL_DIR) $(1)/usr/include + $(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/ + $(INSTALL_DIR) $(1)/usr/lib/pkgconfig + $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* $(1)/usr/lib/pkgconfig/ +endef + +define Host/Install + $(INSTALL_DIR) $(STAGING_DIR_HOST)/usr/lib + $(CP) $(HOST_INSTALL_DIR)/usr/lib/* $(STAGING_DIR_HOST)/usr/lib/ + $(INSTALL_DIR) $(STAGING_DIR_HOST)/usr/include + $(CP) $(HOST_INSTALL_DIR)/usr/include/* $(STAGING_DIR_HOST)/usr/include/ + $(INSTALL_DIR) $(STAGING_DIR_HOST)/usr/lib/pkgconfig + $(CP) $(HOST_INSTALL_DIR)/usr/lib/pkgconfig/* $(STAGING_DIR_HOST)/usr/lib/pkgconfig/ +endef + +$(eval $(call HostBuild)) +$(eval $(call BuildPackage,uriparser)) +$(eval $(call BuildPackage,liburiparser)) -- cgit v1.2.3