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-2017 Tox Project" LICENSE="GNU GPL v3" REVISION="4" SOURCE_URI="https://github.com/TokTok/c-toxcore/archive/v$portVersion.tar.gz" CHECKSUM_SHA256="87b228b4ccbc8149cf7745641c9332a208b22dc7a41b9d421810d0677723774c" SOURCE_DIR="c-toxcore-$portVersion" PATCHES="tox-$portVersion.patchset" ARCHITECTURES="!x86_gcc2 x86 x86_64" SECONDARY_ARCHITECTURES="!x86_gcc2 x86" if [ "$targetArchitecture" != x86_gcc2 ]; then commandSuffix=$secondaryArchSuffix commandBinDir=$binDir else commandSuffix= commandBinDir=$prefix/bin fi PROVIDES=" tox$secondaryArchSuffix = $portVersion cmd:ntox$commandSuffix = $portVersion lib:libtoxcore$secondaryArchSuffix = 0.0.0 compat >= 0 lib:libtoxdns$secondaryArchSuffix = 0.0.0 compat >= 0 lib:libtoxencryptsave$secondaryArchSuffix = 0.0.0 compat >= 0 " REQUIRES=" haiku$secondaryArchSuffix lib:libcheck$secondaryArchSuffix lib:libconfig$secondaryArchSuffix lib:libncurses$secondaryArchSuffix lib:libsodium$secondaryArchSuffix # lib:libvpx$secondaryArchSuffix lib:libopus$secondaryArchSuffix " PROVIDES_devel=" tox${secondaryArchSuffix}_devel = $portVersion devel:libtoxcore$secondaryArchSuffix = 0.0.0 compat >= 0 devel:libtoxdns$secondaryArchSuffix = 0.0.0 compat >= 0 devel:libtoxencryptsave$secondaryArchSuffix = 0.0.0 compat >= 0 " REQUIRES_devel=" tox$secondaryArchSuffix == $portVersion base " BUILD_REQUIRES=" haiku${secondaryArchSuffix}_devel devel:libcheck$secondaryArchSuffix devel:libconfig$secondaryArchSuffix devel:libncurses$secondaryArchSuffix devel:libsodium$secondaryArchSuffix # devel:libvpx$secondaryArchSuffix devel:libopus$secondaryArchSuffix " BUILD_PREREQUIRES=" cmd:aclocal cmd:autoreconf cmd:gawk cmd:gcc$secondaryArchSuffix cmd:ld$secondaryArchSuffix cmd:libtoolize$secondaryArchSuffix cmd:make cmd:pkg_config$secondaryArchSuffix " BUILD() { ./autogen.sh runConfigure ./configure \ --bindir=$commandBinDir \ --enable-ntox \ --disable-rt make all \ LIBS="-lnetwork -lbsd" } INSTALL() { make install rm $libDir/libtox*.la prepareInstalledDevelLibs \ libtoxcore \ libtoxdns \ libtoxencryptsave fixPkgconfig packageEntries devel \ $developDir } TEST() { make check }