feat: add package wlroots & dependencies
Signed-off-by: sisungo <[email protected]>
This commit is contained in:
1 parent
8232d4e393
commit
1d75cf949c
5 files changed
+241
No files matched your search
@@ -0,0 +1,42 @@
|
||||
from lib.make import *
|
||||
from lib import cpp, arch
|
||||
|
||||
|
||||
version("2.19.1")
|
||||
description("A free, open source, CMM engine. It provides fast transforms between ICC profiles.")
|
||||
maintainer("sisungo <[email protected]>")
|
||||
source_url("https://github.com/mm2/Little-CMS/releases/download/lcms2.19.1/lcms2-2.19.1.tar.gz")
|
||||
|
||||
builddep("shortcut/c")
|
||||
builddep("shortcut/autotools")
|
||||
builddep("libjpeg-turbo-dev @target")
|
||||
builddep("libtiff-dev @target")
|
||||
|
||||
|
||||
def build():
|
||||
cpp.configure([
|
||||
"--prefix=/",
|
||||
f"--libdir={get_prefix('liblcms')}/lib",
|
||||
f"--bindir={get_prefix('liblcms-tools')}/bin",
|
||||
f"--includedir={get_prefix('liblcms-dev')}/include",
|
||||
])
|
||||
cpp.make()
|
||||
cpp.make_install()
|
||||
|
||||
on_build(build)
|
||||
|
||||
|
||||
package("liblcms")
|
||||
dep("semi-libc @same-arch")
|
||||
cpp.use_auto_pack(["lib"])
|
||||
|
||||
package("liblcms-tools")
|
||||
dep("libjpeg-turbo @same-arch")
|
||||
dep("libtiff @same-arch")
|
||||
dep("liblcms (same)")
|
||||
cpp.use_auto_pack(["bin"])
|
||||
|
||||
package("liblcms-dev")
|
||||
dep("liblcms (same)")
|
||||
dep("semi-libc-dev @same-arch")
|
||||
cpp.use_auto_pack(["dev"])
|
||||
@@ -0,0 +1,26 @@
|
||||
from lib.make import *
|
||||
from lib import cpp
|
||||
|
||||
|
||||
version("0.411")
|
||||
description("hwdata contains various hardware identification and configuration data, such as the pci.ids and usb.ids databases.")
|
||||
maintainer("sisungo <[email protected]>")
|
||||
source_managed("github://vcrhonek/hwdata#v0.411")
|
||||
|
||||
builddep("shortcut/autotools")
|
||||
|
||||
|
||||
def build():
|
||||
cpp.configure(["--disable-blacklist", f"--prefix={get_prefix('hwdata')}"])
|
||||
cpp.make()
|
||||
cpp.make_install()
|
||||
|
||||
on_build(build)
|
||||
|
||||
|
||||
def pack(composer):
|
||||
composer.add("share")
|
||||
|
||||
package("hwdata")
|
||||
arch_any()
|
||||
on_pack(pack)
|
||||
@@ -0,0 +1,42 @@
|
||||
import os
|
||||
|
||||
from lib.make import *
|
||||
from lib import cpp
|
||||
|
||||
|
||||
version("0.4.0")
|
||||
description("EDID and DisplayID library")
|
||||
maintainer("sisungo <[email protected]>")
|
||||
source_managed("gitlab://gitlab.freedesktop.org/emersion/libdisplay-info#0.4.0")
|
||||
|
||||
builddep("shortcut/c")
|
||||
builddep("shortcut/meson")
|
||||
builddep("hwdata @any")
|
||||
|
||||
|
||||
def build():
|
||||
os.environ["PKG_CONFIG_PATH"] = os.environ.get("PKG_CONFIG_PATH", "") + ":/share/pkgconfig"
|
||||
cpp.meson_setup([
|
||||
"--prefix=/",
|
||||
f"--libdir={get_prefix('libdisplay-info')}/lib",
|
||||
f"--bindir={get_prefix('libdisplay-info-tools')}/bin",
|
||||
f"--includedir={get_prefix('libdisplay-info-dev')}/include",
|
||||
])
|
||||
cpp.meson_compile()
|
||||
cpp.meson_install()
|
||||
|
||||
on_build(build)
|
||||
|
||||
|
||||
package("libdisplay-info")
|
||||
dep("semi-libc @same-arch")
|
||||
cpp.use_auto_pack(["lib"])
|
||||
|
||||
package("libdisplay-info-tools")
|
||||
dep("libdisplay-info (same)")
|
||||
cpp.use_auto_pack(["bin"])
|
||||
|
||||
package("libdisplay-info-dev")
|
||||
dep("libdisplay-info (same)")
|
||||
dep("semi-libc-dev @same-arch")
|
||||
cpp.use_auto_pack(["dev"])
|
||||
@@ -0,0 +1,39 @@
|
||||
import os
|
||||
|
||||
from lib.make import *
|
||||
from lib import cpp
|
||||
|
||||
|
||||
version("0.5.0")
|
||||
description("Lightweight KMS plane library")
|
||||
maintainer("sisungo <[email protected]>")
|
||||
source_managed("gitlab://gitlab.freedesktop.org/emersion/libliftoff#v0.5.0")
|
||||
|
||||
builddep("shortcut/c")
|
||||
builddep("shortcut/meson")
|
||||
builddep("libdrm-dev @target")
|
||||
builddep("linux-dev @target")
|
||||
|
||||
|
||||
def build():
|
||||
cpp.meson_setup([
|
||||
"--prefix=/",
|
||||
f"--libdir={get_prefix('libliftoff')}/lib",
|
||||
f"--includedir={get_prefix('libliftoff-dev')}/include",
|
||||
])
|
||||
cpp.meson_compile()
|
||||
cpp.meson_install()
|
||||
|
||||
on_build(build)
|
||||
|
||||
|
||||
package("libliftoff")
|
||||
dep("libdrm @same-arch")
|
||||
dep("semi-libc @same-arch")
|
||||
cpp.use_auto_pack(["lib"])
|
||||
|
||||
package("libliftoff-dev")
|
||||
dep("libliftoff (same)")
|
||||
dep("semi-libc-dev @same-arch")
|
||||
dep("libdrm-dev @same-arch")
|
||||
cpp.use_auto_pack(["dev"])
|
||||
@@ -0,0 +1,92 @@
|
||||
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_managed("gitlab://gitlab.freedesktop.org/wlroots/wlroots#0.20.2")
|
||||
|
||||
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"])
|
||||
Reference in new issue
Block a user