Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 1 | SUMMARY = "v4l2 and IR applications" |
| 2 | LICENSE = "GPLv2 & LGPLv2.1" |
| 3 | LIC_FILES_CHKSUM = "file://COPYING;md5=48da9957849056017dc568bbc43d8975 \ |
| 4 | file://COPYING.libv4l;md5=d749e86a105281d7a44c2328acebc4b0" |
| 5 | PROVIDES = "libv4l media-ctl" |
| 6 | |
| 7 | DEPENDS = "jpeg \ |
| 8 | ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'virtual/libx11', '', d)}" |
| 9 | DEPENDS_append_libc-musl = " argp-standalone" |
| 10 | DEPENDS_append_class-target = " udev" |
| 11 | LDFLAGS_append = " -pthread" |
| 12 | |
| 13 | inherit autotools gettext pkgconfig |
| 14 | |
| 15 | PACKAGECONFIG ??= "media-ctl" |
| 16 | PACKAGECONFIG[media-ctl] = "--enable-v4l-utils,--disable-v4l-utils,," |
| 17 | |
| 18 | SRC_URI = "http://linuxtv.org/downloads/v4l-utils/v4l-utils-${PV}.tar.bz2 \ |
| 19 | file://0001-Revert-media-ctl-Don-t-install-libmediactl-and-libv4.patch \ |
| 20 | file://mediactl-pkgconfig.patch \ |
| 21 | file://export-mediactl-headers.patch \ |
| 22 | file://0002-contrib-test-Link-mc_nextgen_test-with-libargp-if-ne.patch \ |
| 23 | file://0003-v4l2-ctl-Do-not-use-getsubopt.patch \ |
| 24 | " |
| 25 | SRC_URI[md5sum] = "de272817133c0dca000a78a5c8c8ec8b" |
| 26 | SRC_URI[sha256sum] = "ed80242510385017a1dc566e17a285a77222bb301f5bc19386badfcc2c19df1b" |
| 27 | |
| 28 | EXTRA_OECONF = "--disable-qv4l2 --enable-shared --with-udevdir=${base_libdir}/udev" |
| 29 | |
| 30 | VIRTUAL-RUNTIME_ir-keytable-keymaps ?= "rc-keymaps" |
| 31 | |
| 32 | PACKAGES =+ "media-ctl ir-keytable rc-keymaps libv4l libv4l-dev" |
| 33 | |
| 34 | RPROVIDES_${PN}-dbg += "libv4l-dbg" |
| 35 | |
| 36 | FILES_media-ctl = "${bindir}/media-ctl ${libdir}/libmediactl.so.*" |
| 37 | |
| 38 | FILES_ir-keytable = "${bindir}/ir-keytable ${base_libdir}/udev/rules.d/*-infrared.rules" |
| 39 | RDEPENDS_ir-keytable += "${VIRTUAL-RUNTIME_ir-keytable-keymaps}" |
| 40 | |
| 41 | FILES_rc-keymaps = "${sysconfdir}/rc* ${base_libdir}/udev/rc*" |
| 42 | |
| 43 | FILES_${PN} = "${bindir} ${sbindir}" |
| 44 | |
| 45 | FILES_libv4l += "${libdir}/libv4l*${SOLIBS} ${libdir}/libv4l/*.so ${libdir}/libv4l/plugins/*.so \ |
| 46 | ${libdir}/libdvbv5*${SOLIBS} \ |
| 47 | ${libdir}/libv4l/*-decomp" |
| 48 | |
| 49 | FILES_libv4l-dev += "${includedir} ${libdir}/pkgconfig \ |
| 50 | ${libdir}/libv4l*${SOLIBSDEV} ${libdir}/*.la \ |
| 51 | ${libdir}/v4l*${SOLIBSDEV} ${libdir}/libv4l/*.la ${libdir}/libv4l/plugins/*.la" |
| 52 | |
| 53 | PARALLEL_MAKE_class-native = "" |
| 54 | BBCLASSEXTEND = "native" |