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, Niklas Poslovski
17 include ..
/..
/..
/make-rules
/shared-macros.mk
19 COMPONENT_NAME
= cryptopp
20 COMPONENT_VERSION_MAJOR
=8
21 COMPONENT_VERSION_MINOR
=7
22 COMPONENT_VERSION_PATCH
=0
23 COMPONENT_VERSION
= $(COMPONENT_VERSION_MAJOR
).
$(COMPONENT_VERSION_MINOR
).
$(COMPONENT_VERSION_PATCH
)
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
:d0d3a28fcb5a1f6ed66b3adf57ecfaed234a7e194e42be465c2ba70c744538dd
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
)
42 COMPONENT_BUILD_GMAKE_ARGS
+= file
=GNUmakefile
43 COMPONENT_BUILD_GMAKE_ARGS
+= IS_SUN
=1
44 COMPONENT_BUILD_GMAKE_ARGS
+= libcryptopp.a
45 COMPONENT_BUILD_GMAKE_ARGS
+= libcryptopp.so
46 COMPONENT_BUILD_GMAKE_ARGS
+= libcryptopp.
pc
47 COMPONENT_BUILD_GMAKE_ARGS
+= cryptest.exe
48 COMPONENT_INSTALL_ARGS
+= file
=GNUmakefile
49 COMPONENT_INSTALL_ARGS
+= PREFIX
=/usr
50 COMPONENT_INSTALL_ARGS
+= LIBDIR
=/usr
/lib
/amd64
51 COMPONENT_TEST_TRANSFORMS
+= \
54 '-e "/^behaved as expected/p" ' \
56 '-e "/^did not behave as expected/p" ' \
57 '-e "/^test was not run/p" ' \
58 '-e "/^tests were not run/p" '
60 # Auto-generated dependencies
61 REQUIRED_PACKAGES
+= $(GCC_RUNTIME_PKG
)
62 REQUIRED_PACKAGES
+= $(GXX_RUNTIME_PKG
)
63 REQUIRED_PACKAGES
+= system
/library
64 REQUIRED_PACKAGES
+= system
/library
/math