mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 19:50:05 +02:00
qtox, new recipe (#5489)
This commit is contained in:
45
net-im/qtox/patches/qtox-1.17.3.patchset
Normal file
45
net-im/qtox/patches/qtox-1.17.3.patchset
Normal file
@@ -0,0 +1,45 @@
|
||||
From f84f1528028c47ab30f80025f122a2482e6468f5 Mon Sep 17 00:00:00 2001
|
||||
From: begasus <begasus@gmail.com>
|
||||
Date: Sun, 13 Dec 2020 15:04:22 +0000
|
||||
Subject: Haiku doesn't use sys/errno.h
|
||||
|
||||
|
||||
diff --git a/src/widget/qrwidget.cpp b/src/widget/qrwidget.cpp
|
||||
index fd29869..7656a2e 100644
|
||||
--- a/src/widget/qrwidget.cpp
|
||||
+++ b/src/widget/qrwidget.cpp
|
||||
@@ -25,7 +25,7 @@
|
||||
#include <QPainter>
|
||||
#include <qrencode.h>
|
||||
|
||||
-#ifdef Q_OS_WIN32
|
||||
+#if defined(Q_OS_WIN32) || defined(Q_OS_HAIKU)
|
||||
#include <errno.h>
|
||||
#else
|
||||
#include <sys/errno.h>
|
||||
--
|
||||
2.28.0
|
||||
|
||||
|
||||
From e55563b2d097de5bc07f7711ea7cad88311d08af Mon Sep 17 00:00:00 2001
|
||||
From: begasus <begasus@gmail.com>
|
||||
Date: Sun, 13 Dec 2020 15:08:08 +0000
|
||||
Subject: Don't use fstack-protector on Haiku also
|
||||
|
||||
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index c5191d5..a52837a 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -89,7 +89,7 @@ if (COMPILER_SUPPORTS_WDATE_TIME)
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wdate-time")
|
||||
endif()
|
||||
|
||||
-if (NOT WIN32)
|
||||
+if (NOT WIN32 AND NOT HAIKU)
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fstack-protector-all")
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wstack-protector")
|
||||
endif()
|
||||
--
|
||||
2.28.0
|
||||
|
||||
107
net-im/qtox/qtox-1.17.3.recipe
Normal file
107
net-im/qtox/qtox-1.17.3.recipe
Normal file
@@ -0,0 +1,107 @@
|
||||
SUMMARY="A chat, voice, video, and file transfer IM client"
|
||||
DESCRIPTION="qTox is a powerful Tox client that follows the Tox design \
|
||||
guidelines while running on all major platforms."
|
||||
HOMEPAGE="https://github.com/qTox/qTox"
|
||||
COPYRIGHT="2015-2020 qTox maintainers"
|
||||
LICENSE="GNU GPL v3"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://github.com/qTox/qTox/archive/v$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="2664940cedfc4d168995542f89a17d894c3d0675ac463eaf4bd4b55825d1787c"
|
||||
SOURCE_FILENAME="qtox-v$portVersion.tar.gz"
|
||||
SOURCE_DIR="qTox-$portVersion"
|
||||
PATCHES="qtox-$portVersion.patchset"
|
||||
|
||||
ARCHITECTURES="!x86_gcc2 x86_64"
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
|
||||
PROVIDES="
|
||||
qtox$secondaryArchSuffix = $portVersion
|
||||
cmd:qtox = $portVersion
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
lib:libavcodec$secondaryArchSuffix
|
||||
lib:libavdevice$secondaryArchSuffix
|
||||
lib:libavformat$secondaryArchSuffix
|
||||
lib:libavutil$secondaryArchSuffix
|
||||
lib:libexif$secondaryArchSuffix
|
||||
lib:libglib_2.0$secondaryArchSuffix
|
||||
lib:libintl$secondaryArchSuffix
|
||||
lib:libopenal$secondaryArchSuffix
|
||||
lib:libopus$secondaryArchSuffix
|
||||
lib:libqrencode$secondaryArchSuffix
|
||||
lib:libQt5Concurrent$secondaryArchSuffix
|
||||
lib:libQt5Core$secondaryArchSuffix
|
||||
lib:libQt5Gui$secondaryArchSuffix
|
||||
lib:libQt5Network$secondaryArchSuffix
|
||||
lib:libQt5OpenGL$secondaryArchSuffix
|
||||
lib:libQt5Svg$secondaryArchSuffix
|
||||
lib:libQt5Test$secondaryArchSuffix
|
||||
lib:libQt5Widgets$secondaryArchSuffix
|
||||
lib:libQt5Xml$secondaryArchSuffix
|
||||
lib:libsodium$secondaryArchSuffix
|
||||
lib:libsqlcipher$secondaryArchSuffix
|
||||
lib:libssp$secondaryArchSuffix
|
||||
lib:libswscale$secondaryArchSuffix
|
||||
lib:libtoxcore$secondaryArchSuffix
|
||||
lib:libvpx$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
devel:libavcodec$secondaryArchSuffix
|
||||
devel:libavdevice$secondaryArchSuffix
|
||||
devel:libavformat$secondaryArchSuffix
|
||||
devel:libavutil$secondaryArchSuffix
|
||||
devel:libexif$secondaryArchSuffix
|
||||
devel:libglib_2.0$secondaryArchSuffix
|
||||
devel:libintl$secondaryArchSuffix
|
||||
devel:libopenal$secondaryArchSuffix
|
||||
devel:libopus$secondaryArchSuffix
|
||||
devel:libqrencode$secondaryArchSuffix
|
||||
devel:libQt5Concurrent$secondaryArchSuffix
|
||||
devel:libQt5Core$secondaryArchSuffix
|
||||
devel:libQt5Gui$secondaryArchSuffix
|
||||
devel:libQt5Network$secondaryArchSuffix
|
||||
devel:libQt5OpenGL$secondaryArchSuffix
|
||||
devel:libQt5Svg$secondaryArchSuffix
|
||||
devel:libQt5Test$secondaryArchSuffix
|
||||
devel:libQt5Widgets$secondaryArchSuffix
|
||||
devel:libQt5Xml$secondaryArchSuffix
|
||||
devel:libsodium$secondaryArchSuffix
|
||||
devel:libsqlcipher$secondaryArchSuffix
|
||||
devel:libssp$secondaryArchSuffix
|
||||
devel:libswscale$secondaryArchSuffix
|
||||
devel:libtoxcore$secondaryArchSuffix
|
||||
devel:libvpx$secondaryArchSuffix
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:cmake
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:lrelease$secondaryArchSuffix >= 5
|
||||
cmd:make
|
||||
cmd:pkg_config$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
mkdir -p build && cd build
|
||||
cmake -DCMAKE_BUILD_TYPE=Release \
|
||||
-DCMAKE_INSTALL_PREFIX=$prefix \
|
||||
-DCMAKE_EXE_LINKER_FLAGS=-lnetwork ..
|
||||
make $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
cd build
|
||||
make install
|
||||
rm -rf $prefix/share
|
||||
addAppDeskbarSymlink $prefix/bin/qtox qTox
|
||||
}
|
||||
|
||||
TEST()
|
||||
{
|
||||
cd build
|
||||
make test
|
||||
}
|
||||
Reference in New Issue
Block a user