diff --git a/net-libs/tox/patches/tox-0.1.4.patchset b/net-libs/tox/patches/tox-0.1.4.patchset new file mode 100644 index 000000000..edea64a4b --- /dev/null +++ b/net-libs/tox/patches/tox-0.1.4.patchset @@ -0,0 +1,23 @@ +From c00ce44468e0e913c9cb2738dd17dea27c6fd11c Mon Sep 17 00:00:00 2001 +From: raefaldhia +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 + diff --git a/net-libs/tox/tox-0.1.4.recipe b/net-libs/tox/tox-0.1.4.recipe new file mode 100644 index 000000000..9b174869b --- /dev/null +++ b/net-libs/tox/tox-0.1.4.recipe @@ -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 +}