PKGNAME=libcamera
PKGSEC=libs
PKGDES="Cross-platform camera support library"
PKGDEP="lttng-ust systemd yaml libdrm libevent libjpeg-turbo libtiff sdl2 \
        elfutils libunwind gstreamer glib gnutls qt-6 openssl libevent gtest \
        libyuv"
PKGDEP__ARM64="${PKGDEP} libpisp"
BUILDDEP="jinja2 ply pyyaml"

PKGBREAK="pipewire<=1.4.10"

# Note: `-Dpipelines=auto` to let the project decide which pipelines to compile
# for the host CPU architecture.
# Note: `-Dipas` should not be specified as it would match the pipeline names
# during compilation.
MESON_AFTER=(
    '-Dandroid=disabled'
    '-Dcam=enabled'
    '-Dcam-output-kms=enabled'
    '-Dcam-output-sdl2=enabled'
    '-Dcam-jpeg=enabled'
    '-Ddocumentation=disabled'
    '-Ddoc_werror=false'
    '-Dgstreamer=enabled'
    '-Dlc-compliance=enabled'
    '-Dlibdw=enabled'
    '-Dlibunwind=enabled'
    '-Dpipelines=auto'
    '-Dpycamera=disabled'
    '-Dqcam=enabled'
    '-Dtest=false'
    '-Dtracing=enabled'
    '-Dudev=enabled'
    '-Dv4l2=enabled'
)
