llhttp: update to 9.2.1
This commit is contained in:
parent
b8153fd862
commit
b5d4cb1ce0
@ -3679,7 +3679,7 @@ libcaf_core.so.0.18.0 zeek-4.0.0_1
|
|||||||
libcaf_io.so.0.18.0 zeek-4.0.0_1
|
libcaf_io.so.0.18.0 zeek-4.0.0_1
|
||||||
libcaf_openssl.so.0.18.0 zeek-4.0.0_1
|
libcaf_openssl.so.0.18.0 zeek-4.0.0_1
|
||||||
libbinpac.so.0 zeek-3.2.4_2
|
libbinpac.so.0 zeek-3.2.4_2
|
||||||
libllhttp.so.1 llhttp-1.0.1_1
|
libllhttp.so.9.2 llhttp-9.2.1_1
|
||||||
libpinyin.so.15 libpinyin-2.8.1_1
|
libpinyin.so.15 libpinyin-2.8.1_1
|
||||||
libzhuyin.so.15 libzhuyin-2.8.1_1
|
libzhuyin.so.15 libzhuyin-2.8.1_1
|
||||||
libuhd.so.4.6.0 uhd-4.6.0.0_1
|
libuhd.so.4.6.0 uhd-4.6.0.0_1
|
||||||
|
@ -1,25 +0,0 @@
|
|||||||
# Makefile template for shared library
|
|
||||||
|
|
||||||
CC ?= gcc
|
|
||||||
override CFLAGS += -fPIC -Wall -Wextra -O2 -DNDEBUG -Iinclude
|
|
||||||
override LDFLAGS += -shared -Wl,-soname,libllhttp.so.1
|
|
||||||
RM = rm -f
|
|
||||||
TARGET_LIB = libllhttp.so.1.0
|
|
||||||
|
|
||||||
SRCS = src/api.c src/http.c src/llhttp.c
|
|
||||||
OBJS = $(SRCS:.c=.o)
|
|
||||||
|
|
||||||
.PHONY: all
|
|
||||||
all: ${TARGET_LIB}
|
|
||||||
|
|
||||||
$(TARGET_LIB): $(OBJS)
|
|
||||||
$(CC) $(LDFLAGS) -o $@ $^
|
|
||||||
|
|
||||||
$(SRCS:.c=.d):%.d:%.c
|
|
||||||
$(CC) $(CFLAGS) -MM $< >$@
|
|
||||||
|
|
||||||
include $(SRCS:.c=.d)
|
|
||||||
|
|
||||||
.PHONY: clean
|
|
||||||
clean:
|
|
||||||
-${RM} ${TARGET_LIB} ${OBJS} $(SRCS:.c=.d)
|
|
17
srcpkgs/llhttp/patches/allow-build-type-none.patch
Normal file
17
srcpkgs/llhttp/patches/allow-build-type-none.patch
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||||
|
index 87a6692..e48c81b 100644
|
||||||
|
--- a/CMakeLists.txt
|
||||||
|
+++ b/CMakeLists.txt
|
||||||
|
@@ -14,9 +14,9 @@ if(NOT CMAKE_CONFIGURATION_TYPES)
|
||||||
|
set(CMAKE_BUILD_TYPE RELWITHDEBINFO CACHE STRING "" FORCE)
|
||||||
|
else()
|
||||||
|
string(TOUPPER ${CMAKE_BUILD_TYPE} CMAKE_BUILD_TYPE)
|
||||||
|
- if(NOT CMAKE_BUILD_TYPE IN_LIST allowableBuildTypes)
|
||||||
|
- message(FATAL_ERROR "Invalid build type: ${CMAKE_BUILD_TYPE}")
|
||||||
|
- endif()
|
||||||
|
+ # if(NOT CMAKE_BUILD_TYPE IN_LIST allowableBuildTypes)
|
||||||
|
+ # message(FATAL_ERROR "Invalid build type: ${CMAKE_BUILD_TYPE}")
|
||||||
|
+ # endif()
|
||||||
|
endif()
|
||||||
|
endif()
|
||||||
|
|
@ -4,9 +4,9 @@
|
|||||||
# or at least a revbump in the same pull request since they work in-sync.
|
# or at least a revbump in the same pull request since they work in-sync.
|
||||||
|
|
||||||
pkgname=llhttp
|
pkgname=llhttp
|
||||||
version=2.2.1
|
version=9.2.1
|
||||||
revision=1
|
revision=1
|
||||||
build_style=gnu-makefile
|
build_style=cmake
|
||||||
short_desc="Port of http_parser to llparse"
|
short_desc="Port of http_parser to llparse"
|
||||||
maintainer="Enno Boland <gottox@voidlinux.org>"
|
maintainer="Enno Boland <gottox@voidlinux.org>"
|
||||||
license="MIT"
|
license="MIT"
|
||||||
@ -14,18 +14,9 @@ homepage="https://llhttp.org/"
|
|||||||
# _always_ use releases. Those have the C code generated, otherwise
|
# _always_ use releases. Those have the C code generated, otherwise
|
||||||
# we'd have a dep loop nodejs<->llhttp
|
# we'd have a dep loop nodejs<->llhttp
|
||||||
distfiles="https://github.com/nodejs/llhttp/archive/release/v${version}.tar.gz"
|
distfiles="https://github.com/nodejs/llhttp/archive/release/v${version}.tar.gz"
|
||||||
checksum=3e3de5bd2bef95fa431952e5e6766eab1c64f881c9f8474fe159a00431354469
|
checksum=3c163891446e529604b590f9ad097b2e98b5ef7e4d3ddcf1cf98b62ca668f23e
|
||||||
|
|
||||||
post_extract() {
|
post_install() {
|
||||||
# No need to pull in gyp for such a simple Makefile...
|
|
||||||
cp ${FILESDIR}/Makefile ${wrksrc}
|
|
||||||
}
|
|
||||||
|
|
||||||
do_install() {
|
|
||||||
vinstall libllhttp.so.1.0 755 /usr/lib
|
|
||||||
ln -s libllhttp.so.1.0 ${DESTDIR}/usr/lib/libllhttp.so.1
|
|
||||||
ln -s libllhttp.so.1 ${DESTDIR}/usr/lib/libllhttp.so
|
|
||||||
vcopy include /usr
|
|
||||||
vlicense LICENSE-MIT
|
vlicense LICENSE-MIT
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -34,6 +25,8 @@ llhttp-devel_package() {
|
|||||||
depends="${sourcepkg}-${version}_${revision}"
|
depends="${sourcepkg}-${version}_${revision}"
|
||||||
pkg_install() {
|
pkg_install() {
|
||||||
vmove usr/include
|
vmove usr/include
|
||||||
|
vmove usr/lib/cmake
|
||||||
|
vmove usr/lib/pkgconfig
|
||||||
vmove "usr/lib/*.so"
|
vmove "usr/lib/*.so"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user