forked from semios/ports
93 lines
2.6 KiB
Python
93 lines
2.6 KiB
Python
import os
|
|
|
|
from lib.make import *
|
|
from lib import cpp
|
|
|
|
|
|
version("0.20.2")
|
|
description("A modular Wayland compositor library")
|
|
maintainer("sisungo <[email protected]>")
|
|
source_url("https://gitlab.freedesktop.org/wlroots/wlroots/-/archive/0.20.2/wlroots-0.20.2.tar.gz")
|
|
|
|
builddep("shortcut/c")
|
|
builddep("shortcut/meson")
|
|
builddep("libwayland-dev @target")
|
|
builddep("libdrm-dev @target")
|
|
builddep("libegl-dev @target")
|
|
builddep("libglesv2-dev @target")
|
|
builddep("libvulkan-dev @target")
|
|
builddep("vulkan-headers @target")
|
|
builddep("glslang @target")
|
|
builddep("libxkbcommon-dev @target")
|
|
builddep("libpixman-dev @target")
|
|
builddep("libseat-dev @target")
|
|
builddep("libinput-dev @target")
|
|
builddep("wayland-protocols @target")
|
|
builddep("libgbm-dev @target")
|
|
builddep("liblcms-dev (~2) @target")
|
|
builddep("lxdeviced-libudev-dev @target")
|
|
builddep("hwdata @any")
|
|
builddep("libdisplay-info-dev @target")
|
|
builddep("libliftoff-dev @target")
|
|
builddep("linux-dev @target")
|
|
|
|
|
|
def build():
|
|
os.environ["PKG_CONFIG_PATH"] = os.environ.get("PKG_CONFIG_PATH", "") + ":/share/pkgconfig"
|
|
os.environ["CFLAGS"] = os.environ.get("CFLAGS", "") + " -Wno-error -DATOMIC_POINTER_LOCK_FREE"
|
|
cpp.meson_setup([
|
|
"--prefix=/",
|
|
f"--libdir={get_prefix('libwlr')}/lib",
|
|
f"--includedir={get_prefix('libwlr-dev')}/include",
|
|
"--datadir=/share",
|
|
"-Dexamples=false",
|
|
"-Drenderers=gles2,vulkan",
|
|
"-Dbackends=drm,libinput",
|
|
"-Dsession=enabled",
|
|
"-Dcolor-management=enabled",
|
|
"-Dlibliftoff=enabled",
|
|
])
|
|
cpp.meson_compile()
|
|
cpp.meson_install()
|
|
|
|
on_build(build)
|
|
|
|
|
|
package("libwlr")
|
|
dep("libwayland @same-arch")
|
|
dep("libdrm @same-arch")
|
|
dep("libxkbcommon @same-arch")
|
|
dep("libpixman @same-arch")
|
|
dep("libegl @same-arch")
|
|
dep("libgbm @same-arch")
|
|
dep("libglesv2 @same-arch")
|
|
dep("libvulkan @same-arch")
|
|
dep("liblcms @same-arch")
|
|
dep("lxdeviced-libudev @same-arch")
|
|
dep("libseat @same-arch")
|
|
dep("libdisplay-info @same-arch")
|
|
dep("libliftoff @same-arch")
|
|
dep("libinput @same-arch")
|
|
dep("semi-libc @same-arch")
|
|
cpp.use_auto_pack(["lib"])
|
|
|
|
package("libwlr-dev")
|
|
dep("libwlr (same)")
|
|
dep("libwayland-dev @same-arch")
|
|
dep("libdrm-dev @same-arch")
|
|
dep("libxkbcommon-dev @same-arch")
|
|
dep("libpixman-dev @same-arch")
|
|
dep("libegl-dev @same-arch")
|
|
dep("libgbm-dev @same-arch")
|
|
dep("libglesv2-dev @same-arch")
|
|
dep("libvulkan-dev @same-arch")
|
|
dep("liblcms-dev @same-arch")
|
|
dep("lxdeviced-libudev-dev @same-arch")
|
|
dep("libseat-dev @same-arch")
|
|
dep("libdisplay-info-dev @same-arch")
|
|
dep("libliftoff-dev @same-arch")
|
|
dep("libinput-dev @same-arch")
|
|
dep("semi-libc-dev @same-arch")
|
|
dep("wayland-protocols @same-arch")
|
|
cpp.use_auto_pack(["dev"])
|