void-packages/srcpkgs/libplacebo/template
Dmitry Zakharchenko f066ea6fc9 libplacebo: update to 4.157.0.
Build for armv6l-musl fails without libatomic explicitly set.
2021-11-06 16:13:12 -05:00

38 lines
1.3 KiB
Bash

# Template file for 'libplacebo'
pkgname=libplacebo
version=4.157.0
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=8ee7773fb7813520b6b1e5f8f207cdf0071a7cf48ca0ce871e956ae6f4d0d538
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"
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"
}
}