forked from semios/ports
feat: add wayland related tools
Signed-off-by: sisungo <[email protected]>
This commit is contained in:
@@ -9,16 +9,18 @@ source_url("https://gitlab.freedesktop.org/wayland/wayland-protocols/-/archive/1
|
||||
|
||||
builddep("shortcut/meson")
|
||||
builddep("shortcut/c++")
|
||||
builddep(f"libffi-dev @{arch.get_target()}")
|
||||
builddep(f"libexpat-dev @{arch.get_target()}")
|
||||
builddep(f"pkgconf @{arch.get_target()}")
|
||||
builddep("libffi-dev @target")
|
||||
builddep("libexpat-dev @target")
|
||||
builddep("pkgconf @target")
|
||||
builddep("gnu-sed")
|
||||
builddep("libwayland-dev @target")
|
||||
|
||||
|
||||
def build():
|
||||
cpp.meson_setup([
|
||||
f"--prefix={get_prefix('wayland-protocols')}",
|
||||
f"--datadir={get_prefix('wayland-protocols')}/share",
|
||||
f"--includedir={get_prefix('wayland-protocols')}/include",
|
||||
"-Dtests=false",
|
||||
])
|
||||
cpp.meson_compile()
|
||||
@@ -32,6 +34,7 @@ def pack(composer):
|
||||
composer.add_dir("share/pkgconfig", "lib/pkgconfig")
|
||||
composer.makedir("share")
|
||||
composer.add_dir("share/wayland-protocols")
|
||||
composer.add_dir("include")
|
||||
|
||||
package("wayland-protocols")
|
||||
on_pack(pack)
|
||||
|
||||
Reference in New Issue
Block a user