From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Tue, 04 Oct 2022 16:46:05 +0200 Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by lore.white.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1ofjBN-005eSs-3g for lore@lore.pengutronix.de; Tue, 04 Oct 2022 16:46:05 +0200 Received: from localhost ([127.0.0.1] helo=metis.ext.pengutronix.de) by metis.ext.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1ofjBM-0003fd-6c; Tue, 04 Oct 2022 16:46:04 +0200 Received: from dude04.red.stw.pengutronix.de ([2a0a:edc0:0:1101:1d::ac]) by metis.ext.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1ofjAz-0003U5-17; Tue, 04 Oct 2022 16:45:41 +0200 From: Bastian Krause To: ptxdist@pengutronix.de Date: Tue, 4 Oct 2022 16:45:30 +0200 Message-Id: <20221004144533.2269637-2-bst@pengutronix.de> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20221004144533.2269637-1-bst@pengutronix.de> References: <20221004144533.2269637-1-bst@pengutronix.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [ptxdist] [PATCH 1/4] libnghttp2: new package X-BeenThere: ptxdist@pengutronix.de X-Mailman-Version: 2.1.29 Precedence: list List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de Cc: Bastian Krause Sender: "ptxdist" X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: ptxdist-bounces@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false Signed-off-by: Bastian Krause --- rules/libnghttp2.in | 8 +++++ rules/libnghttp2.make | 77 +++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 85 insertions(+) create mode 100644 rules/libnghttp2.in create mode 100644 rules/libnghttp2.make diff --git a/rules/libnghttp2.in b/rules/libnghttp2.in new file mode 100644 index 000000000..ef5f879f2 --- /dev/null +++ b/rules/libnghttp2.in @@ -0,0 +1,8 @@ +## SECTION=networking + +config LIBNGHTTP2 + tristate + select HOST_CMAKE + prompt "libnghttp2" + help + HTTP/2 C Library and tools diff --git a/rules/libnghttp2.make b/rules/libnghttp2.make new file mode 100644 index 000000000..cde2dc5de --- /dev/null +++ b/rules/libnghttp2.make @@ -0,0 +1,77 @@ +# -*-makefile-*- +# +# Copyright (C) 2022 by Bastian Krause +# +# For further information about the PTXdist project and license conditions +# see the README file. +# + +# +# We provide this package +# +PACKAGES-$(PTXCONF_LIBNGHTTP2) += libnghttp2 + +# +# Paths and names +# +LIBNGHTTP2_VERSION := 1.50.0 +LIBNGHTTP2_MD5 := 4168ccacaa009665b6a7fe455842f95b +LIBNGHTTP2 := nghttp2-$(LIBNGHTTP2_VERSION) +LIBNGHTTP2_SUFFIX := tar.xz +LIBNGHTTP2_URL := https://github.com/nghttp2/nghttp2/releases/download/v$(LIBNGHTTP2_VERSION)/$(LIBNGHTTP2).$(LIBNGHTTP2_SUFFIX) +LIBNGHTTP2_SOURCE := $(SRCDIR)/$(LIBNGHTTP2).$(LIBNGHTTP2_SUFFIX) +LIBNGHTTP2_DIR := $(BUILDDIR)/$(LIBNGHTTP2) +LIBNGHTTP2_LICENSE := MIT +LIBNGHTTP2_LICENSE_FILES := file://COPYING;md5=764abdf30b2eadd37ce47dcbce0ea1ec + +# ---------------------------------------------------------------------------- +# Prepare +# ---------------------------------------------------------------------------- + +# +# cmake +# +LIBNGHTTP2_CONF_TOOL := cmake +LIBNGHTTP2_CONF_OPT := \ + $(CROSS_CMAKE_USR) \ + -DENABLE_APP=OFF \ + -DENABLE_ASIO_LIB=OFF \ + -DENABLE_DEBUG=OFF \ + -DENABLE_DOC=OFF \ + -DENABLE_EXAMPLES=OFF \ + -DENABLE_FAILMALLOC=OFF \ + -DENABLE_HPACK_TOOLS=OFF \ + -DENABLE_HTTP3=OFF \ + -DENABLE_LIB_ONLY=ON \ + -DENABLE_PYTHON_BINDINGS=OFF \ + -DENABLE_SHARED_LIB=ON \ + -DENABLE_STATIC_CRT=OFF \ + -DENABLE_STATIC_LIB=OFF \ + -DENABLE_THREADS=ON \ + -DENABLE_WERROR=OFF \ + -DWITH_JEMALLOC=OFF \ + -DWITH_LIBBPF=OFF \ + -DWITH_LIBXML2=OFF \ + -DWITH_MRUBY=OFF \ + -DWITH_NEVERBLEED=OFF + +# ---------------------------------------------------------------------------- +# Target-Install +# ---------------------------------------------------------------------------- + +$(STATEDIR)/libnghttp2.targetinstall: + @$(call targetinfo) + + @$(call install_init, libnghttp2) + @$(call install_fixup, libnghttp2,PRIORITY,optional) + @$(call install_fixup, libnghttp2,SECTION,base) + @$(call install_fixup, libnghttp2,AUTHOR,"Bastian Krause ") + @$(call install_fixup, libnghttp2,DESCRIPTION,missing) + + @$(call install_lib, libnghttp2, 0, 0, 0644, libnghttp2) + + @$(call install_finish, libnghttp2) + + @$(call touch) + +# vim: syntax=make -- 2.30.2