Skip to content

Commit 50db9d7

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

File tree

4 files changed

+138
-0
lines changed

4 files changed

+138
-0
lines changed
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
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+
TEST_TARGET= $(NO_TESTS)
33+
include $(WS_MAKE_RULES)/common.mk
34+
35+
CMAKE_OPTIONS += -DCMAKE_BUILD_TYPE=Release
36+
CMAKE_OPTIONS += -DBUILD_SHARED_LIBS=ON
37+
CMAKE_OPTIONS += -DHTTPLIB_REQUIRE_OPENSSL=ON
38+
CMAKE_OPTIONS += -DHTTPLIB_REQUIRE_ZLIB=ON
39+
CMAKE_OPTIONS += -DHTTPLIB_REQUIRE_BROTLI=ON
40+
CMAKE_OPTIONS += -DHTTPLIB_COMPILE=ON
41+
# test require GTest (Googletest) suite
42+
CMAKE_OPTIONS += -DHTTPLIB_TEST=Off
43+
44+
# Auto-generated dependencies
45+
REQUIRED_PACKAGES += $(GCC_RUNTIME_PKG)
46+
REQUIRED_PACKAGES += $(GXX_RUNTIME_PKG)
47+
REQUIRED_PACKAGES += $(OPENSSL_PKG)
48+
REQUIRED_PACKAGES += library/brotli
49+
REQUIRED_PACKAGES += library/zlib
50+
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: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"dependencies": [
3+
"library/brotli",
4+
"library/security/openssl-3",
5+
"library/zlib",
6+
"system/library",
7+
"system/library/g++-13-runtime",
8+
"system/library/gcc-13-runtime"
9+
],
10+
"fmris": [
11+
"library/cpp-httplib"
12+
],
13+
"name": "cpp-httplib"
14+
}

0 commit comments

Comments
 (0)