35 lines
716 B
Python
35 lines
716 B
Python
from lib import cpp, arch
|
|
from lib.make import *
|
|
|
|
|
|
version("1.53.0")
|
|
description("Cross-platform asynchronous I/O")
|
|
maintainer("sisungo <[email protected]>")
|
|
source_managed("github://libuv/libuv#v1.53.0")
|
|
|
|
builddep("shortcut/c")
|
|
builddep("shortcut/cmake")
|
|
builddep("linux-dev @target")
|
|
|
|
|
|
def build():
|
|
cpp.cmake([
|
|
"-DCMAKE_INSTALL_PREFIX=/",
|
|
f"-DCMAKE_INSTALL_LIBDIR={get_prefix('libuv')}/lib",
|
|
f"-DCMAKE_INSTALL_INCLUDEDIR={get_prefix('libuv-dev')}/include",
|
|
])
|
|
cpp.ninja()
|
|
cpp.ninja_install()
|
|
|
|
on_build(build)
|
|
|
|
|
|
package("libuv")
|
|
dep("semi-libc")
|
|
cpp.use_auto_pack(["lib"])
|
|
|
|
package("libuv-dev")
|
|
dep("libuv (same)")
|
|
dep("semi-libc-dev @same-arch")
|
|
cpp.use_auto_pack(["dev"])
|