void-packages/srcpkgs/libplacebo/template

39 lines
1.2 KiB
Bash

# Template file for 'libplacebo'
pkgname=libplacebo
version=6.338.2
revision=2
build_style=meson
configure_args="-Dshaderc=enabled -Dvulkan=enabled -Ddemos=false
$(vopt_feature lcms) $(vopt_feature opengl)"
hostmakedepends="pkg-config python3-Mako Vulkan-Headers python3-Jinja2
$(vopt_if opengl python3-glad)"
makedepends="shaderc vulkan-loader-devel
$(vopt_if lcms lcms2-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=d029adbe55bba8aed7aed2c48b0b66081dddfb9d42683a709342e33aa666c544
if [ "$XBPS_CHECK_PKGS" ]; then
configure_args+=" -Dtests=true"
else
configure_args+=" -Dtests=false"
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-devel
$(vopt_if lcms lcms2-devel)"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.so"
}
}