31 lines
658 B
Python
31 lines
658 B
Python
from lib import cpp
|
|
from lib.make import *
|
|
|
|
|
|
version("1.70.0")
|
|
description("nghttp2 - HTTP/2 C Library and tools")
|
|
maintainer("sisungo <[email protected]>")
|
|
source_managed("github://nghttp2/nghttp2#v1.70.0")
|
|
|
|
builddep("shortcut/c++")
|
|
builddep("shortcut/cmake")
|
|
|
|
|
|
def build():
|
|
cpp.cmake([
|
|
f"-DCMAKE_INSTALL_LIBDIR={get_prefix('libnghttp2')}/lib",
|
|
f"-DCMAKE_INSTALL_INCLUDEDIR={get_prefix('libnghttp2-dev')}/include",
|
|
])
|
|
cpp.ninja()
|
|
cpp.ninja_install()
|
|
|
|
on_build(build)
|
|
|
|
package("libnghttp2")
|
|
cpp.use_auto_pack(["lib"])
|
|
dep("semi-libc @same-arch")
|
|
|
|
package("libnghttp2-dev")
|
|
cpp.use_auto_pack(["dev"])
|
|
dep("libnghttp2 (same)")
|