34 lines
1.2 KiB
Bash
34 lines
1.2 KiB
Bash
# Template file for 'libplacebo'
|
|
pkgname=libplacebo
|
|
version=2.72.2
|
|
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="Orphaned <orphan@voidlinux.org>"
|
|
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=5d3c51bb98d9727a255234a522f631f00d62a9e87115fb14251d991fc5076979
|
|
|
|
build_options="lcms opengl"
|
|
build_options_default="lcms opengl"
|
|
desc_option_lcms="Enable support for LittleCMS 2 engine"
|
|
desc_option_opengl="Enable support for OpenGL-based renderer"
|
|
|
|
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"
|
|
}
|
|
}
|