gjdwebserver-overlay/media-libs/libcamera/libcamera-0.3.0.ebuild

77 lines
1.6 KiB
Bash
Raw Normal View History

2024-05-27 14:08:10 +02:00
# Copyright 2021-2022 Gentoo Authors
2024-05-24 16:01:57 +02:00
# Distributed under the terms of the GNU General Public License v2
EAPI=8
2024-05-27 14:08:10 +02:00
inherit meson
2024-05-24 16:01:57 +02:00
2024-05-27 14:08:10 +02:00
DESCRIPTION="A complex camera support library for Linux, Android, and ChromeOS"
HOMEPAGE="https://libcamera.org/"
SRC_URI="https://github.com/kbingham/libcamera/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64 ~x86 ~arm ~arm64"
2024-05-24 16:01:57 +02:00
LICENSE="LGPL-2.1+"
SLOT="0"
2024-05-27 14:08:10 +02:00
#IUSE="debug doc drm gnutls gstreamer jpeg libevent qt5 sdl tiff trace udev unwind v4l2"
IUSE="debug drm gnutls gstreamer jpeg libevent qt5 sdl tiff trace udev unwind v4l2"
REQUIRED_USE="qt5? ( tiff )"
DEPEND="
dev-libs/libyaml:=
dev-python/jinja
dev-python/ply
dev-python/pyyaml
|| (
net-libs/gnutls
dev-libs/openssl
)
debug? ( dev-libs/elfutils:= )
gstreamer? ( media-libs/gstreamer:= )
libevent?
(
dev-libs/libevent:=
drm? ( x11-libs/libdrm:= )
jpeg? ( media-libs/libjpeg-turbo:= )
sdl? ( media-libs/libsdl2:= )
)
qt5?
(
dev-qt/qtcore:5
dev-qt/qtgui:5
dev-qt/qtwidgets:5
)
tiff? ( media-libs/tiff:= )
trace? ( dev-util/lttng-ust:= )
udev? ( virtual/libudev:= )
unwind? ( sys-libs/libunwind:= )
"
2024-05-24 16:01:57 +02:00
RDEPEND="
2024-05-27 14:08:10 +02:00
${DEPEND}
trace? ( dev-util/lttng-tools )
2024-05-24 16:01:57 +02:00
"
2024-05-27 14:08:10 +02:00
#BDEPEND="
# doc?
# (
# app-text/doxygen[dot]
# dev-python/sphinx
# dev-texlive/texlive-latexextra
# )
#"
2024-05-24 16:01:57 +02:00
src_configure() {
local emesonargs=(
2024-05-27 14:08:10 +02:00
# Broken for >=dev-pyhon/sphinx-7
# $(meson_feature doc documentation)
-Ddocumentation=disabled
$(meson_feature libevent cam)
$(meson_feature gstreamer)
$(meson_feature qt5 qcam)
$(meson_feature trace tracing)
2024-05-27 22:27:38 +02:00
$(meson_use v4l2)
2024-05-24 16:01:57 +02:00
)
2024-05-27 22:26:50 +02:00
meson_src_configure "-Dpipelines=rkisp1"
2024-05-24 16:01:57 +02:00
}