aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-graphics/wayland/weston-ini-conf_aglflutter.inc
blob: 84e88e198d18da24b020e701cbc0750c2f3dc5fd (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
do_compile:append() {
    # Put all of our cfg files together for a default portrait
    # orientation configuration
    rm -f ${WORKDIR}/weston.ini.flutter
    for F in ${WESTON_FRAGMENTS}; do
        cat ${WORKDIR}/${F}.cfg >> ${WORKDIR}/weston.ini.flutter
	if grep -q '\[output\]' ${WORKDIR}/${F}.cfg; then
            echo "activation-area=1080x1600+0,160" >> ${WORKDIR}/weston.ini.flutter
        fi
        echo >> ${WORKDIR}/weston.ini.flutter
    done
    sed -i -e '$ d' ${WORKDIR}/weston.ini.flutter
}

do_install:append() {
    install -m 0644 ${WORKDIR}/weston.ini.flutter ${D}${weston_ini_dir}/
}

PACKAGE_BEFORE_PN += "${PN}-flutter"

FILES:${PN}-flutter = "${weston_ini_dir}/weston.ini.flutter"

RPROVIDES:${PN}-flutter = "weston-ini"
RCONFLICTS:${PN}-flutter = "${PN}"
ALTERNATIVE:${PN}-flutter = "weston.ini"
ALTERNATIVE_TARGET_${PN}-flutter = "${weston_ini_dir}/weston.ini.flutter"