added my Recipes

This commit is contained in:
2024-07-11 14:16:35 +02:00
parent 38bc4f53ac
commit 09b621d929
7118 changed files with 525762 additions and 3 deletions

View File

@@ -0,0 +1,15 @@
SUMMARY = "Read one-dimensional barcodes and QR codes from Python 2 and 3 using the zbar library"
HOMEPAGE = "https://github.com/NaturalHistoryMuseum/pyzbar"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=c27c2135d76d2d03f4842d9c133f1ed4"
SECTION = "devel/python"
DEPENDS = "python3-pillow zbar-openstlinux"
SRC_URI = "git://github.com/NaturalHistoryMuseum/pyzbar.git;protocol=https;branch=master"
SRCREV = "b6853df71aee4b38a9986af8565603a0115e81b7"
S = "${WORKDIR}/git"
BBCLASSEXTEND += "native nativesdk"
inherit setuptools3

View File

@@ -0,0 +1,36 @@
From 224507bc4b6e58f7a6e445bfebfb59d6b8d78bd6 Mon Sep 17 00:00:00 2001
From: Khem Raj <raj.khem@gmail.com>
Date: Fri, 2 Dec 2016 17:38:51 -0800
Subject: [PATCH] make relies GNU extentions
We get errors like
`%'-style pattern rules are a GNU make extension
Disable this warning, since we use gmake with OE
anyway
Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
configure.ac | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/configure.ac
+++ b/configure.ac
@@ -3,7 +3,7 @@ AC_PREREQ([2.61])
AC_INIT([zbar], [0.10], [spadix@users.sourceforge.net])
AC_CONFIG_AUX_DIR(config)
AC_CONFIG_MACRO_DIR(config)
-AM_INIT_AUTOMAKE([1.10 -Wall -Werror foreign subdir-objects std-options dist-bzip2])
+AM_INIT_AUTOMAKE([1.10 -Wall -Wno-error foreign subdir-objects std-options dist-bzip2])
AC_CONFIG_HEADERS([include/config.h])
AC_CONFIG_SRCDIR(zbar/scanner.c)
LT_PREREQ([2.2])
@@ -47,7 +47,7 @@ AC_DEFINE_UNQUOTED([LIB_VERSION_REVISION
[Library revision])
AM_CPPFLAGS="-I$srcdir/include"
-AM_CFLAGS="-Wall -Wno-parentheses -Werror"
+AM_CFLAGS="-Wall -Wno-parentheses"
AM_CXXFLAGS="$AM_CFLAGS"
AC_SUBST([AM_CPPFLAGS])
AC_SUBST([AM_CFLAGS])

View File

@@ -0,0 +1,45 @@
From 3d4fd19334b1d4c35ba64dff63a31e9eec01c422 Mon Sep 17 00:00:00 2001
From: Christophe Priouzeau <christophe.priouzeau@st.com>
Date: Fri, 9 Oct 2020 11:21:38 +0200
Subject: [PATCH] support of ImageMagick 7
Signed-off-by: Christophe Priouzeau <christophe.priouzeau@st.com>
---
configure.ac | 2 +-
zbarimg/zbarimg.c | 6 +-----
2 files changed, 2 insertions(+), 6 deletions(-)
diff --git a/configure.ac b/configure.ac
index 256aedb..5d4ed23 100644
--- a/configure.ac
+++ b/configure.ac
@@ -324,7 +324,7 @@ dnl but the latter doesn't exist in older verisons (bug #2848437)
dnl double check ImageMagick install (bug #2582232)
CPPFLAGS_save="$CPPFLAGS"
CPPFLAGS="$CPPFLAGS $MAGICK_CFLAGS"
- AC_CHECK_HEADER([wand/MagickWand.h],
+ AC_CHECK_HEADER([MagickWand/MagickWand.h],
[have_IM="yes"],
[have_IM="broken"])
CPPFLAGS="$CPPFLAGS_save"])])
diff --git a/zbarimg/zbarimg.c b/zbarimg/zbarimg.c
index d3cf5e8..fc7abba 100644
--- a/zbarimg/zbarimg.c
+++ b/zbarimg/zbarimg.c
@@ -39,12 +39,8 @@
#include <zbar.h>
-#ifdef HAVE_GRAPHICSMAGICK
-# include <wand/wand_api.h>
-#endif
-
#ifdef HAVE_IMAGEMAGICK
-# include <wand/MagickWand.h>
+#include <MagickWand/MagickWand.h>
/* ImageMagick frequently changes API names - just use the original
* (more stable?) names to match GraphicsMagick
--
2.17.1

View File

@@ -0,0 +1,53 @@
SUMMARY = "2D barcode scanner toolkit."
SECTION = "graphics"
LICENSE = "LGPL-2.1-only"
DEPENDS = "pkgconfig intltool-native libpng jpeg"
DEPENDS += "xmlto-native"
LIC_FILES_CHKSUM = "file://COPYING;md5=4015840237ca7f0175cd626f78714ca8"
PV = "0.10+git${SRCPV}"
SRCREV = "67003d2a985b5f9627bee2d8e3e0b26d0c474b57"
SRC_URI = "git://github.com/ZBar/Zbar;branch=master;protocol=https \
file://0001-make-relies-GNU-extentions.patch \
file://0002-support-of-ImageMagick-7.patch \
"
S = "${WORKDIR}/git"
inherit autotools pkgconfig python3native
PACKAGECONFIG = " \
${@bb.utils.filter('DISTRO_FEATURES', 'x11', d)} \
imagemagick video \
"
PACKAGECONFIG[x11] = "--with-x,-without-x,libxcb libx11 libsm libxau libxext libxv libice libxdmcp"
PACKAGECONFIG[imagemagick] = ",--without-imagemagick,imagemagick"
PACKAGECONFIG[video] = ",--disable-video,"
EXTRA_OECONF = " \
--without-qt \
--without-python \
--without-gtk \
"
CPPFLAGS += "-Wno-error"
do_install() {
install -d ${D}${libdir} ${D}${bindir}
# install library
install -m 0755 ${B}/zbar/.libs/libzbar.so.0.2.0 ${D}${libdir}
cd ${D}${libdir}
ln -s libzbar.so.0.2.0 libzbar.so.0
ln -s libzbar.so.0.2.0 libzbar.so
# install zbarcam
install -m 0755 ${B}/zbarcam/.libs/zbarcam ${D}${bindir}
# install zbarimg
install -m 0755 ${B}/zbarimg/.libs/zbarimg ${D}${bindir}
}