aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-qt/qtchooser/qtchooser_git.bb
blob: ba92e4df2319408fa57b090b2713e9299c73145c (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
DESCRIPTION = "Wrapper to select between Qt development binary versions"
HOMEPAGE = "http://macieira.org/qtchooser"
LICENSE = "LGPL-2.1 & Digia-Qt-LGPL-Exception-1.1 | GPL-3.0"
SRC_URI = "git://code.qt.io/qtsdk/qtchooser.git;branch=master"

LIC_FILES_CHKSUM = " \
    file://LGPL_EXCEPTION.txt;md5=0145c4d1b6f96a661c2c139dfb268fb6 \
    file://LICENSE.GPL;md5=d32239bcb673463ab874e80d47fae504 \
    file://LICENSE.LGPL;md5=4193e7f1d47a858f6b7c0f1ee66161de \
"
S = "${WORKDIR}/git"
SRCREV = "71750df4f0c6bbadcd422cdf7fe360ad033bbd14"
PV = "39+git${SRCPV}"

inherit pkgconfig

do_compile() {
    oe_runmake LFLAGS='${LDFLAGS}'
}

do_install() {
    oe_runmake install INSTALL_ROOT=${D}
    #install configure file
    install -d ${D}${sysconfdir}/xdg/qtchooser/
    install -m 0644 ${S}/tests/auto/qtchooser/testdata/config2/qtchooser/*.conf \
               ${D}${sysconfdir}/xdg/qtchooser/
    install -m 0644 ${S}/tests/auto/qtchooser/testdata/default/qtchooser/default.conf \
               ${D}${sysconfdir}/xdg/qtchooser/
}