1SUMMARY="A chat, voice, video, and file transfer IM client" 2DESCRIPTION="qTox is a powerful Tox client that follows the Tox design \ 3guidelines while running on all major platforms." 4HOMEPAGE="https://github.com/qTox/qTox" 5COPYRIGHT="2015-2021 qTox maintainers" 6LICENSE="GNU GPL v3" 7REVISION="1" 8SOURCE_URI="https://github.com/qTox/qTox/archive/v$portVersion.tar.gz" 9CHECKSUM_SHA256="cd0781241b4ea536da90ce8c72ad9f2aa9bbdf9fbae5d38ee645e30d790fa7f2" 10SOURCE_FILENAME="qtox-v$portVersion.tar.gz" 11SOURCE_DIR="qTox-$portVersion" 12PATCHES="qtox-$portVersion.patchset" 13ADDITIONAL_FILES="qtox.rdef.in" 14 15ARCHITECTURES="all !x86_gcc2" 16SECONDARY_ARCHITECTURES="x86" 17 18PROVIDES=" 19 qtox$secondaryArchSuffix = $portVersion 20 app:qTox = $portVersion 21 " 22REQUIRES=" 23 haiku$secondaryArchSuffix 24 lib:libavcodec$secondaryArchSuffix 25 lib:libavdevice$secondaryArchSuffix 26 lib:libavformat$secondaryArchSuffix 27 lib:libavutil$secondaryArchSuffix 28 lib:libexif$secondaryArchSuffix 29 lib:libglib_2.0$secondaryArchSuffix 30 lib:libintl$secondaryArchSuffix 31 lib:libKF5SonnetCore$secondaryArchSuffix 32 lib:libopenal$secondaryArchSuffix 33 lib:libopus$secondaryArchSuffix 34 lib:libqrencode$secondaryArchSuffix 35 lib:libQt5Concurrent$secondaryArchSuffix 36 lib:libQt5Core$secondaryArchSuffix 37 lib:libQt5Gui$secondaryArchSuffix 38 lib:libQt5Network$secondaryArchSuffix 39 lib:libQt5OpenGL$secondaryArchSuffix 40 lib:libQt5Svg$secondaryArchSuffix 41 lib:libQt5Test$secondaryArchSuffix 42 lib:libQt5Widgets$secondaryArchSuffix 43 lib:libQt5Xml$secondaryArchSuffix 44 lib:libsodium$secondaryArchSuffix 45 lib:libsqlcipher$secondaryArchSuffix 46 lib:libssp$secondaryArchSuffix 47 lib:libswscale$secondaryArchSuffix 48 lib:libtoxcore$secondaryArchSuffix 49 lib:libvpx$secondaryArchSuffix 50 lib:libX11$secondaryArchSuffix 51 " 52 53BUILD_REQUIRES=" 54 haiku${secondaryArchSuffix}_devel 55 xlibe${secondaryArchSuffix}_devel 56 devel:libavcodec$secondaryArchSuffix 57 devel:libavdevice$secondaryArchSuffix 58 devel:libavformat$secondaryArchSuffix 59 devel:libavutil$secondaryArchSuffix 60 devel:libexif$secondaryArchSuffix 61 devel:libglib_2.0$secondaryArchSuffix 62 devel:libintl$secondaryArchSuffix 63 devel:libKF5SonnetCore$secondaryArchSuffix 64 devel:libopenal$secondaryArchSuffix 65 devel:libopus$secondaryArchSuffix 66 devel:libqrencode$secondaryArchSuffix 67 devel:libQt5Concurrent$secondaryArchSuffix 68 devel:libQt5Core$secondaryArchSuffix 69 devel:libQt5Gui$secondaryArchSuffix 70 devel:libQt5Network$secondaryArchSuffix 71 devel:libQt5OpenGL$secondaryArchSuffix 72 devel:libQt5Svg$secondaryArchSuffix 73 devel:libQt5Test$secondaryArchSuffix 74 devel:libQt5Widgets$secondaryArchSuffix 75 devel:libQt5Xml$secondaryArchSuffix 76 devel:libsodium$secondaryArchSuffix 77 devel:libsqlcipher$secondaryArchSuffix 78 devel:libssp$secondaryArchSuffix 79 devel:libswscale$secondaryArchSuffix 80 devel:libtoxcore$secondaryArchSuffix 81 devel:libvpx$secondaryArchSuffix 82 " 83BUILD_PREREQUIRES=" 84 cmd:cmake 85 cmd:gcc$secondaryArchSuffix 86 cmd:lrelease$secondaryArchSuffix >= 5 87 cmd:make 88 cmd:pkg_config$secondaryArchSuffix 89 " 90 91BUILD() 92{ 93 mkdir -p build && cd build 94 cmake -DCMAKE_BUILD_TYPE=Release \ 95 -DCMAKE_INSTALL_PREFIX=$appsDir \ 96 -DCMAKE_INSTALL_BINDIR=$appsDir \ 97 -DCMAKE_EXE_LINKER_FLAGS=-lnetwork -Wno-dev .. 98 make $jobArgs 99} 100 101INSTALL() 102{ 103 mkdir -p $appsDir 104 cp build/qtox $appsDir/qTox 105 106 local APP_SIGNATURE="application/x-vnd.qtox" 107 local MAJOR="`echo "$portVersion" | cut -d. -f1`" 108 local MIDDLE="`echo "$portVersion" | cut -d. -f2`" 109 local MINOR="`echo "$portVersion" | cut -d. -f3`" 110 local LONG_INFO="$SUMMARY" 111 sed \ 112 -e "s|@APP_SIGNATURE@|$APP_SIGNATURE|" \ 113 -e "s|@MAJOR@|$MAJOR|" \ 114 -e "s|@MIDDLE@|$MIDDLE|" \ 115 -e "s|@MINOR@|$MINOR|" \ 116 -e "s|@LONG_INFO@|$LONG_INFO|" \ 117 $portDir/additional-files/qtox.rdef.in > build/qtox.rdef 118 119 addResourcesToBinaries build/qtox.rdef $appsDir/qTox 120 addAppDeskbarSymlink $appsDir/qTox 121} 122 123TEST() 124{ 125 cd build 126 make test 127} 128