summaryrefslogtreecommitdiff
path: root/packages/net-im/qtox/qtox-scm.exheres-0
blob: 5f749f48bd051f34f6fc457b98df0298a3a19b55 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# Distributed under the terms of the GNU General Public License v2

SCM_REPOSITORY="https://github.com/qTox/qTox.git"

require scm-git
require cmake [ api=2 ]

DOWNLOADS=""
SLOT="0"
PLATFORMS="~amd64 ~x86"
SUMMARY="Most feature-rich GUI for net-libs/tox using Qt5"
HOMEPAGE="https://github.com/qTox/qTox"
MYOPTIONS="
        gtk
        X
        ( providers:
            ffmpeg
            libav
        )
        [[ number-selected = exactly-one ]]
"

DEPENDENCIES="
    build+run:
        app-crypt/sqlcipher
        net-libs/tox[av]
        media-libs/qrencode
        media-libs/openal
        media-libs/libexif
        providers:ffmpeg? ( media/ffmpeg )
        providers:libav? ( media/libav )
        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]
        )
        X? (
            x11-libs/libX11
            x11-libs/libXScrnSaver
        )
        x11-libs/qtbase:5[gui][sql]
        x11-libs/qtsvg
"

DEFAULT_SRC_PREPARE_PATCHES=(
        "${FILES}"/gcc.patch
        "${FILES}"/cflags.patch
)


src_configure() {
        local cmakeparams=()
        cmakeparams+=(
            -DENABLE_STATUSNOTIFIER=$(option gtk && echo gtk)
            -DENABLE_GTK_SYSTRAY=$(option gtk && echo gtk)
        )
        ecmake "${cmakeparams[@]}"
}