37 lines
873 B
Python
37 lines
873 B
Python
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"])
|