37 lines
1.3 KiB
Bash
37 lines
1.3 KiB
Bash
# Template file for 'libplacebo'
|
|
pkgname=libplacebo
|
|
version=4.208.0
|
|
revision=1
|
|
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=7b3c857934ee3d30f743e43d7f0606e10950806661ea0ea385f8a1f06cbab854
|
|
|
|
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"
|
|
}
|
|
}
|