mirror of
https://github.com/netbirdio/FreeBSD-ports.git
synced 2026-05-22 18:42:42 -07:00
net-im/tde2e: add new port, a framework for net-im/telegram-desktop
This commit is contained in:
@@ -141,6 +141,7 @@
|
||||
SUBDIR += spectral
|
||||
SUBDIR += ssh-chat
|
||||
SUBDIR += sshout
|
||||
SUBDIR += tde2e
|
||||
SUBDIR += tdlib
|
||||
SUBDIR += tdlib-purple
|
||||
SUBDIR += telegram-cli
|
||||
|
||||
@@ -0,0 +1,30 @@
|
||||
PORTNAME= tde2e
|
||||
DISTVERSIONPREFIX= v
|
||||
DISTVERSION= 1.8.49
|
||||
CATEGORIES= net-im devel
|
||||
|
||||
MAINTAINER= osa@FreeBSD.org
|
||||
COMMENT= Library for building Telegram clients
|
||||
WWW= https://github.com/tdlib/td
|
||||
|
||||
LICENSE= BSL
|
||||
|
||||
USES= cmake:testing compiler:c++14-lang gperf readline ssl
|
||||
|
||||
CONFLICTS_INSTALL= tdlib
|
||||
|
||||
USE_GITHUB= yes
|
||||
GH_ACCOUNT= tdlib
|
||||
GH_PROJECT= td
|
||||
GH_TAGNAME= 51743df # 1.8.49 + patches
|
||||
|
||||
CMAKE_ON= TD_INSTALL_STATIC_LIBRARIES TD_E2E_ONLY
|
||||
CMAKE_OFF= BUILD_TESTING FREEBSD_BUILD_BENCHMARKS
|
||||
|
||||
PLIST_SUB+= LIBVERSION=${PORTVERSION}
|
||||
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} -e 's|%%COMMIT%%|${GH_TAGNAME}|g' \
|
||||
${WRKSRC}/CMake/GetGitRevisionDescription.cmake
|
||||
|
||||
.include <bsd.port.mk>
|
||||
@@ -0,0 +1,3 @@
|
||||
TIMESTAMP = 1748015088
|
||||
SHA256 (tdlib-td-v1.8.49-51743df_GH0.tar.gz) = 19969a245e584e79f8ba0588cc8f3e762ef21a406a2050e54da1dea77de5a7cf
|
||||
SIZE (tdlib-td-v1.8.49-51743df_GH0.tar.gz) = 5474589
|
||||
@@ -0,0 +1,11 @@
|
||||
--- CMakeLists.txt.orig 2025-05-23 15:52:11 UTC
|
||||
+++ CMakeLists.txt
|
||||
@@ -238,7 +238,7 @@ endif()
|
||||
add_subdirectory(test)
|
||||
endif()
|
||||
|
||||
-if (NOT CMAKE_CROSSCOMPILING)
|
||||
+if (FREEBSD_BUILD_BENCHMARKS AND NOT CMAKE_CROSSCOMPILING)
|
||||
add_subdirectory(benchmark)
|
||||
endif()
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
--- CMake/GetGitRevisionDescription.cmake.orig 2025-05-10 18:47:56 UTC
|
||||
+++ CMake/GetGitRevisionDescription.cmake
|
||||
@@ -67,7 +67,7 @@ function(get_git_head_revision _refspecvar _hashvar)
|
||||
endif()
|
||||
if (GIT_DIR STREQUAL "")
|
||||
set(${_refspecvar} "GITDIR-NOTFOUND" PARENT_SCOPE)
|
||||
- set(${_hashvar} "GITDIR-NOTFOUND" PARENT_SCOPE)
|
||||
+ set(${_hashvar} "51743df" PARENT_SCOPE)
|
||||
return()
|
||||
endif()
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
TDLib (Telegram Database library) is a cross-platform library for building
|
||||
Telegram clients. It can be easily used from almost any programming language.
|
||||
@@ -0,0 +1,10 @@
|
||||
include/td/e2e/e2e_api.h
|
||||
include/td/e2e/e2e_errors.h
|
||||
lib/cmake/tde2e/tde2eConfig.cmake
|
||||
lib/cmake/tde2e/tde2eConfigVersion.cmake
|
||||
lib/cmake/tde2e/tde2eStaticTargets-%%CMAKE_BUILD_TYPE%%.cmake
|
||||
lib/cmake/tde2e/tde2eStaticTargets.cmake
|
||||
lib/libtde2e.a
|
||||
lib/libtdutils.a
|
||||
libdata/pkgconfig/tde2e.pc
|
||||
libdata/pkgconfig/tdutils.pc
|
||||
Reference in New Issue
Block a user