vim: update to 9.1.0984
[oi-userland.git] / components / library / telegramdb / Makefile
blobc4d980bdf76f59fa71f3ba65444282d6e4d4ce09
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 include ../../../make-rules/shared-macros.mk
35 # the FMRI is telegramdb , the project is tdlib, component is td
37 COMPONENT_NAME= td
38 COMPONENT_VERSION= 1.6.0
39 COMPONENT_REVISION= 1
40 COMPONENT_SUMMARY= Telegram Database Library
41 COMPONENT_CLASSIFICATION=System/Libraries
42 COMPONENT_PROJECT_URL= https://core.telegram.org/tdlib
43 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
44 COMPONENT_ARCHIVE= $(COMPONENT_NAME)-$(COMPONENT_VERSION).tar.gz
45 COMPONENT_ARCHIVE_HASH= sha256:9dce57a96f9d4bac8f99aab13ef5cbf6fed04b234a5d22dfa7ef7dce06ea43f8
46 COMPONENT_ARCHIVE_URL= https://github.com/tdlib/td/archive/v$(COMPONENT_VERSION).tar.gz
47 COMPONENT_FMRI= library/telegramdb
48 COMPONENT_LICENSE= BSL-1.0
49 COMPONENT_LICENSE_FILE= LICENSE_1_0.txt
51 # there are tests in the tdlib but currently we don't run them yet
52 # we currently are at version 1.6.0 - that is what the Squeak client requires
53 # there is an open request upstream to support 1.8.0
54 TEST_TARGET = $(NO_TESTS)
56 DROP_STATIC_LIBRARIES = yes
58 include $(WS_MAKE_RULES)/common.mk
60 CMAKE_OPTIONS += -DCMAKE_C_COMPILER=$(CC)
61 CMAKE_OPTIONS += -DBIN_INSTALL_DIR=/usr/$(CMAKE_LIBDIR.$(BITS))
62 CMAKE_OPTIONS += -DLIB_INSTALL_DIR=/usr/$(CMAKE_LIBDIR.$(BITS))
63 CMAKE_OPTIONS += -DCMAKE_BUILD_TYPE=Release
65 REQUIRED_PACKAGES += developer/gperf
67 # Auto-generated dependencies
68 REQUIRED_PACKAGES += $(GCC_RUNTIME_PKG)
69 REQUIRED_PACKAGES += $(GXX_RUNTIME_PKG)
70 REQUIRED_PACKAGES += $(OPENSSL_PKG)
71 REQUIRED_PACKAGES += $(OPENSSL_PKG)/32
72 REQUIRED_PACKAGES += library/zlib
73 REQUIRED_PACKAGES += system/library
74 REQUIRED_PACKAGES += system/library/math