pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

+telegram-desktop: Telegram Desktop messaging app



Module Name:	pkgsrc-wip
Committed By:	AcidBear <jake.slazenger%yandex.com@localhost>
Pushed By:	jakeSlaz
Date:		Sun Feb 9 22:42:43 2020 +0300
Changeset:	d88b1fd79b589f8d4471d047b9518ba9b1d916f7

Added Files:
	telegram-desktop/DESCR
	telegram-desktop/Makefile
	telegram-desktop/PLIST
	telegram-desktop/TODO
	telegram-desktop/distinfo
	telegram-desktop/options.mk

Log Message:
+telegram-desktop: Telegram Desktop messaging app

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=d88b1fd79b589f8d4471d047b9518ba9b1d916f7

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 telegram-desktop/DESCR      |  2 ++
 telegram-desktop/Makefile   | 54 +++++++++++++++++++++++++++++++++++++++++++++
 telegram-desktop/PLIST      |  0
 telegram-desktop/TODO       |  1 +
 telegram-desktop/distinfo   |  6 +++++
 telegram-desktop/options.mk | 49 ++++++++++++++++++++++++++++++++++++++++
 6 files changed, 112 insertions(+)

diffs:
diff --git a/telegram-desktop/DESCR b/telegram-desktop/DESCR
new file mode 100644
index 0000000000..dc271202af
--- /dev/null
+++ b/telegram-desktop/DESCR
@@ -0,0 +1,2 @@
+The official desktop client for the Telegram messenger, based on the 
+Telegram API and the MTProto secure protocol.
diff --git a/telegram-desktop/Makefile b/telegram-desktop/Makefile
new file mode 100644
index 0000000000..5a266db51f
--- /dev/null
+++ b/telegram-desktop/Makefile
@@ -0,0 +1,54 @@
+# $NetBSD$
+
+GITHUB_PROJECT=	       telegramdesktop
+DIST_SUBDIR=           tdesktop
+TD_VERSION=            1.9.9
+DISTNAME=              telegram-desktop-${TD_VERSION}
+PKGREVISION=	       1
+CATEGORIES=            chat
+MASTER_SITES=          -https://github.com/${GITHUB_PROJECT}/${DIST_SUBDIR}/releases/download/v${TD_VERSION}/tdesktop-${TD_VERSION}-full.tar.gz
+WRKSRC=                ${WRKDIR}/tdesktop-${TD_VERSION}-full
+
+MAINTAINER=            jake.slazenger%yandex.com@localhost
+HOMEPAGE=              https://desktop.telegram.org/
+COMMENT=               Telegram Desktop messaging app
+LICENSE=               gnu-gpl-v3
+
+USE_LANGUAGES=	       c c++
+USE_CMAKE=             yes
+
+ONLY_FOR_COMPILER=     gcc
+USE_LANGUAGES=         c c++ gnu++14
+USE_CMAKE=             yes
+
+GCC_REQD=              8
+
+CMAKE_ARGS+=           -Ddisable_autoupdate=1
+CMAKE_ARGS+=           -DCMAKE_INSTALL_PREFIX=${PREFIX}/usr/pkg
+CMAKE_ARGS+=           -DCMAKE_BUILD_TYPE=Release
+CMAKE_ARGS+=           -DTDESKTOP_API_TEST=ON
+CMAKE_ARGS+=           -DDESKTOP_APP_USE_GLIBC_WRAPS=OFF
+CMAKE_ARGS+=           -DDESKTOP_APP_USE_PACKAGED=ON 
+CMAKE_ARGS+=           -DDESKTOP_APP_USE_PACKAGED_RLOTTIE=OFF
+CMAKE_ARGS+=           -DDESKTOP_APP_DISABLE_CRASH_REPORTS=ON
+CMAKE_ARGS+=           -DTDESKTOP_DISABLE_REGISTER_CUSTOM_SCHEME=ON
+CMAKE_ARGS+=           -DTDESKTOP_DISABLE_DESKTOP_FILE_GENERATION=ON
+CMAKE_ARGS+=           -DTDESKTOP_USE_PACKAGED_TGVOIP=OFF
+CMAKE_ARGS+=           -DDESKTOP_APP_SPECIAL_TARGET=""
+CMAKE_ARGS+=           -DTDESKTOP_LAUNCHER_BASENAME="telegram-desktop"
+
+.include "options.mk"
+
+.include "../../audio/libopus/buildlink3.mk"
+.include "../../audio/openal-soft/buildlink3.mk"
+.include "../../archivers/lz4/buildlink3.mk"
+.include "../../archivers/xz/buildlink3.mk"
+.include "../../devel/xxhash/buildlink3.mk"
+.include "../../multimedia/ffmpeg4/buildlink3.mk"
+.include "../../multimedia/libva/buildlink3.mk"
+.include "../../x11/qt5-qtbase/buildlink3.mk"
+.include "../../x11/qt5-qtimageformats/buildlink3.mk"
+.include "../../wip/minizip/buildlink3.mk"
+.include "../../wip/range-v3/buildlink3.mk"
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/telegram-desktop/PLIST b/telegram-desktop/PLIST
new file mode 100644
index 0000000000..e69de29bb2
diff --git a/telegram-desktop/TODO b/telegram-desktop/TODO
new file mode 100644
index 0000000000..07e99f9877
--- /dev/null
+++ b/telegram-desktop/TODO
@@ -0,0 +1 @@
+*make it build on NetBSD
diff --git a/telegram-desktop/distinfo b/telegram-desktop/distinfo
new file mode 100644
index 0000000000..825c2847f6
--- /dev/null
+++ b/telegram-desktop/distinfo
@@ -0,0 +1,6 @@
+$NetBSD$
+
+SHA1 (tdesktop/telegram-desktop-1.9.9.tar.gz) = 5f3bc72245f790300ed9816f35aa0db034b0dfa2
+RMD160 (tdesktop/telegram-desktop-1.9.9.tar.gz) = 077087a0b57d6950ab1431c7d8fa1143a7ebc6f9
+SHA512 (tdesktop/telegram-desktop-1.9.9.tar.gz) = ba6400e6f5eec5bda6e8a54b43846e695b2cce731cb6b39f17407cc39e3e9b8078d977253d29962671f30e33dbe012f8e40f340f781fd8ca73487e5f2d42e3de
+Size (tdesktop/telegram-desktop-1.9.9.tar.gz) = 25221934 bytes
diff --git a/telegram-desktop/options.mk b/telegram-desktop/options.mk
new file mode 100644
index 0000000000..22d64238ec
--- /dev/null
+++ b/telegram-desktop/options.mk
@@ -0,0 +1,49 @@
+# $NetBSD$
+
+PKG_OPTIONS_VAR=          PKG_OPTIONS.telegram-desktop
+
+PKG_SUPPORTED_OPTIONS=    gtk3 spell dbus libressl
+
+.include "../../mk/bsd.options.mk"
+
+###
+### GTK+3 integration
+###
+.if !empty(PKG_OPTIONS:Mgtk3)
+CMAKE_ARGS+=              -DTDESKTOP_DISABLE_GTK_INTEGRATION=OFF
+CMAKE_ARGS+=              -DTDESKTOP_FORCE_GTK_FILE_DIALOG=ON
+.include "../../devel/libappindicator/buildlink3.mk"
+.include "../../x11/gtk3/buildlink3.mk"
+.else
+CMAKE_ARGS+=              -DTDESKTOP_DISABLE_GTK_INTEGRATION=ON
+CMAKE_ARGS+=              -DTDESKTOP_FORCE_GTK_FILE_DIALOG=OFF
+.endif
+
+###
+### Spell checking
+###
+.if !empty(PKG_OPTIONS:Mspell)
+CMAKE_ARGS+=              -DDESKTOP_APP_DISABLE_SPELLCHECK=OFF
+.include "../../textproc/enchant/buildlink3.mk"
+.else
+CMAKE_ARGS+=              -DDESKTOP_APP_DISABLE_SPELLCHECK=ON
+.endif
+
+###
+### D-Bus integration
+###
+.if !empty(PKG_OPTIONS:Mdbus)
+CMAKE_ARGS+=              -DTDESKTOP_DISABLE_DBUS_INTEGRATION=OFF
+.include "../../sysutils/dbus/buildlink3.mk"
+.else
+CMAKE_ARGS+=              -DTDESKTOP_DISABLE_DBUS_INTEGRATION=ON
+.endif
+
+###
+### LibreSSL
+###
+.if !empty(PKG_OPTIONS:Mlibressl)
+.include "../../security/libressl/buildlink3.mk"
+.else
+.include "../../security/openssl/buildlink3.mk"
+.endif


Home | Main Index | Thread Index | Old Index