119 lines
3.2 KiB
Python
119 lines
3.2 KiB
Python
from lib.make import *
|
|
from lib import cpp, arch
|
|
|
|
|
|
version("4.23.3")
|
|
description("The main GTK4 library.")
|
|
maintainer("sisungo <[email protected]>")
|
|
source_url("https://download.gnome.org/sources/gtk/4.23/gtk-4.23.3.tar.xz")
|
|
|
|
builddep("shortcut/c++")
|
|
builddep("shortcut/meson")
|
|
builddep("glib-dev @target")
|
|
builddep("gdk-pixbuf-dev @target")
|
|
builddep("gobject-introspection @target")
|
|
builddep("glib-tools")
|
|
builddep("libwayland-dev @target")
|
|
builddep("wayland-protocols @target")
|
|
builddep("libpango-dev @target")
|
|
builddep("libcairo-gobject-dev @target")
|
|
builddep("libepoxy-dev @target")
|
|
builddep("libxkbcommon-dev @target")
|
|
builddep("libgraphene-dev @target")
|
|
builddep("cups-dev @target")
|
|
builddep("libvulkan-dev @target")
|
|
builddep("vulkan-headers @target")
|
|
builddep("libdrm-dev @target")
|
|
#builddep("libgstreamer-dev @target")
|
|
#builddep("libgstgl-dev @target")
|
|
#builddep("libgstplay-dev @target")
|
|
#builddep("libgstallocators-dev @target")
|
|
builddep("shaderc")
|
|
builddep("linux-dev @target")
|
|
|
|
|
|
def build():
|
|
cpp.meson_setup([
|
|
"--prefix=/",
|
|
f"--libdir={get_prefix('libgtk')}/lib",
|
|
f"--datadir={get_prefix('gtk-common')}/share",
|
|
f"--includedir={get_prefix('libgtk-dev')}/include",
|
|
"-Dx11-backend=false",
|
|
"-Dwayland-backend=true",
|
|
"-Dmedia-gstreamer=disabled",
|
|
"-Dprint-cups=enabled",
|
|
"-Dvulkan=enabled",
|
|
"-Dintrospection=enabled",
|
|
])
|
|
cpp.meson_compile()
|
|
cpp.meson_install()
|
|
|
|
on_build(build)
|
|
|
|
|
|
def pack_common(composer):
|
|
composer.makedir("share")
|
|
composer.add("share/mime")
|
|
composer.add("share/gtk-4.0")
|
|
|
|
def pack_bin(composer):
|
|
composer.makedir("bin")
|
|
composer.add("bin/gtk4-image-tool")
|
|
composer.add("bin/gtk4-launch")
|
|
composer.add("bin/gtk4-query-settings")
|
|
composer.add("bin/gtk4-update-icon-cache")
|
|
|
|
package("gtk-common")
|
|
arch_any()
|
|
on_pack(pack_common)
|
|
|
|
package("libgtk")
|
|
dep("gtk-common (same-version) @any")
|
|
dep("libgmodule @same-arch")
|
|
dep("libglib @same-arch")
|
|
dep("libgobject @same-arch")
|
|
dep("libpango @same-arch")
|
|
dep("libcairo @same-arch")
|
|
dep("libharfbuzz @same-arch")
|
|
dep("libfribidi @same-arch")
|
|
dep("libcairo-gobject @same-arch")
|
|
dep("gdk-pixbuf @same-arch")
|
|
dep("libepoxy @same-arch")
|
|
dep("libgraphene @same-arch")
|
|
dep("libfontconfig @same-arch")
|
|
dep("libvulkan @same-arch")
|
|
dep("libpng @same-arch")
|
|
dep("libtiff @same-arch")
|
|
dep("libjpeg @same-arch")
|
|
dep("libxkbcommon @same-arch")
|
|
dep("libwayland @same-arch")
|
|
dep("libcups @same-arch")
|
|
dep("semi-libc @same-arch")
|
|
cpp.use_auto_pack(["lib"])
|
|
|
|
package("gtk-bin")
|
|
dep("libgtk (same)")
|
|
on_pack(pack_bin)
|
|
|
|
package("libgtk-dev")
|
|
dep("libgtk (same)")
|
|
dep("glib-dev @same-arch")
|
|
dep("libpango-dev @same-arch")
|
|
dep("libcairo-dev @same-arch")
|
|
dep("libharfbuzz-dev @same-arch")
|
|
dep("libfribidi-dev @same-arch")
|
|
dep("libcairo-gobject-dev @same-arch")
|
|
dep("gdk-pixbuf-dev @same-arch")
|
|
dep("libepoxy-dev @same-arch")
|
|
dep("libgraphene-dev @same-arch")
|
|
dep("libfontconfig-dev @same-arch")
|
|
dep("libvulkan-dev @same-arch")
|
|
dep("libpng-dev @same-arch")
|
|
dep("libtiff-dev @same-arch")
|
|
dep("libjpeg-dev @same-arch")
|
|
dep("libxkbcommon-dev @same-arch")
|
|
dep("libwayland-dev @same-arch")
|
|
dep("cups-dev @same-arch")
|
|
dep("semi-libc-dev @same-arch")
|
|
cpp.use_auto_pack(["dev"])
|