void-packages/srcpkgs/libplacebo/template

38 lines
1.3 KiB
Bash

# Template file for 'libplacebo'
pkgname=libplacebo
version=4.192.1
revision=1
wrksrc="${pkgname}-v${version}"
build_style=meson
configure_args="-Dshaderc=enabled -Dvulkan=enabled
-Dlcms=$(vopt_if lcms en dis)abled -Dopengl=$(vopt_if opengl en dis)abled"
hostmakedepends="pkg-config python3-Mako Vulkan-Headers"
makedepends="shaderc Vulkan-Headers vulkan-loader $(vopt_if lcms lcms2-devel)
$(vopt_if opengl libepoxy-devel)"
short_desc="Reusable library for GPU-accelerated video/image rendering"
maintainer="Enrico Belleri <idesmi@protonmail.com>"
license="LGPL-2.1-or-later"
homepage="https://code.videolan.org/videolan/libplacebo"
distfiles="https://code.videolan.org/videolan/libplacebo/-/archive/v${version}/libplacebo-v${version}.tar.gz"
checksum=e6c5805cf4d955b5941dd12b00fe157b61e77995bc1786b9a86df0ca99a0edc4
if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
makedepends+=" libatomic-devel"
LDFLAGS+=" -latomic"
fi
build_options="lcms opengl"
build_options_default="lcms opengl"
desc_option_lcms="Enable support for LittleCMS 2 engine"
libplacebo-devel_package() {
depends="${sourcepkg}>=${version}_${revision} vulkan-loader
$(vopt_if lcms lcms2-devel) $(vopt_if opengl libepoxy-devel)"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.so"
}
}