mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-29 11:38:52 +02:00
123 lines
2.9 KiB
Bash
123 lines
2.9 KiB
Bash
SUMMARY="An encrypted, P2P, messaging, audio/video calling platform"
|
|
DESCRIPTION="Tox is a fully encrypted, censor resistant, private, distributed \
|
|
network library with a focus on personal communications.
|
|
|
|
It's a VERY secure Instant Messenger that supports Text, Audio/Video calls, \
|
|
group chats, audio group chats, and file transfers."
|
|
HOMEPAGE="https://tox.chat/"
|
|
COPYRIGHT="2013-2022 Tox Project"
|
|
LICENSE="GNU GPL v3
|
|
MIT"
|
|
REVISION="1"
|
|
SOURCE_URI="https://github.com/TokTok/c-toxcore/archive/v$portVersion.tar.gz"
|
|
CHECKSUM_SHA256="68849c67e3b7161eca74aa19bb978f7e7045042356346fb28b5ef88a13b7a434"
|
|
SOURCE_DIR="c-toxcore-$portVersion"
|
|
srcGitRev2="52bfcfa17d2eb4322da2037ad625f5575129cece"
|
|
SOURCE_URI_2="https://github.com/camgunz/cmp/archive/$srcGitRev2.tar.gz"
|
|
CHECKSUM_SHA256_2="4abfd641dd5ccba04b6e0ced04a79755fa70709290b3ba15dbd4b4a2de345ed0"
|
|
SOURCE_DIR_2="cmp-$srcGitRev2"
|
|
PATCHES="tox-$portVersion.patchset"
|
|
|
|
ARCHITECTURES="all !x86_gcc2"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
if [ "$targetArchitecture" != x86_gcc2 ]; then
|
|
commandSuffix=$secondaryArchSuffix
|
|
commandBinDir=$binDir
|
|
else
|
|
commandSuffix=
|
|
commandBinDir=$prefix/bin
|
|
fi
|
|
|
|
libVersion="2.22.0"
|
|
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
|
|
|
|
PROVIDES="
|
|
tox$secondaryArchSuffix = $portVersion
|
|
lib:libtoxcore$secondaryArchSuffix = $libVersionCompat
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
lib:libopus$secondaryArchSuffix
|
|
lib:libsodium$secondaryArchSuffix
|
|
lib:libvpx$secondaryArchSuffix
|
|
"
|
|
|
|
PROVIDES_tools="
|
|
tox${secondaryArchSuffix}_tools = $portVersion
|
|
cmd:DHT_bootstrap$commandSuffix = $portVersion
|
|
cmd:tox_bootstrapd$commandSuffix = $portVersion
|
|
"
|
|
REQUIRES_tools="
|
|
haiku$secondaryArchSuffix
|
|
lib:libtoxcore$secondaryArchSuffix == $libVersionCompat
|
|
lib:libconfig$secondaryArchSuffix
|
|
lib:libopus$secondaryArchSuffix
|
|
lib:libsodium$secondaryArchSuffix
|
|
lib:libvpx$secondaryArchSuffix
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
tox${secondaryArchSuffix}_devel = $portVersion
|
|
devel:libtoxcore$secondaryArchSuffix = $libVersionCompat
|
|
"
|
|
REQUIRES_devel="
|
|
tox$secondaryArchSuffix == $portVersion base
|
|
devel:libopus$secondaryArchSuffix
|
|
devel:libsodium$secondaryArchSuffix
|
|
devel:libvpx$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
devel:libconfig$secondaryArchSuffix
|
|
devel:libopus$secondaryArchSuffix
|
|
devel:libsodium$secondaryArchSuffix
|
|
devel:libvpx$secondaryArchSuffix
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:cmake
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:git
|
|
cmd:ld$secondaryArchSuffix
|
|
cmd:make
|
|
cmd:pkg_config$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
rm -df third_party/cmp
|
|
ln -s $sourceDir2 third_party/cmp
|
|
|
|
cmake -B build -S . -DCMAKE_BUILD_TYPE=Release \
|
|
$cmakeDirArgs \
|
|
-DCMAKE_POLICY_VERSION_MINIMUM=3.5 \
|
|
-DCMAKE_INSTALL_BINDIR=$commandBinDir \
|
|
-DUSE_IPV6=OFF
|
|
|
|
make -C build $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make -C build install
|
|
|
|
rm -f $libDir/*.a
|
|
|
|
prepareInstalledDevelLib \
|
|
libtoxcore
|
|
fixPkgconfig
|
|
|
|
packageEntries devel \
|
|
$developDir
|
|
|
|
packageEntries tools \
|
|
$dataDir \
|
|
$commandBinDir
|
|
}
|
|
|
|
TEST()
|
|
{
|
|
make -C build test
|
|
}
|