json-glib: update to 1.10.6
[oi-userland.git] / components / library / telegramdb / Makefile
blob7a7356ea6ababbb2af617e0f5a76abb54221ff74
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.
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.
13 # Copyright 2022 David Stes
16 # currently build with gcc-11 instead of gcc-7 (out of memory with gcc-7)
17 # Tdlib provides a php script to SplitSources which may help in the gcc-7 case
19 # 1.8.0 is easier to build than 1.6.0
20 # the Illumos and Solaris platforms were added in 1.7.0 or 1.8.0 to config.h
21 # and platform.h so they are supported target platforms
22 # also see CMake/illumos.cmake in the TdLib sources
24 # because we currently need 1.6.0 in Squeak, the CMakeLists.txt
25 # config.h and platform.h is patched so that 1.6.0 builds (as 1.8.0 does)
26 # see www.squeak.org for more information for general info on Squeak
27 # also see http://docs.openindiana.org/handbook/community/squeak/index.html
28 # the Telegram Squeak Client is at
29 # https://github.com/hpi-swa-teaching/TelegramClient
31 BUILD_BITS= 32_and_64
32 BUILD_STYLE= cmake
33 # USE_OPENSSL11= yes
34 include ../../../make-rules/shared-macros.mk
35 GCC_VERSION= 11
37 # the FMRI is telegramdb , the project is tdlib, component is td
39 COMPONENT_NAME= td
40 COMPONENT_VERSION= 1.6.0
41 COMPONENT_SUMMARY= Telegram Database Library
42 COMPONENT_CLASSIFICATION=System/Libraries
43 COMPONENT_PROJECT_URL= https://core.telegram.org/tdlib
44 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
45 COMPONENT_ARCHIVE= $(COMPONENT_NAME)-$(COMPONENT_VERSION).tar.gz
46 COMPONENT_ARCHIVE_HASH= sha256:9dce57a96f9d4bac8f99aab13ef5cbf6fed04b234a5d22dfa7ef7dce06ea43f8
47 COMPONENT_ARCHIVE_URL= https://github.com/tdlib/td/archive/v$(COMPONENT_VERSION).tar.gz
48 COMPONENT_FMRI= library/telegramdb
49 COMPONENT_LICENSE= Boost Software License
50 COMPONENT_LICENSE_FILE= td.license
52 # there are tests in the tdlib but currently we don't run them yet
53 # we currently are at version 1.6.0 - that is what the Squeak client requires
54 # there is an open request upstream to support 1.8.0
55 TEST_TARGET = $(NO_TESTS)
57 include $(WS_MAKE_RULES)/common.mk
59 CMAKE_OPTIONS += -DCMAKE_C_COMPILER=$(CC)
60 CMAKE_OPTIONS += -DBIN_INSTALL_DIR=/usr/$(CMAKE_LIBDIR.$(BITS))
61 CMAKE_OPTIONS += -DLIB_INSTALL_DIR=/usr/$(CMAKE_LIBDIR.$(BITS))
62 CMAKE_OPTIONS += -DCMAKE_BUILD_TYPE=Release
64 REQUIRED_PACKAGES += developer/gperf
65 REQUIRED_PACKAGES += developer/gcc-11
67 # Auto-generated dependencies
68 REQUIRED_PACKAGES += $(GCC_RUNTIME_PKG)
69 REQUIRED_PACKAGES += $(GXX_RUNTIME_PKG)
70 REQUIRED_PACKAGES += library/security/openssl
71 REQUIRED_PACKAGES += library/zlib
72 REQUIRED_PACKAGES += system/library
73 REQUIRED_PACKAGES += system/library/math