Telegram: try to fix build

This commit is contained in:
Gerasim Troeglazov
2021-03-20 19:26:27 +10:00
parent 71e221ace4
commit 5764decc09

View File

@@ -3,7 +3,7 @@ DESCRIPTION="Unofficial build of the original Telegram client for Haiku."
HOMEPAGE="https://www.telegram.org/"
COPYRIGHT="2013-2021 Telegram"
LICENSE="GNU GPL v3"
REVISION="1"
REVISION="2"
SOURCE_URI="https://github.com/telegramdesktop/tdesktop/releases/download/v$portVersion/tdesktop-$portVersion-full.tar.gz"
CHECKSUM_SHA256="ee50aa82e0c0515c2082a37496ffb65c7f83bd117805ee5bf9147c1777770337"
SOURCE_FILENAME="tdesktop-$portVersion-full.tar.gz"
@@ -57,6 +57,7 @@ REQUIRES="
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
gcc${secondaryArchSuffix}_syslibs
devel:libavcodec$secondaryArchSuffix
devel:libavformat$secondaryArchSuffix
devel:libavutil$secondaryArchSuffix
@@ -100,8 +101,8 @@ BUILD_PREREQUIRES="
BUILD()
{
export CC=clang
export CXX=clang++
export CC=/bin/clang
export CXX=/bin/clang++
export DISABLE_ASLR=1
# get API_ID and API_HASH from Debian
@@ -126,6 +127,8 @@ BUILD()
cmake .. \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_C_FLAGS="-Wno-unknown-warning-option" \
-DCMAKE_CXX_FLAGS="-Wno-unknown-warning-option" \
-DTDESKTOP_API_TEST=OFF \
-DTDESKTOP_DISABLE_GTK_INTEGRATION=ON \
-DDESKTOP_APP_DISABLE_CRASH_REPORTS=ON \
@@ -140,7 +143,7 @@ BUILD()
-DTDESKTOP_API_ID=$TELEGRAM_API_ID \
-DTDESKTOP_API_HASH=$TELEGRAM_API_HASH
make $jobArgs
make
}
INSTALL()