forked from m154k1/mpv-build-macOS
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild-libplacebo
More file actions
executable file
·44 lines (35 loc) · 846 Bytes
/
build-libplacebo
File metadata and controls
executable file
·44 lines (35 loc) · 846 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#!/bin/bash -e
#
# libplacebo
# https://code.videolan.org/videolan/libplacebo.git
#
cd "$(dirname "$0")"
set -a; . .env; set +a
pkgname="libplacebo"
pkgdir="${STOWDIR}/${pkgname}"
srcdir="src/libplacebo"
builddir="${TMPDIR:-/tmp}/build.${pkgname}"
echo "::group::$0"
rm -rf "${builddir}"
meson setup "${builddir}" "${srcdir}" \
--prefix="${pkgdir}" \
-Dwrap_mode=nodownload \
-Dbuildtype=release \
-Db_lto=true \
-Db_lto_mode=thin \
-Dvulkan-registry="${PREFIX}/share/vulkan/registry/vk.xml" \
-Dvulkan=enabled \
-Dshaderc=enabled \
-Dlcms=enabled \
-Dxxhash=enabled \
-Dopengl=disabled \
-Dd3d11=disabled \
-Dglslang=disabled \
-Ddemos=false \
"$@"
meson compile -C "${builddir}"
rm -rf "${pkgdir}"
meson install -C "${builddir}"
stow -Rd "${STOWDIR}" "${pkgname}"
rm -rf "${builddir}"
echo "::endgroup::"