diff options
| author | Daniel Gomez <daniel@qtec.com> | 2021-01-21 21:44:51 +0100 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2021-01-21 13:41:58 -0800 |
| commit | f24914a843973d760ce5b19ad746295f920199e1 (patch) | |
| tree | 1702ed7201cce74534694dd172c31e3ab77cb120 /meta-oe/recipes-support/zbar/zbar_0.10.bb | |
| parent | 1c2b1b919ca45bed16dc6b2bc96d7ce787bf0fa9 (diff) | |
| download | meta-openembedded-f24914a843973d760ce5b19ad746295f920199e1.tar.gz | |
zbar: Add support for mchehab/zbar
ZBar project development stopped in 2012 but it was forked and
maintained by Mauro Carvalho Chehab to keep it up to date with V4L2 api.
Main repository:
https://github.com/mchehab/zbar
Add support for zbar library mantained by mchehab. Use latest
version available 0.23.1.
Compile by default with options: video & python3.
As ZBar (original project) and mchehab/zbar (new & updated) are
different, keep both recipes as:
- zbar_0.10.bb: ZBar version 0.10
- zbar_git.bb: mchehab/zbar Version 0.23.1
Signed-off-by: Daniel Gomez <daniel@qtec.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-oe/recipes-support/zbar/zbar_0.10.bb')
| -rw-r--r-- | meta-oe/recipes-support/zbar/zbar_0.10.bb | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/meta-oe/recipes-support/zbar/zbar_0.10.bb b/meta-oe/recipes-support/zbar/zbar_0.10.bb new file mode 100644 index 0000000000..181d7ae43c --- /dev/null +++ b/meta-oe/recipes-support/zbar/zbar_0.10.bb | |||
| @@ -0,0 +1,31 @@ | |||
| 1 | DESCRIPTION = "2D barcode scanner toolkit." | ||
| 2 | SECTION = "graphics" | ||
| 3 | LICENSE = "LGPL-2.1" | ||
| 4 | |||
| 5 | DEPENDS = "pkgconfig intltool-native libpng jpeg" | ||
| 6 | |||
| 7 | LIC_FILES_CHKSUM = "file://COPYING;md5=4015840237ca7f0175cd626f78714ca8" | ||
| 8 | |||
| 9 | PV = "0.10+git${SRCPV}" | ||
| 10 | |||
| 11 | # iPhoneSDK-1.3.1 tag | ||
| 12 | SRCREV = "67003d2a985b5f9627bee2d8e3e0b26d0c474b57" | ||
| 13 | SRC_URI = "git://github.com/ZBar/Zbar \ | ||
| 14 | file://0001-make-relies-GNU-extentions.patch \ | ||
| 15 | " | ||
| 16 | S = "${WORKDIR}/git" | ||
| 17 | |||
| 18 | inherit autotools pkgconfig | ||
| 19 | |||
| 20 | PACKAGECONFIG = "${@bb.utils.filter('DISTRO_FEATURES', 'x11', d)}" | ||
| 21 | |||
| 22 | PACKAGECONFIG[x11] = "--with-x,-without-x,libxcb libx11 libsm libxau libxext libxv libice libxdmcp" | ||
| 23 | |||
| 24 | EXTRA_OECONF = "--without-imagemagick --without-qt --without-python --disable-video --without-gtk" | ||
| 25 | |||
| 26 | CPPFLAGS += "-Wno-error" | ||
| 27 | |||
| 28 | do_install_append() { | ||
| 29 | #remove usr/bin if empty | ||
| 30 | rmdir ${D}${bindir} | ||
| 31 | } | ||
