summaryrefslogtreecommitdiffstats
path: root/chat-libs
diff options
context:
space:
mode:
Diffstat (limited to 'chat-libs')
-rwxr-xr-xchat-libs/c-toxcore/BUILD2
-rwxr-xr-xchat-libs/c-toxcore/DEPENDS19
-rwxr-xr-xchat-libs/c-toxcore/DETAILS15
-rw-r--r--chat-libs/c-toxcore/HISTORY5
-rwxr-xr-xchat-libs/c-toxcore/PRE_BUILD3
-rw-r--r--chat-libs/c-toxcore/patches/0001-Add-knob-to-suppress-building-the-toxav-test.patch28
-rw-r--r--chat-libs/c-toxcore/patches/0002-Add-knob-to-suppress-building-the-nTox-client.patch27
7 files changed, 99 insertions, 0 deletions
diff --git a/chat-libs/c-toxcore/BUILD b/chat-libs/c-toxcore/BUILD
new file mode 100755
index 0000000000..4c46c6469c
--- /dev/null
+++ b/chat-libs/c-toxcore/BUILD
@@ -0,0 +1,2 @@
+OPTS+=" -DWARNINGS=0 -DBUILD_AV_TEST=0"
+cmake_build
diff --git a/chat-libs/c-toxcore/DEPENDS b/chat-libs/c-toxcore/DEPENDS
new file mode 100755
index 0000000000..abbdcb4c70
--- /dev/null
+++ b/chat-libs/c-toxcore/DEPENDS
@@ -0,0 +1,19 @@
+depends cmake &&
+depends libsodium &&
+depends libvpx &&
+depends opus &&
+
+# For DHT bootstrap daemon
+depends libconfig &&
+
+# For nTox
+optional_depends ncurses -DBUILD_NTOX={1,0} \
+ "for building the nTox client"
+
+# For the Spec. tests
+#depends msgpack-c &&
+
+# For the A/V tests
+#depends libsndfile &&
+#depends OPENCV &&
+#depends portaudio19
diff --git a/chat-libs/c-toxcore/DETAILS b/chat-libs/c-toxcore/DETAILS
new file mode 100755
index 0000000000..0c21160c09
--- /dev/null
+++ b/chat-libs/c-toxcore/DETAILS
@@ -0,0 +1,15 @@
+ SPELL=c-toxcore
+ VERSION=0.0.4
+ SOURCE="$SPELL-$VERSION.tar.gz"
+ SOURCE_URL[0]=https://github.com/TokTok/$SPELL/archive/v$VERSION.tar.gz
+ SOURCE_HASH=sha512:ef76cca22830d6ad590c3852cc185b0b7f414501a22a60416f37ee10513eadbe520ace1d8e3cb0f07c92aa43774bd35ecb3e9c0e3750d90821fcab500ac8bc82
+SOURCE_DIRECTORY="$BUILD_DIRECTORY/$SPELL-$VERSION"
+ WEB_SITE="https://tox.chat"
+ LICENSE[0]="GPLv3+"
+ ENTERED=20161123
+ KEYWORDS=""
+ SHORT="Secure instant messaging and videoconferencing"
+cat << EOF
+Tox is a peer-to-peer instant messaging and video calling protocol that
+offers end-to-end encryption.
+EOF
diff --git a/chat-libs/c-toxcore/HISTORY b/chat-libs/c-toxcore/HISTORY
new file mode 100644
index 0000000000..b1f832641d
--- /dev/null
+++ b/chat-libs/c-toxcore/HISTORY
@@ -0,0 +1,5 @@
+2016-11-23 Ismael Luceno <ismael@sourcemage.org>
+ * BUILD, DEPENDS, DETAILS, PRE_BUILD,
+ patches/0001-Add-knob-to-suppress-building-the-toxav-test.patch,
+ patches/0002-Add-knob-to-suppress-building-the-nTox-client.patch:
+ spell created
diff --git a/chat-libs/c-toxcore/PRE_BUILD b/chat-libs/c-toxcore/PRE_BUILD
new file mode 100755
index 0000000000..c230ad14bf
--- /dev/null
+++ b/chat-libs/c-toxcore/PRE_BUILD
@@ -0,0 +1,3 @@
+default_pre_build &&
+cd "$SOURCE_DIRECTORY" &&
+apply_patch_dir patches
diff --git a/chat-libs/c-toxcore/patches/0001-Add-knob-to-suppress-building-the-toxav-test.patch b/chat-libs/c-toxcore/patches/0001-Add-knob-to-suppress-building-the-toxav-test.patch
new file mode 100644
index 0000000000..67f1616fe1
--- /dev/null
+++ b/chat-libs/c-toxcore/patches/0001-Add-knob-to-suppress-building-the-toxav-test.patch
@@ -0,0 +1,28 @@
+From 84bd8e3fb04383ee9272cc88130e6773dfe486a6 Mon Sep 17 00:00:00 2001
+From: Ismael Luceno <ismael@iodev.co.uk>
+Date: Wed, 23 Nov 2016 11:54:41 -0200
+Subject: [PATCH 1/2] Add knob to suppress building the toxav test
+
+Signed-off-by: Ismael Luceno <ismael@iodev.co.uk>
+---
+ CMakeLists.txt | 4 +++-
+ 1 file changed, 3 insertions(+), 1 deletion(-)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 7c08fd82554d..88ba43b4473c 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -463,7 +463,9 @@ endif()
+ #
+ ################################################################################
+
+-if(NOT WIN32 AND BUILD_TOXAV AND SNDFILE_FOUND AND PORTAUDIO_FOUND AND OPENCV_FOUND)
++option(BUILD_AV_TEST "Build toxav test" ON)
++if(NOT WIN32 AND BUILD_AV_TEST
++ AND BUILD_TOXAV AND SNDFILE_FOUND AND PORTAUDIO_FOUND AND OPENCV_FOUND)
+ add_c_executable(av_test testing/av_test.c)
+ target_link_modules(av_test
+ toxav
+--
+2.10.2
+
diff --git a/chat-libs/c-toxcore/patches/0002-Add-knob-to-suppress-building-the-nTox-client.patch b/chat-libs/c-toxcore/patches/0002-Add-knob-to-suppress-building-the-nTox-client.patch
new file mode 100644
index 0000000000..a569d4d7c0
--- /dev/null
+++ b/chat-libs/c-toxcore/patches/0002-Add-knob-to-suppress-building-the-nTox-client.patch
@@ -0,0 +1,27 @@
+From b13629a72586c650462c918c0802db06e1ed9352 Mon Sep 17 00:00:00 2001
+From: Ismael Luceno <ismael@iodev.co.uk>
+Date: Wed, 23 Nov 2016 11:55:10 -0200
+Subject: [PATCH 2/2] Add knob to suppress building the nTox client
+
+Signed-off-by: Ismael Luceno <ismael@iodev.co.uk>
+---
+ CMakeLists.txt | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 88ba43b4473c..da7e26391753 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -479,7 +479,8 @@ if(NOT WIN32 AND BUILD_AV_TEST
+ endif()
+ endif()
+
+-if(NOT WIN32)
++option(BUILD_NTOX "Build nTox client" ON)
++if(NOT WIN32 AND BUILD_NTOX)
+ add_c_executable(nTox testing/nTox.c)
+ target_link_modules(nTox toxcore ${NCURSES_LIBRARIES})
+ endif()
+--
+2.10.2
+