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 2023 Niklas Poslovski
16 include ..
/..
/..
/make-rules
/shared-macros.mk
18 COMPONENT_NAME
= mtxclient
19 COMPONENT_VERSION
= 0.9.2
21 COMPONENT_SUMMARY
= Client API library for the Matrix protocol
22 COMPONENT_PROJECT_URL
= https
://github.com
/Nheko-Reborn
/mtxclient
23 COMPONENT_FMRI
= network
/chat
/mtxclient
24 COMPONENT_SRC
= $(COMPONENT_NAME
)-$(COMPONENT_VERSION
)
25 COMPONENT_ARCHIVE
= $(COMPONENT_SRC
).
tar.gz
26 COMPONENT_ARCHIVE_HASH
= sha256
:f55827fdba226c6fc409cf000c72b13cc6d069ec1300283a7239aa19c90c5f56
27 COMPONENT_ARCHIVE_URL
= https
://github.com
/Nheko-Reborn
/$(COMPONENT_NAME
)/archive
/refs
/tags/v
$(COMPONENT_VERSION
).
tar.gz
28 COMPONENT_CLASSIFICATION
= Applications
/Internet
29 COMPONENT_LICENSE
= MIT
30 COMPONENT_LICENSE_FILE
= LICENSE
32 # Tests require Googletest which we don't have yet.
33 TEST_TARGET
= $(NO_TESTS
)
34 include $(WS_MAKE_RULES
)/common.mk
36 CMAKE_OPTIONS
+= -DBUILD_LIB_TESTS
=OFF
37 CMAKE_OPTIONS
+= -DBUILD_LIB_EXAMPLES
=OFF
39 # Manually added build dependencies
40 REQUIRED_PACKAGES
+= library
/c
++/nlohmann-json
42 # Auto-generated dependencies
43 REQUIRED_PACKAGES
+= $(GCC_RUNTIME_PKG
)
44 REQUIRED_PACKAGES
+= $(GXX_RUNTIME_PKG
)
45 REQUIRED_PACKAGES
+= library
/c
++/spdlog
46 REQUIRED_PACKAGES
+= library
/olm
47 REQUIRED_PACKAGES
+= library
/re2
48 REQUIRED_PACKAGES
+= library
/security
/openssl-31
49 REQUIRED_PACKAGES
+= system
/library
50 REQUIRED_PACKAGES
+= web
/coeurl