forked from semios/semios-packages
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3b0a173ad4 |
@@ -1,46 +0,0 @@
|
||||
import subprocess
|
||||
import os
|
||||
|
||||
from lib.make import *
|
||||
from lib import cpp, arch
|
||||
|
||||
|
||||
version("16.5.0")
|
||||
description("Khronos-reference front end for GLSL/ESSL, partial front end for HLSL, and a SPIR-V generator")
|
||||
maintainer("sisungo <[email protected]>")
|
||||
source_url("https://github.com/KhronosGroup/glslang/archive/refs/tags/16.5.0.tar.gz")
|
||||
|
||||
builddep("shortcut/cmake")
|
||||
builddep("shortcut/c++")
|
||||
builddep("spirv-tools-dev")
|
||||
|
||||
|
||||
def build():
|
||||
cpp.cmake([
|
||||
"-DALLOW_EXTERNAL_SPIRV_TOOLS=ON",
|
||||
f"-DSPIRV-Tools-opt_DIR=/lib/{arch.get_target()}/cmake/SPIRV-Tools-opt",
|
||||
f"-DSPIRV-Tools_DIR=/lib/{arch.get_target()}/cmake/SPIRV-Tools",
|
||||
"-DGLSLANG_TESTS=OFF",
|
||||
f"-DCMAKE_INSTALL_PREFIX={get_prefix('glslang-dev')}"
|
||||
])
|
||||
cpp.ninja()
|
||||
cpp.ninja_install()
|
||||
|
||||
on_build(build)
|
||||
|
||||
|
||||
def pack_bin(composer):
|
||||
composer.add_dir("bin", "bin")
|
||||
|
||||
package("glslang")
|
||||
dep("libcxx @same-arch")
|
||||
on_pack(pack_bin)
|
||||
|
||||
def pack_dev(composer):
|
||||
composer.add_dir("include", "include")
|
||||
composer.add_dir("lib64", "lib")
|
||||
os.symlink("lib", f"{composer.workdir}/bundle/lib64")
|
||||
|
||||
package("glslang-dev")
|
||||
dep("libcxx @same-arch")
|
||||
on_pack(pack_dev)
|
||||
@@ -0,0 +1,43 @@
|
||||
import os
|
||||
|
||||
from lib.make import *
|
||||
from lib import cpp, arch
|
||||
|
||||
|
||||
version("2.4.134")
|
||||
description("libdrm Direct Rendering Manager library and headers")
|
||||
maintainer("sisungo <[email protected]>")
|
||||
source_git("https://gitlab.freedesktop.org/mesa/libdrm.git", "libdrm-2.4.134")
|
||||
|
||||
builddep("shortcut/meson")
|
||||
builddep("shortcut/c")
|
||||
builddep(f"linux-dev @{arch.get_target()}")
|
||||
builddep("pkgconf")
|
||||
|
||||
|
||||
def build():
|
||||
cpp.meson_setup([
|
||||
"--prefix", get_prefix('libdrm-dev'),
|
||||
"--libdir", f"{get_prefix('libdrm')}/lib",
|
||||
"--datadir", f"{get_prefix('libdrm')}/share",
|
||||
])
|
||||
cpp.meson_compile()
|
||||
cpp.meson_install()
|
||||
|
||||
on_build(build)
|
||||
|
||||
|
||||
def pack_libdrm(composer):
|
||||
composer.add_dir("share", "share")
|
||||
composer.makedir("lib")
|
||||
for i in os.listdir("lib"):
|
||||
if ".so" in i:
|
||||
composer.addfile(f"lib/{i}", f"lib/{i}")
|
||||
|
||||
package("libdrm")
|
||||
dep("semi-libc @same-arch")
|
||||
on_pack(pack_libdrm)
|
||||
|
||||
package("libdrm-dev")
|
||||
dep("libdrm (same)")
|
||||
cpp.use_auto_pack(["dev"])
|
||||
Reference in New Issue
Block a user