30 lines
863 B
Plaintext
Raw Normal View History

# Description: Reusable library for GPU-accelerated video/image rendering primitives
# URL: https://github.com/haasn/libplacebo
2023-03-10 21:46:34 -05:00
# Maintainer: John McQuah, jmcquah at disroot dot org
# Depends on: glad lcms2 shaderc vulkan-loader
# Optional: libunwind
name=libplacebo
2024-02-21 22:24:03 +00:00
version=6.338.2
2023-03-16 10:36:16 -04:00
release=1
2024-02-21 22:24:03 +00:00
source=(https://github.com/haasn/$name/archive/v$version/$name-$version.tar.gz)
build() {
2024-02-21 22:24:03 +00:00
meson setup build $name-$version \
--prefix=/usr \
--buildtype=plain \
--wrap-mode nodownload \
-D b_lto=true \
-D b_pie=true \
-D vulkan=enabled \
-D vulkan-registry=/usr/share/vulkan/registry/vk.xml \
-D shaderc=enabled \
-D lcms=enabled \
-D d3d11=disabled \
-D demos=false \
-D tests=false
meson compile -C build -j ${JOBS:-1}
DESTDIR=$PKG meson install -C build
}