Skip to content

Commit ee87573

Browse files
committed
cpp-httplib - new package version 0.18.3
1 parent 2095685 commit ee87573

File tree

5 files changed

+161
-0
lines changed

5 files changed

+161
-0
lines changed
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
#
2+
# This file and its contents are supplied under the terms of the
3+
# Common Development and Distribution License ("CDDL"), version 1.0.
4+
# You may only use this file in accordance with the terms of version
5+
# 1.0 of the CDDL.
6+
#
7+
# A full copy of the text of the CDDL should have accompanied this
8+
# source. A copy of the CDDL is also available via the Internet at
9+
# http://www.illumos.org/license/CDDL.
10+
#
11+
12+
#
13+
# Copyright 2024 Friedrich Kink
14+
#
15+
16+
BUILD_STYLE= cmake
17+
include ../../../make-rules/shared-macros.mk
18+
19+
COMPONENT_NAME= cpp-httplib
20+
COMPONENT_VERSION= 0.18.3
21+
COMPONENT_SUMMARY= A C++ header-only HTTP/HTTPS server and client library
22+
COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
23+
COMPONENT_ARCHIVE= v$(COMPONENT_VERSION).tar.gz
24+
COMPONENT_ARCHIVE_HASH= sha256:a0567bcd6c3fe5cef1b329b96245119047f876b49e06cc129a36a7a8dffe173e
25+
COMPONENT_ARCHIVE_URL= https://github.com/yhirose/$(COMPONENT_NAME)/archive/refs/tags/$(COMPONENT_ARCHIVE)
26+
COMPONENT_PROJECT_URL= https://github.com/yhirose/$(COMPONENT_NAME)
27+
COMPONENT_FMRI= library/$(COMPONENT_NAME)
28+
COMPONENT_CLASSIFICATION=System/Libraries
29+
COMPONENT_LICENSE= MIT
30+
COMPONENT_LICENSE_FILE= LICENSE
31+
32+
include $(WS_MAKE_RULES)/common.mk
33+
34+
LDFLAGS += -lsocket
35+
36+
CMAKE_OPTIONS += -DCMAKE_BUILD_TYPE=Release
37+
CMAKE_OPTIONS += -DBUILD_SHARED_LIBS=ON
38+
CMAKE_OPTIONS += -DHTTPLIB_REQUIRE_OPENSSL=ON
39+
CMAKE_OPTIONS += -DHTTPLIB_REQUIRE_ZLIB=ON
40+
CMAKE_OPTIONS += -DHTTPLIB_REQUIRE_BROTLI=ON
41+
CMAKE_OPTIONS += -DHTTPLIB_COMPILE=ON
42+
CMAKE_OPTIONS += -DHTTPLIB_TEST=ON
43+
44+
# Do not change the order of these regexp transforms.
45+
COMPONENT_TEST_TRANSFORMS += \
46+
'-e "/Test /d" ' \
47+
'-e "/ Start/d" ' \
48+
'-e "/^Output/d" ' \
49+
'-e "/^Errors/d" ' \
50+
'-e "/^Use /d" '
51+
52+
# manually added packages
53+
REQUIRED_PACKAGES += developer/googletest
54+
55+
# Auto-generated dependencies
56+
REQUIRED_PACKAGES += $(GCC_RUNTIME_PKG)
57+
REQUIRED_PACKAGES += $(GXX_RUNTIME_PKG)
58+
REQUIRED_PACKAGES += $(OPENSSL_PKG)
59+
REQUIRED_PACKAGES += library/brotli
60+
REQUIRED_PACKAGES += library/zlib
61+
REQUIRED_PACKAGES += system/library
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
#
2+
# This file and its contents are supplied under the terms of the
3+
# Common Development and Distribution License ("CDDL"), version 1.0.
4+
# You may only use this file in accordance with the terms of version
5+
# 1.0 of the CDDL.
6+
#
7+
# A full copy of the text of the CDDL should have accompanied this
8+
# source. A copy of the CDDL is also available via the Internet at
9+
# http://www.illumos.org/license/CDDL.
10+
#
11+
12+
#
13+
# Copyright 2024 Friedrich Kink
14+
#
15+
16+
set name=pkg.fmri value=pkg:/$(COMPONENT_FMRI)@$(IPS_COMPONENT_VERSION),$(BUILD_VERSION)
17+
set name=pkg.human-version value=$(HUMAN_VERSION)
18+
set name=pkg.summary value="$(COMPONENT_SUMMARY)"
19+
set name=info.classification value="$(COMPONENT_CLASSIFICATION)"
20+
set name=info.upstream-url value=$(COMPONENT_PROJECT_URL)
21+
set name=info.source-url value=$(COMPONENT_ARCHIVE_URL)
22+
set name=org.opensolaris.consolidation value=$(CONSOLIDATION)
23+
24+
license $(COMPONENT_LICENSE_FILE) license='$(COMPONENT_LICENSE)'
25+
26+
file path=usr/include/httplib.h
27+
file path=usr/lib/$(MACH64)/cmake/httplib/FindBrotli.cmake
28+
file path=usr/lib/$(MACH64)/cmake/httplib/httplibConfig.cmake
29+
file path=usr/lib/$(MACH64)/cmake/httplib/httplibConfigVersion.cmake
30+
file path=usr/lib/$(MACH64)/cmake/httplib/httplibTargets-release.cmake
31+
file path=usr/lib/$(MACH64)/cmake/httplib/httplibTargets.cmake
32+
link path=usr/lib/$(MACH64)/libcpp-httplib.so target=libcpp-httplib.so.0.18
33+
file path=usr/lib/$(MACH64)/libcpp-httplib.so.$(HUMAN_VERSION)
34+
link path=usr/lib/$(MACH64)/libcpp-httplib.so.0.18 \
35+
target=libcpp-httplib.so.$(HUMAN_VERSION)
36+
file path=usr/share/doc/httplib/README.md
37+
file path=usr/share/licenses/httplib/LICENSE
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
#
2+
# This file and its contents are supplied under the terms of the
3+
# Common Development and Distribution License ("CDDL"), version 1.0.
4+
# You may only use this file in accordance with the terms of version
5+
# 1.0 of the CDDL.
6+
#
7+
# A full copy of the text of the CDDL should have accompanied this
8+
# source. A copy of the CDDL is also available via the Internet at
9+
# http://www.illumos.org/license/CDDL.
10+
#
11+
12+
#
13+
# Copyright 2024 <contributor>
14+
#
15+
16+
set name=pkg.fmri value=pkg:/$(COMPONENT_FMRI)@$(IPS_COMPONENT_VERSION),$(BUILD_VERSION)
17+
set name=pkg.human-version value=$(HUMAN_VERSION)
18+
set name=pkg.summary value="$(COMPONENT_SUMMARY)"
19+
set name=info.classification value="$(COMPONENT_CLASSIFICATION)"
20+
set name=info.upstream-url value=$(COMPONENT_PROJECT_URL)
21+
set name=info.source-url value=$(COMPONENT_ARCHIVE_URL)
22+
set name=org.opensolaris.consolidation value=$(CONSOLIDATION)
23+
24+
license $(COMPONENT_LICENSE_FILE) license='$(COMPONENT_LICENSE)'
25+
26+
file path=usr/include/httplib.h
27+
file path=usr/lib/$(MACH64)/cmake/httplib/FindBrotli.cmake
28+
file path=usr/lib/$(MACH64)/cmake/httplib/httplibConfig.cmake
29+
file path=usr/lib/$(MACH64)/cmake/httplib/httplibConfigVersion.cmake
30+
file path=usr/lib/$(MACH64)/cmake/httplib/httplibTargets-release.cmake
31+
file path=usr/lib/$(MACH64)/cmake/httplib/httplibTargets.cmake
32+
link path=usr/lib/$(MACH64)/libcpp-httplib.so target=libcpp-httplib.so.0.18
33+
file path=usr/lib/$(MACH64)/libcpp-httplib.so.$(HUMAN_VERSION)
34+
link path=usr/lib/$(MACH64)/libcpp-httplib.so.0.18 \
35+
target=libcpp-httplib.so.$(HUMAN_VERSION)
36+
file path=usr/share/doc/httplib/README.md
37+
file path=usr/share/licenses/httplib/LICENSE
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
--- cpp-httplib-0.18.3/test/test.cc 2024-12-03 12:33:00.000000000 +0100
2+
+++ cpp-httplib-0.18.3/test/test.cc.new 2024-12-08 15:42:59.644483507 +0100
3+
@@ -2995,7 +2995,7 @@
4+
t_.join();
5+
}
6+
7+
- map<string, string> persons_;
8+
+ std::map<std::string, std::string> persons_;
9+
#ifdef CPPHTTPLIB_OPENSSL_SUPPORT
10+
SSLClient cli_;
11+
SSLServer svr_;
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"dependencies": [
3+
"developer/googletest",
4+
"library/brotli",
5+
"library/security/openssl-3",
6+
"library/zlib",
7+
"system/library",
8+
"system/library/g++-13-runtime",
9+
"system/library/gcc-13-runtime"
10+
],
11+
"fmris": [
12+
"library/cpp-httplib"
13+
],
14+
"name": "cpp-httplib"
15+
}

0 commit comments

Comments
 (0)