2023-01-24 20:47:34 +01:00
|
|
|
# Copyright 1999-2022 Gentoo Authors
|
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
|
|
|
EAPI=8
|
|
|
|
PYTHON_COMPAT=( python3_{7..10} )
|
|
|
|
|
|
|
|
inherit meson python-any-r1
|
|
|
|
|
|
|
|
DESCRIPTION="Camera support library for Linux"
|
|
|
|
HOMEPAGE="http://libcamera.org"
|
|
|
|
SRC_URI="https://github.com/libcamera-org/libcamera/archive/refs/tags/v${PV}.tar.gz"
|
|
|
|
|
|
|
|
LICENSE="LGPL-2.1+"
|
2023-01-24 20:50:14 +01:00
|
|
|
SLOT="0"
|
2023-01-24 20:48:37 +01:00
|
|
|
KEYWORDS="~arm64"
|
2023-01-24 20:47:34 +01:00
|
|
|
IUSE="debug doc test udev"
|
|
|
|
|
|
|
|
RDEPEND="
|
|
|
|
>=net-libs/gnutls-3.3:=
|
|
|
|
udev? ( virtual/libudev )
|
2023-01-24 20:54:42 +01:00
|
|
|
dev-python/ply
|
2023-01-24 20:47:34 +01:00
|
|
|
"
|
|
|
|
|
|
|
|
DEPEND="
|
|
|
|
${RDEPEND}
|
|
|
|
dev-libs/openssl
|
|
|
|
$(python_gen_any_dep 'dev-python/pyyaml[${PYTHON_USEDEP}]')
|
|
|
|
"
|
|
|
|
|
2023-01-24 21:29:24 +01:00
|
|
|
PATCHES=(
|
2023-01-24 21:34:24 +01:00
|
|
|
#"${FILESDIR}"/libcamera-devel-v6-2-5-ipa-rkisp1-add-FrameDurationLimits-control.diff
|
2023-01-24 21:29:24 +01:00
|
|
|
"${FILESDIR}"/libcamera-devel-v6-5-5-ipa-libcamera-add-support-for-ov8858-sensor.diff
|
|
|
|
)
|
|
|
|
|
|
|
|
|
2023-01-24 20:47:34 +01:00
|
|
|
src_configure() {
|
|
|
|
local emesonargs=(
|
|
|
|
$(meson_feature doc documentation)
|
|
|
|
$(meson_use test)
|
|
|
|
--buildtype $(usex debug debug plain)
|
|
|
|
)
|
|
|
|
meson_src_configure
|
|
|
|
}
|
|
|
|
|
|
|
|
src_compile() {
|
|
|
|
meson_src_compile
|
|
|
|
}
|
|
|
|
|
|
|
|
src_install() {
|
|
|
|
meson_src_install
|
|
|
|
}
|