Signed-off-by: Bastian Krause <[email protected]> --- 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 <[email protected]> +# +# 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 <[email protected]>") + @$(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
