From 2913eb73856a2ef07060094513917ec14d91cf3c Mon Sep 17 00:00:00 2001 From: Ismael Luceno Date: Wed, 23 Nov 2016 12:11:59 -0200 Subject: c-toxcore: new spell, Secure instant messaging and videoconferencing --- chat-libs/c-toxcore/BUILD | 2 ++ chat-libs/c-toxcore/DEPENDS | 19 +++++++++++++++ chat-libs/c-toxcore/DETAILS | 15 ++++++++++++ chat-libs/c-toxcore/HISTORY | 5 ++++ chat-libs/c-toxcore/PRE_BUILD | 3 +++ ...-knob-to-suppress-building-the-toxav-test.patch | 28 ++++++++++++++++++++++ ...knob-to-suppress-building-the-nTox-client.patch | 27 +++++++++++++++++++++ 7 files changed, 99 insertions(+) create mode 100755 chat-libs/c-toxcore/BUILD create mode 100755 chat-libs/c-toxcore/DEPENDS create mode 100755 chat-libs/c-toxcore/DETAILS create mode 100644 chat-libs/c-toxcore/HISTORY create mode 100755 chat-libs/c-toxcore/PRE_BUILD create mode 100644 chat-libs/c-toxcore/patches/0001-Add-knob-to-suppress-building-the-toxav-test.patch create mode 100644 chat-libs/c-toxcore/patches/0002-Add-knob-to-suppress-building-the-nTox-client.patch (limited to 'chat-libs') 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 + * 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 +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 +--- + 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 +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 +--- + 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 + -- cgit v1.2.3