diff options
Diffstat (limited to 'meta-multimedia/recipes-multimedia/libcamera/libcamera_0.3.0.bb')
-rw-r--r-- | meta-multimedia/recipes-multimedia/libcamera/libcamera_0.3.0.bb | 77 |
1 files changed, 0 insertions, 77 deletions
diff --git a/meta-multimedia/recipes-multimedia/libcamera/libcamera_0.3.0.bb b/meta-multimedia/recipes-multimedia/libcamera/libcamera_0.3.0.bb deleted file mode 100644 index 93f29c1612..0000000000 --- a/meta-multimedia/recipes-multimedia/libcamera/libcamera_0.3.0.bb +++ /dev/null | |||
@@ -1,77 +0,0 @@ | |||
1 | SUMMARY = "Linux libcamera framework" | ||
2 | SECTION = "libs" | ||
3 | |||
4 | LICENSE = "GPL-2.0-or-later & LGPL-2.1-or-later" | ||
5 | |||
6 | LIC_FILES_CHKSUM = "\ | ||
7 | file://LICENSES/GPL-2.0-or-later.txt;md5=fed54355545ffd980b814dab4a3b312c \ | ||
8 | file://LICENSES/LGPL-2.1-or-later.txt;md5=2a4f4fd2128ea2f65047ee63fbca9f68 \ | ||
9 | " | ||
10 | |||
11 | SRC_URI = " \ | ||
12 | git://git.libcamera.org/libcamera/libcamera.git;protocol=https;branch=master \ | ||
13 | file://0001-media_device-Add-bool-return-type-to-unlock.patch \ | ||
14 | file://0002-options-Replace-use-of-VLAs-in-C.patch \ | ||
15 | file://0001-rpi-Use-alloca-instead-of-variable-length-arrays.patch \ | ||
16 | " | ||
17 | |||
18 | SRCREV = "aee16c06913422a0ac84ee3217f87a9795e3c2d9" | ||
19 | |||
20 | PE = "1" | ||
21 | |||
22 | S = "${WORKDIR}/git" | ||
23 | |||
24 | DEPENDS = "python3-pyyaml-native python3-jinja2-native python3-ply-native python3-jinja2-native udev gnutls chrpath-native libevent libyaml" | ||
25 | DEPENDS += "${@bb.utils.contains('DISTRO_FEATURES', 'qt', 'qtbase qtbase-native', '', d)}" | ||
26 | |||
27 | PACKAGES =+ "${PN}-gst" | ||
28 | |||
29 | PACKAGECONFIG ??= "" | ||
30 | PACKAGECONFIG[gst] = "-Dgstreamer=enabled,-Dgstreamer=disabled,gstreamer1.0 gstreamer1.0-plugins-base" | ||
31 | |||
32 | LIBCAMERA_PIPELINES ??= "auto" | ||
33 | |||
34 | EXTRA_OEMESON = " \ | ||
35 | -Dpipelines=${LIBCAMERA_PIPELINES} \ | ||
36 | -Dv4l2=true \ | ||
37 | -Dcam=enabled \ | ||
38 | -Dlc-compliance=disabled \ | ||
39 | -Dtest=false \ | ||
40 | -Ddocumentation=disabled \ | ||
41 | " | ||
42 | |||
43 | RDEPENDS:${PN} = "${@bb.utils.contains('DISTRO_FEATURES', 'wayland qt', 'qtwayland', '', d)}" | ||
44 | |||
45 | inherit meson pkgconfig python3native | ||
46 | |||
47 | do_configure:prepend() { | ||
48 | sed -i -e 's|py_compile=True,||' ${S}/utils/ipc/mojo/public/tools/mojom/mojom/generate/template_expander.py | ||
49 | } | ||
50 | |||
51 | do_install:append() { | ||
52 | chrpath -d ${D}${libdir}/libcamera.so | ||
53 | chrpath -d ${D}${libexecdir}/libcamera/v4l2-compat.so | ||
54 | } | ||
55 | |||
56 | do_package:append() { | ||
57 | bb.build.exec_func("do_package_recalculate_ipa_signatures", d) | ||
58 | } | ||
59 | |||
60 | do_package_recalculate_ipa_signatures() { | ||
61 | local modules | ||
62 | for module in $(find ${PKGD}/usr/lib/libcamera -name "*.so.sign"); do | ||
63 | module="${module%.sign}" | ||
64 | if [ -f "${module}" ] ; then | ||
65 | modules="${modules} ${module}" | ||
66 | fi | ||
67 | done | ||
68 | |||
69 | ${S}/src/ipa/ipa-sign-install.sh ${B}/src/ipa-priv-key.pem "${modules}" | ||
70 | } | ||
71 | |||
72 | FILES:${PN} += " ${libexecdir}/libcamera/v4l2-compat.so" | ||
73 | FILES:${PN}-gst = "${libdir}/gstreamer-1.0" | ||
74 | |||
75 | # libcamera-v4l2 explicitly sets _FILE_OFFSET_BITS=32 to get access to | ||
76 | # both 32 and 64 bit file APIs. | ||
77 | GLIBC_64BIT_TIME_FLAGS = "" | ||