mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-29 11:38:52 +02:00
tox: bump, use _tools package (#13839)
* tox: bump, use _tools package * tox: remove an accidentally left in ls * tox: use SOURCE_DIR_2
This commit is contained in:
122
net-libs/tox/tox-0.2.22.recipe
Normal file
122
net-libs/tox/tox-0.2.22.recipe
Normal file
@@ -0,0 +1,122 @@
|
||||
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_tools$secondaryArchSuffix = $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 \
|
||||
$binDir
|
||||
}
|
||||
|
||||
TEST()
|
||||
{
|
||||
make -C build test
|
||||
}
|
||||
Reference in New Issue
Block a user