tree-sitter: update to 0.24.5
[oi-userland.git] / components / library / cryptopp / Makefile
blob7bdae9fce7271d24d1500dafcea2519e88eaed8a
2 # This file and its contents are supplied under the terms of the
3 # Common Development and Distribution License ("CDDL"). You may
4 # only use this file in accordance with the terms of the CDDL.
6 # A full copy of the text of the CDDL should have accompanied this
7 # source. A copy of the CDDL is also available via the Internet at
8 # http://www.illumos.org/license/CDDL.
12 # Copyright 2022, Daniel Chan
13 # Copyright 2022-2023 Niklas Poslovski
16 BUILD_STYLE= justmake
17 include ../../../make-rules/shared-macros.mk
19 COMPONENT_NAME= cryptopp
20 COMPONENT_VERSION_MAJOR=8
21 COMPONENT_VERSION_MINOR=9
22 COMPONENT_VERSION_PATCH=0
23 COMPONENT_VERSION= $(COMPONENT_VERSION_MAJOR).$(COMPONENT_VERSION_MINOR).$(COMPONENT_VERSION_PATCH)
24 COMPONENT_REVISION= 1
25 COMPONENT_SUMMARY= Free C++ Class Library of Cryptographic Schemes
26 COMPONENT_PROJECT_URL= https://cryptopp.com/
27 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
28 COMPONENT_ARCHIVE= $(COMPONENT_SRC).zip
29 COMPONENT_ARCHIVE_URL= https://github.com/weidai11/$(COMPONENT_NAME)/releases/download/CRYPTOPP_$(COMPONENT_VERSION_MAJOR)_$(COMPONENT_VERSION_MINOR)_$(COMPONENT_VERSION_PATCH)/$(COMPONENT_NAME)$(COMPONENT_VERSION_MAJOR)$(COMPONENT_VERSION_MINOR)$(COMPONENT_VERSION_PATCH).zip
30 COMPONENT_ARCHIVE_HASH= sha256:4cc0ccc324625b80b695fcd3dee63a66f1a460d3e51b71640cdbfc4cd1a3779c
31 COMPONENT_FMRI= library/cryptopp
32 COMPONENT_CLASSIFICATION=System/Libraries
33 COMPONENT_LICENSE= BSLv1
34 COMPONENT_LICENSE_FILE= License.txt
36 include $(WS_MAKE_RULES)/common.mk
38 UNPACK_ARGS += -r $(COMPONENT_SRC)
39 CXXFLAGS += -g2
40 CXXFLAGS += -fPIC
42 COMPONENT_BUILD_GMAKE_ARGS += file=GNUmakefile
43 COMPONENT_BUILD_GMAKE_ARGS += IS_SUN=1
44 COMPONENT_BUILD_GMAKE_ARGS += libcryptopp.so
45 COMPONENT_BUILD_GMAKE_ARGS += libcryptopp.pc
46 COMPONENT_BUILD_GMAKE_ARGS += cryptest.exe
47 COMPONENT_INSTALL_ARGS += file=GNUmakefile
48 COMPONENT_INSTALL_ARGS += PREFIX=/usr
49 COMPONENT_INSTALL_ARGS += LIBDIR=/usr/lib/amd64
50 COMPONENT_TEST_TRANSFORMS += \
51 '-n ' \
52 '-e "/^passed/p" ' \
53 '-e "/^behaved as expected/p" ' \
54 '-e "/^failed/p" ' \
55 '-e "/^did not behave as expected/p" ' \
56 '-e "/^test was not run/p" ' \
57 '-e "/^tests were not run/p" '
59 # Auto-generated dependencies
60 REQUIRED_PACKAGES += $(GCC_RUNTIME_PKG)
61 REQUIRED_PACKAGES += $(GXX_RUNTIME_PKG)
62 REQUIRED_PACKAGES += system/library
63 REQUIRED_PACKAGES += system/library/math