feat: upgrade pkgconf to v3.0.8
Signed-off-by: sisungo <[email protected]>
This commit is contained in:
1 parent
db338e6af7
commit
91524d6944
1 file changed
+12
-10
@@ -2,31 +2,32 @@ import lib.cpp as cpp
|
||||
from lib import arch
|
||||
from lib.make import *
|
||||
|
||||
version("2.5.1")
|
||||
|
||||
version("3.0.8")
|
||||
description("package compiler and linker metadata toolkit")
|
||||
maintainer("sisungo <[email protected]>")
|
||||
source_managed("github://pkgconf/pkgconf#pkgconf-3.0.7", "autotools")
|
||||
source_managed("github://pkgconf/pkgconf#pkgconf-3.0.8")
|
||||
|
||||
builddep("shortcut/c")
|
||||
builddep("shortcut/autotools")
|
||||
builddep("shortcut/meson")
|
||||
|
||||
|
||||
def build():
|
||||
cpp.configure([
|
||||
cpp.meson_setup([
|
||||
"--prefix=/",
|
||||
f"--bindir={get_prefix('pkgconf')}/bin",
|
||||
f"--libdir={get_prefix('libpkgconf')}/lib",
|
||||
f"--includedir={get_prefix('libpkgconf-dev')}/include",
|
||||
f"--with-system-libdir=/lib:/lib/{arch.get_target()}",
|
||||
f"--with-system-includedir=/lib/{arch.get_target()}/include",
|
||||
f"--with-pkg-config-dir=/lib/{arch.get_target()}/pkgconfig",
|
||||
f"-Dwith-system-libdir=/lib:/lib/{arch.get_target()}",
|
||||
f"-Dwith-system-includedir=/lib/{arch.get_target()}/include",
|
||||
f"-Dwith-pkg-config-dir=/lib/{arch.get_target()}/pkgconfig:/share/pkgconfig",
|
||||
])
|
||||
cpp.make()
|
||||
cpp.make_install()
|
||||
|
||||
cpp.meson_compile()
|
||||
cpp.meson_install()
|
||||
|
||||
on_build(build)
|
||||
|
||||
|
||||
package("libpkgconf")
|
||||
cpp.use_auto_pack(["lib"])
|
||||
dep("semi-libc @same-arch")
|
||||
@@ -39,3 +40,4 @@ link("bin/pkgconf", "/bin/pkg-config")
|
||||
package("libpkgconf-dev")
|
||||
cpp.use_auto_pack(["dev"])
|
||||
dep("libpkgconf (same)")
|
||||
dep("semi-libc-dev @same-arch")
|
||||
Reference in new issue
Block a user