1 parent
7cce55fdee
commit
f4de50e6de
1 file changed
+36
@@ -0,0 +1,36 @@
|
||||
from lib.make import *
|
||||
from lib import cpp, arch
|
||||
|
||||
|
||||
version("1.5.4")
|
||||
description("The Scalable Video Technology for AV1 (SVT-AV1 Encoder) is an AV1-compliant software encoder library.")
|
||||
maintainer("sisungo <[email protected]>")
|
||||
source_managed("gitlab://gitlab.com/AOMediaCodec/SVT-AV1#v4.2.0")
|
||||
|
||||
builddep("shortcut/c++")
|
||||
builddep("shortcut/cmake")
|
||||
|
||||
|
||||
def build():
|
||||
cpp.cmake([
|
||||
"-DCMAKE_INSTALL_PREFIX=/",
|
||||
f"-DCMAKE_INSTALL_LIBDIR={get_prefix('libsvtav1')}/lib",
|
||||
f"-DCMAKE_INSTALL_BINDIR={get_prefix('libsvtav1-tools')}/bin",
|
||||
f"-DCMAKE_INSTALL_INCLUDEDIR={get_prefix('libsvtav1-dev')}/include",
|
||||
])
|
||||
cpp.ninja()
|
||||
cpp.ninja_install()
|
||||
|
||||
on_build(build)
|
||||
|
||||
|
||||
package("libsvtav1")
|
||||
cpp.use_auto_pack(["lib"])
|
||||
|
||||
package("libsvtav1-tools")
|
||||
dep("libsvtav1 (same)")
|
||||
cpp.use_auto_pack(["bin"])
|
||||
|
||||
package("libsvtav1-dev")
|
||||
dep("libsvtav1 (same)")
|
||||
cpp.use_auto_pack(["dev"])
|
||||
Reference in new issue
Block a user