Re: git: 7f38c6b7d630 - main - net-im/telegram-desktop: pretend FreeBSD is Linux

From: Sergey A. Osokin <osa_at_freebsd.org>
Date: Sun, 08 Jan 2023 21:40:44 UTC
Thanks for the update, Adriaan.

On Sun, Jan 08, 2023 at 09:36:21PM +0000, Adriaan de Groot wrote:
> The branch main has been updated by adridg:
> 
> URL: https://cgit.FreeBSD.org/ports/commit/?id=7f38c6b7d6302846e806592db36f43e32a785b8b
> 
> -CMAKE_ARGS=	-DTDESKTOP_API_ID=${TELEGRAM_API_ID} -DTDESKTOP_API_HASH=${TELEGRAM_API_HASH}
> +CMAKE_ARGS=	-DTDESKTOP_API_ID=${TELEGRAM_API_ID} -DTDESKTOP_API_HASH=${TELEGRAM_API_HASH} \
> +		-DLINUX=1

Is there any specific reason to add this since it's already there?

Plese see for details,
https://cgit.freebsd.org/ports/commit/?id=75571883d7754bf0c41ed1c509881f3a90c6bc90

> diff --git a/net-im/telegram-desktop/files/patch-CMakeLists.txt b/net-im/telegram-desktop/files/patch-CMakeLists.txt
> new file mode 100644
> index 000000000000..6a00ae221e94
> --- /dev/null
> +++ b/net-im/telegram-desktop/files/patch-CMakeLists.txt
> @@ -0,0 +1,10 @@
> +--- CMakeLists.txt.orig	2022-12-25 22:21:34.522573000 +0100
> ++++ CMakeLists.txt	2022-12-25 22:21:42.197358000 +0100
> +@@ -31,6 +31,7 @@
> +     HOMEPAGE_URL "https://desktop.telegram.org"
> + )
> + set_property(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} PROPERTY VS_STARTUP_PROJECT Telegram)
> ++set(LINUX 1)
> + 
> + get_filename_component(third_party_loc "Telegram/ThirdParty" REALPATH)
> + get_filename_component(submodules_loc "Telegram" REALPATH)

Do we really need this additional patch?

-- 
Sergey A. Osokin