aports/community/libplacebo/APKBUILD
Sertonix 6bd45b53fb */*: remove --no-rebuild from meson test
meson 1.7.0 and later don't include test build targets in the default
build target. With --no-rebuild the test targets aren't build at all.
Removing --no-rebuild shouldn't cause any false rebuilds since the files
aren't changed between the build() and check() step.

Fixes https://gitlab.alpinelinux.org/alpine/aports/-/issues/16891
Ref https://github.com/mesonbuild/meson/pull/10413
2025-05-09 20:48:14 +00:00

60 lines
1.5 KiB
Text

# Contributor: Alex Yam <alex@alexyam.com>
# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer: Simon Zeni <simon@bl4ckb0ne.ca>
pkgname=libplacebo
pkgver=6.338.2
pkgrel=3
# rc testing
_pkgver=${pkgver/_/-}
pkgdesc="Reusable library for GPU-accelerated video/image rendering"
url="https://code.videolan.org/videolan/libplacebo"
arch="all"
license="LGPL-2.1-or-later"
makedepends="
glslang-dev
glslang-static
lcms2-dev
libdovi-dev
meson
py3-glad
py3-mako
shaderc-dev
spirv-tools-dev
vulkan-loader-dev
"
subpackages="$pkgname-dev"
source="https://code.videolan.org/videolan/libplacebo/-/archive/v$_pkgver/libplacebo-v$_pkgver.tar.gz
glslang-deps.patch
"
builddir="$srcdir/libplacebo-v$_pkgver"
build() {
CFLAGS="$CFLAGS -O2" \
CXXFLAGS="$CXXFLAGS -O2" \
abuild-meson \
-Db_lto=true \
-Dbackend_max_links=4 \
-Ddemos=false \
-Ddovi=enabled \
-Dglslang=enabled \
-Dlcms=enabled \
-Dlibdovi=enabled \
-Dshaderc=enabled \
-Dtests="$(want_check && echo true || echo false)" \
-Dvulkan=enabled \
. output
meson compile -C output
}
check() {
meson test --print-errorlogs -C output
}
package() {
DESTDIR="$pkgdir" meson install --no-rebuild -C output
}
sha512sums="
0f20ae47bc2a7cd128d667ec2dd750a2d6ad5f16be6ab97122c2dda1ebf239958ee4bf453a7f835bea2dafb60a2e27b795801532aad994e002854c190aa6bbd8 libplacebo-v6.338.2.tar.gz
aef8c624063643b199e23a7ecd21075ba18aa4c581a3ada6d892f0f75d110f81021f3c61efb4879d508c69ec1d7da0c554f94a767e6864c46e89f7bb1ffc1114 glslang-deps.patch
"