summaryrefslogtreecommitdiffstats
path: root/scripts/tune/env.fake-cortexa57-cortexa53.armv7ve-vfpv3
blob: 56798e776206698b8f0b5bb0ea0403435a5b0c05 (plain)
1
2
3
4
5
6
7
PACKAGE_ARCHS="all any noarch arm armv4 armv5 armv5-vfp armv5e armv5e-vfp armv6 armv6-vfp armv7a armv7a-vfp armv7ve armv7ve-vfp armv7ve-vfpv3d16 armv7ve-vfpv3 fake_cortexa57_cortexa53"
TUNE_CCARGS=" -march=armv7ve -mfpu=vfpv3 -mfloat-abi=softfp"
TUNE_CCARGS_MFLOAT="softfp"
TUNE_CCARGS_MFPU=" vfp vfpv3-d16 vfpv3"
TUNE_FEATURES="arm armv7ve vfp vfpv3d16 vfpv3"
TUNE_PKGARCH="armv7ve-vfpv3"
export CC="arm-oe-linux-gnueabi-gcc  -march=armv7ve -mfpu=vfpv3 -mfloat-abi=softfp --sysroot=SYSROOT"
ighlight">
SUMMARY = "Library to handle input devices in Wayland compositors"
DESCRIPTION = "libinput is a library to handle input devices in Wayland \
compositors and to provide a generic X.Org input driver. It provides \
device detection, device handling, input device event processing and \
abstraction so minimize the amount of custom input code compositors need to \
provide the common set of functionality that users expect."
HOMEPAGE = "http://www.freedesktop.org/wiki/Software/libinput/"
SECTION = "libs"

LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://COPYING;md5=1f2ea9ebff3a2c6d458faf58492efb63"

DEPENDS = "libevdev udev mtdev libcheck"

SRC_URI = "http://www.freedesktop.org/software/${BPN}/${BP}.tar.xz \
           file://run-ptest \
           file://determinism.patch \
           "
SRC_URI[sha256sum] = "65923a06d5a8970e4a999c4668797b9b689614b62b1d44432ab1c87b65e39e29"

UPSTREAM_CHECK_REGEX = "libinput-(?P<pver>\d+\.\d+\.(?!9\d+)\d+)"

inherit meson pkgconfig lib_package ptest

# Patch out build directory, otherwise it leaks into ptest binary
do_configure_append() {
    sed -i -e "s,${WORKDIR},,g" config.h
    if [ -e "litest-config.h" ]; then
        sed -i -e "s,${WORKDIR},,g" litest-config.h
    fi
}

PACKAGECONFIG ??= ""
PACKAGECONFIG[libwacom] = "-Dlibwacom=true,-Dlibwacom=false,libwacom"
PACKAGECONFIG[gui] = "-Ddebug-gui=true,-Ddebug-gui=false,cairo gtk+3"

UDEVDIR = "`pkg-config --variable=udevdir udev`"

EXTRA_OEMESON += "-Dudev-dir=${UDEVDIR} \
                  -Ddocumentation=false \
                  ${@bb.utils.contains('PTEST_ENABLED', '1', '-Dtests=true -Dinstall-tests=true', '-Dtests=false -Dinstall-tests=false', d)} \
                  -Dzshcompletiondir=no"

# package name changed in 1.8.1 upgrade: make sure package upgrades work
RPROVIDES_${PN} = "libinput"
RREPLACES_${PN} = "libinput"
RCONFLICTS_${PN} = "libinput"

FILES_${PN}-ptest += "${libexecdir}/libinput/libinput-test-suite"