forked from semios/semios-packages
Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4e84558f9a |
@@ -1,36 +0,0 @@
|
||||
from lib.make import *
|
||||
from lib import cpp, arch
|
||||
|
||||
|
||||
version("2.24.1")
|
||||
description("an implementation for VA-API")
|
||||
maintainer("sisungo <[email protected]>")
|
||||
source_url("https://github.com/intel/libva/releases/download/2.24.1/libva-2.24.1.tar.bz2")
|
||||
|
||||
builddep("shortcut/c")
|
||||
builddep("shortcut/autotools")
|
||||
builddep(f"libwayland-dev @{arch.get_target()}")
|
||||
builddep(f"libdrm-dev @{arch.get_target()}")
|
||||
builddep(f"libffi-dev @{arch.get_target()}")
|
||||
builddep(f"pkgconf @{arch.get_target()}")
|
||||
builddep(f"linux-dev @{arch.get_target()}")
|
||||
|
||||
|
||||
def build():
|
||||
cpp.configure([
|
||||
f"--libdir={get_prefix('libva')}/lib",
|
||||
f"--includedir={get_prefix('libva-dev')}/include",
|
||||
"--enable-wayland",
|
||||
])
|
||||
cpp.make()
|
||||
cpp.make_install()
|
||||
|
||||
on_build(build)
|
||||
|
||||
|
||||
package("libva")
|
||||
cpp.use_auto_pack(["lib"])
|
||||
|
||||
package("libva-dev")
|
||||
dep("libva (same)")
|
||||
cpp.use_auto_pack(["dev"])
|
||||
@@ -0,0 +1,35 @@
|
||||
from lib.make import *
|
||||
from lib import cpp
|
||||
|
||||
|
||||
version("1.4.357.0")
|
||||
description("SPIR-V headers")
|
||||
maintainer("sisungo <[email protected]>")
|
||||
source_url("https://github.com/KhronosGroup/SPIRV-Headers/archive/refs/tags/vulkan-sdk-1.4.357.0.tar.gz")
|
||||
|
||||
builddep("shortcut/cmake")
|
||||
builddep("shortcut/c")
|
||||
|
||||
|
||||
def build():
|
||||
cpp.cmake()
|
||||
cpp.ninja()
|
||||
cpp.ninja_install()
|
||||
|
||||
on_build(build)
|
||||
|
||||
|
||||
def fix_pc(path):
|
||||
with open(path, 'r') as file:
|
||||
content = file.read()
|
||||
content = content.replace("includedir=//usr/include", f"includedir={get_prefix('spirv-headers')}/include")
|
||||
with open(path, 'wt+') as file:
|
||||
file.write(content)
|
||||
|
||||
def pack(composer):
|
||||
composer.add_dir("include", "include")
|
||||
composer.add_dir("share", "lib")
|
||||
fix_pc(f"{composer.workdir}/bundle/lib/pkgconfig/SPIRV-Headers.pc")
|
||||
|
||||
package("spirv-headers")
|
||||
on_pack(pack)
|
||||
Reference in New Issue
Block a user