forked from semios/semios-packages
Compare commits
4
Commits
maintainers
...
glslang
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
39f81d1714 | ||
|
|
89744adb38 | ||
|
|
fc753703c4 | ||
|
|
132ed2d8b3 |
@@ -0,0 +1,46 @@
|
||||
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,30 @@
|
||||
from lib.make import *
|
||||
from lib import cpp
|
||||
|
||||
|
||||
version("3.5.2")
|
||||
description("an interactive process viewer")
|
||||
maintainer("sisungo <[email protected]>")
|
||||
source_url("https://github.com/htop-dev/htop/releases/download/3.5.2/htop-3.5.2.tar.xz")
|
||||
|
||||
builddep("shortcut/autotools")
|
||||
builddep("shortcut/c")
|
||||
builddep(f"libncurses-dev @{arch.get_target()}")
|
||||
builddep(f"linux-dev @{arch.get_target()}")
|
||||
|
||||
|
||||
def build():
|
||||
cpp.configure([
|
||||
f"--prefix={get_prefix('htop')}",
|
||||
"--enable-unicode",
|
||||
])
|
||||
cpp.make()
|
||||
cpp.make_install()
|
||||
|
||||
on_build(build)
|
||||
|
||||
|
||||
package("htop")
|
||||
dep("libncurses @same-arch")
|
||||
dep("semi-libc @same-arch")
|
||||
cpp.use_auto_pack(["bin"])
|
||||
Reference in New Issue
Block a user