feat: add package libplacebo
Signed-off-by: sisungo <[email protected]>
This commit is contained in:
1 parent
7cce55fdee
commit
7b77119e1f
1 file changed
+59
@@ -0,0 +1,59 @@
|
||||
from lib.make import *
|
||||
from lib import cpp, packie
|
||||
|
||||
|
||||
version("7.360.1")
|
||||
description("libplacebo is, in a nutshell, the core rendering algorithms and ideas of mpv rewritten as an independent library.")
|
||||
maintainer("sisungo <[email protected]>")
|
||||
source_managed("github://haasn/libplacebo#v7.360.1")
|
||||
|
||||
builddep("shortcut/c++")
|
||||
builddep("shortcut/meson")
|
||||
builddep("libvulkan-dev @target")
|
||||
builddep("libopengl-dev @target")
|
||||
builddep("liblcms-dev @target")
|
||||
builddep("libxxhash-dev @target")
|
||||
builddep("libshaderc-dev @target")
|
||||
builddep("glad (>=2.0.0) @target")
|
||||
builddep("vulkan-headers @target")
|
||||
builddep("jinja2.py @target")
|
||||
builddep("MarkupSafe.py @target")
|
||||
builddep("libexpat")
|
||||
|
||||
|
||||
def build():
|
||||
cpp.meson_setup([
|
||||
"--prefix=/",
|
||||
f"--libdir={get_prefix('libplacebo')}/lib",
|
||||
f"--includedir={get_prefix('libplacebo-dev')}/include",
|
||||
"-Dvulkan=enabled",
|
||||
f"-Dvulkan-registry={packie.prefix_of('vulkan-headers')}/lib/vulkan/registry/vk.xml",
|
||||
"-Dvk-proc-addr=disabled",
|
||||
"-Dopengl=enabled",
|
||||
"-Dgl-proc-addr=enabled",
|
||||
"-Dshaderc=enabled",
|
||||
"-Dlcms=enabled",
|
||||
"-Dxxhash=enabled",
|
||||
])
|
||||
cpp.meson_compile()
|
||||
cpp.meson_install()
|
||||
|
||||
on_build(build)
|
||||
|
||||
|
||||
package("libplacebo")
|
||||
dep("semi-libc @same-arch")
|
||||
dep("libshaderc @same-arch")
|
||||
dep("liblcms @same-arch")
|
||||
dep("libcxx @same-arch")
|
||||
cpp.use_auto_pack(["lib"])
|
||||
|
||||
package("libplacebo-dev")
|
||||
dep("libplacebo (same)")
|
||||
dep("semi-libc-dev @same-arch")
|
||||
dep("libshaderc-dev @same-arch")
|
||||
dep("liblcms-dev @same-arch")
|
||||
dep("libcxx-dev @same-arch")
|
||||
dep("vulkan-headers @same-arch")
|
||||
dep("libvulkan-dev @same-arch")
|
||||
cpp.use_auto_pack(["dev"])
|
||||
Reference in new issue
Block a user