mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 03:30:05 +02:00
tox: new recipe for messaging platform
Adding new recipe for tox, an encrypted, P2P, messaging, audio/video calling platform.
This commit is contained in:
committed by
Adrien Destugues
parent
7f7f2aec0c
commit
d0dbdcb3d4
23
net-libs/tox/patches/tox-0.1.4.patchset
Normal file
23
net-libs/tox/patches/tox-0.1.4.patchset
Normal file
@@ -0,0 +1,23 @@
|
||||
From c00ce44468e0e913c9cb2738dd17dea27c6fd11c Mon Sep 17 00:00:00 2001
|
||||
From: raefaldhia <raefaldhiamartya@gmail.com>
|
||||
Date: Sat, 14 Jan 2017 18:59:20 +0700
|
||||
Subject: Add compatibility to build on haikuporter
|
||||
|
||||
|
||||
diff --git a/testing/Makefile.inc b/testing/Makefile.inc
|
||||
index fda99a8..5a138e5 100644
|
||||
--- a/testing/Makefile.inc
|
||||
+++ b/testing/Makefile.inc
|
||||
@@ -102,8 +102,7 @@ tox_shell_LDADD = $(LIBSODIUM_LDFLAGS) \
|
||||
libtoxcore.la \
|
||||
$(LIBSODIUM_LIBS) \
|
||||
$(NACL_OBJECTS) \
|
||||
- $(NACL_LIBS) \
|
||||
- -lutil
|
||||
+ $(NACL_LIBS)
|
||||
|
||||
|
||||
noinst_PROGRAMS += irc_syncbot
|
||||
--
|
||||
2.7.0
|
||||
|
||||
104
net-libs/tox/tox-0.1.4.recipe
Normal file
104
net-libs/tox/tox-0.1.4.recipe
Normal file
@@ -0,0 +1,104 @@
|
||||
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="1"
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user