summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-support/zbar/zbar_git.bb
diff options
context:
space:
mode:
Diffstat (limited to 'meta-oe/recipes-support/zbar/zbar_git.bb')
-rw-r--r--meta-oe/recipes-support/zbar/zbar_git.bb62
1 files changed, 45 insertions, 17 deletions
diff --git a/meta-oe/recipes-support/zbar/zbar_git.bb b/meta-oe/recipes-support/zbar/zbar_git.bb
index 181d7ae43c..dae9122520 100644
--- a/meta-oe/recipes-support/zbar/zbar_git.bb
+++ b/meta-oe/recipes-support/zbar/zbar_git.bb
@@ -1,31 +1,59 @@
1DESCRIPTION = "2D barcode scanner toolkit." 1HOMEPAGE = "https://github.com/mchehab/zbar"
2SUMMARY = "A bar code library"
3DESRIPTION = "ZBar is an open source software suite for reading bar codes \
4from various sources, such as video streams, image files and raw \
5intensity sensors. It supports EAN-13/UPC-A, UPC-E, EAN-8, Code 128, \
6Code 93, Code 39, Codabar, Interleaved 2 of 5, QR Code and SQ Code"
2SECTION = "graphics" 7SECTION = "graphics"
8
3LICENSE = "LGPL-2.1" 9LICENSE = "LGPL-2.1"
10LIC_FILES_CHKSUM = "file://LICENSE.md;md5=5e9ee833a2118adc7d8b5ea38e5b1cef"
4 11
5DEPENDS = "pkgconfig intltool-native libpng jpeg" 12SRC_URI = "git://github.com/mchehab/zbar.git;branch=master \
13 file://0001-qt-Create-subdir-in-Makefile.patch \
14 file://0002-zbarcam-Create-subdir-in-Makefile.patch \
15"
16SRCREV = "89e7900d85dd54ef351a7ed582aec6a5a5d7fa37"
6 17
7LIC_FILES_CHKSUM = "file://COPYING;md5=4015840237ca7f0175cd626f78714ca8" 18S = "${WORKDIR}/git"
19PV = "0.23.1+git${SRCPV}"
8 20
9PV = "0.10+git${SRCPV}" 21DEPENDS += "xmlto-native"
10 22
11# iPhoneSDK-1.3.1 tag 23PACKAGECONFIG ??= "\
12SRCREV = "67003d2a985b5f9627bee2d8e3e0b26d0c474b57" 24 ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11', '', d)} \
13SRC_URI = "git://github.com/ZBar/Zbar \
14 file://0001-make-relies-GNU-extentions.patch \
15" 25"
16S = "${WORKDIR}/git"
17 26
18inherit autotools pkgconfig 27PACKAGECONFIG ??= "video python3"
19 28
20PACKAGECONFIG = "${@bb.utils.filter('DISTRO_FEATURES', 'x11', d)}" 29inherit autotools pkgconfig gettext \
30 ${@bb.utils.contains('PACKAGECONFIG', 'python3', 'python3native', '', d)} \
31 ${@bb.utils.contains('PACKAGECONFIG', 'gtk3', 'gobject-introspection', '', d)} \
32 ${@bb.utils.contains('PACKAGECONFIG', 'qt5', 'qmake5_paths', '', d)}
21 33
22PACKAGECONFIG[x11] = "--with-x,-without-x,libxcb libx11 libsm libxau libxext libxv libice libxdmcp" 34PACKAGECONFIG[x11] = "--with-x, --without-x, libxv"
35PACKAGECONFIG[video] = "--enable-video, --disable-video, v4l-utils libv4l"
36PACKAGECONFIG[jpeg] = "--with-jpeg, --without-jpeg, jpeg"
37PACKAGECONFIG[python3] = "--with-python=auto, --without-python, python3"
38PACKAGECONFIG[gtk3] = "--with-gtk=gtk3, --without-gtk, gtk+3"
39PACKAGECONFIG[qt5] = "--with-qt5, --without-qt5, qtbase qtbase-native qtx11extras qtsvg, qtbase"
40PACKAGECONFIG[imagemagick] = "--with-imagemagick, --without-imagemagick, imagemagick"
23 41
24EXTRA_OECONF = "--without-imagemagick --without-qt --without-python --disable-video --without-gtk" 42FILES_${PN} += "${bindir} \
43 ${@bb.utils.contains('DEPENDS', 'python3-native', '${libdir}', '', d)} \
44"
45
46CPPFLAGS_append = "\
47 ${@bb.utils.contains('PACKAGECONFIG', 'qt5', '\
48 -I${STAGING_INCDIR}/QtX11Extras \
49 -I${STAGING_INCDIR}/dbus-1.0 \
50 -I${STAGING_LIBDIR}/dbus-1.0/include \
51 ', '', d)} \
52"
25 53
26CPPFLAGS += "-Wno-error" 54TARGET_CXXFLAGS_append = " -fPIC"
27 55
28do_install_append() { 56do_prepare_recipe_sysroot_gettext() {
29 #remove usr/bin if empty 57 install -m 755 ${STAGING_DATADIR_NATIVE}/gettext/ABOUT-NLS ${S}/
30 rmdir ${D}${bindir}
31} 58}
59addtask do_prepare_recipe_sysroot_gettext after do_prepare_recipe_sysroot before do_configure \ No newline at end of file