aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-qt/qsiv/qsiv_1.1.bb
blob: 5773c3e7e59301a9e0fef91bfb68d1b09f71eaf4 (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
SUMMARY = "Qt Simple Image Viewer"
DESCRIPTION = "A simple image viewer using a mix of C++ and qml code for demonstration."
LICENSE = "GPL-2.0"
LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=11c7965a9059e287de5d93b98adf6d1a"
DEPENDS = "qtdeclarative"

SRCREV = "7b9810b0f02f9ac74fae3ead6e2e9fb5c1382173"
SRC_URI = "git://code.ossystems.com.br/qt/qsiv;protocol=http"

S = "${WORKDIR}/git"

inherit qmake5

EXTRA_QMAKEVARS_PRE += "target.path=${libdir}/${P}"

do_install_append() {
    install -d ${D}${bindir}
    echo "#!/bin/sh" > ${D}${bindir}/qsiv
    echo "export QML_IMPORT_PATH=${libdir}/${P}/qml/qsiv" >> ${D}${bindir}/qsiv
    echo "export QML2_IMPORT_PATH=${libdir}/${P}/qml/qsiv" >> ${D}${bindir}/qsiv
    echo "${libdir}/${P}/qsiv \$* " >> ${D}${bindir}/qsiv
    chmod +x ${D}${bindir}/qsiv
}

FILES_${PN} += "${libdir}/${P}"
RDEPENDS_${PN} += "qtdeclarative-qmlplugins"