|
@@ -9,7 +9,7 @@ package("wayland")
|
|
|
|
|
|
add_resources("1.x", "protocols", "https://wayland.freedesktop.org/releases/wayland-protocols-1.20.tar.xz", "9782b7a1a863d82d7c92478497d13c758f52e7da4f197aa16443f73de77e4de7")
|
|
|
|
|
|
- add_deps("meson", "libxml2", "libffi", "expat")
|
|
|
+ add_deps("meson", "libxml2", "libffi", "expat", "bison")
|
|
|
on_install("linux", function (package)
|
|
|
|
|
|
-- imports
|
|
@@ -27,6 +27,7 @@ package("wayland")
|
|
|
|
|
|
-- build wayland
|
|
|
local configs = {"-Ddocumentation=false", "-Dc_link_args=-lm"}
|
|
|
+ table.insert(configs, "--libdir=lib")
|
|
|
local envs = meson.buildenvs(package)
|
|
|
envs.LD_LIBRARY_PATH = path.joinenv(table.join(LD_LIBRARY_PATH, envs.LD_LIBRARY_PATH))
|
|
|
envs.PKG_CONFIG_PATH = path.joinenv(table.join(PKG_CONFIG_PATH, envs.PKG_CONFIG_PATH))
|
|
@@ -35,10 +36,7 @@ package("wayland")
|
|
|
meson.install(package, configs, {envs = envs})
|
|
|
|
|
|
-- add links
|
|
|
- local arch = package:is_arch("x86_64", "x64") and "x86_64" or "x86"
|
|
|
- package:add("linkdirs", path.join("lib", arch .. "-linux-gnu"))
|
|
|
package:add("links", "wayland-client", "wayland-server", "wayland-cursor", "wayland-egl")
|
|
|
- os.mv(package:installdir("lib", arch .. "-linux-gnu", "pkgconfig"), package:installdir("lib"))
|
|
|
|
|
|
-- install wayland-protocols
|
|
|
local protocol = assert(package:resourcedir("protocols"), "wayland-protocols not found!")
|