diff options
author | Gluzskiy Alexandr <sss@sss.chaoslab.ru> | 2018-07-22 01:51:51 +0300 |
---|---|---|
committer | Gluzskiy Alexandr <sss@sss.chaoslab.ru> | 2018-07-22 01:51:51 +0300 |
commit | 58969e4f1757e77f7dabe4027430403a4abf6281 (patch) | |
tree | f9b516dc0b179dd69ebba835aa18e105fd6d4971 /packages/net-im/qtox/qtox.exlib | |
parent | e43de2fe4ad1635a8275aadce38ff01aad4f6afe (diff) |
tox redone, renamed to toxcore
qtox redone
Diffstat (limited to 'packages/net-im/qtox/qtox.exlib')
-rw-r--r-- | packages/net-im/qtox/qtox.exlib | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/packages/net-im/qtox/qtox.exlib b/packages/net-im/qtox/qtox.exlib new file mode 100644 index 0000000..f57e78c --- /dev/null +++ b/packages/net-im/qtox/qtox.exlib @@ -0,0 +1,56 @@ +# Distributed under the terms of the GNU General Public License v2 +# Copyright 2018 Gluzskiy Alexandr <sss@sss.chaoslab.ru> + +require github [ user=qTox project=qTox tag=v${PV} ] +require cmake [ api=2 ] + +export_exlib_phases src_configure + +SLOT="0" +SUMMARY="Most feature-rich GUI for net-libs/tox using Qt5" +HOMEPAGE="https://github.com/qTox/qTox" +MYOPTIONS=" + gtk + ( providers: + ffmpeg + libav + ) + [[ number-selected = exactly-one ]] +" + +DEPENDENCIES=" + build+run: + app-crypt/sqlcipher + media-libs/qrencode + media-libs/openal + media-libs/libexif + net-libs/toxcore[av] + x11-libs/libX11 + x11-libs/libXScrnSaver + x11-libs/qtbase:5[gui][sql] + x11-libs/qtsvg + gtk? ( + dev-libs/atk + dev-libs/glib:2 + x11-libs/gdk-pixbuf[X] + x11-libs/gtk+:2 + x11-libs/cairo[X] + x11-libs/pango[X] + ) + providers:ffmpeg? ( media/ffmpeg ) + providers:libav? ( media/libav ) + " + +DEFAULT_SRC_PREPARE_PATCHES=( + "${FILES}"/cflags.patch +) + + +qtox_src_configure() { + local cmakeparams=() + cmakeparams+=( + -DENABLE_STATUSNOTIFIER=$(option gtk && echo gtk) + -DENABLE_GTK_SYSTRAY=$(option gtk && echo gtk) + ) + ecmake "${cmakeparams[@]}" +} |