-
-
Notifications
You must be signed in to change notification settings - Fork 403
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add Gtk3 repo source code install (#5154)
* add gtk3 source code install * add gtk3+ source code install * add gdk-pixbuf * add x11 to packagedeps * add libxext to packagedeps * delete the gtk3 redundancy * add rt link * replace the at-spi2-core pkg-config symbol * add the wayland config and changge at-spi2-core writting * add bin for gdk-pixbuf * add cairo to packagedeps * change cairo.pc * replace the cairo/cairo-xlib.h to cairo-xlib.h * add plain=true * delete gtk+3
- Loading branch information
1 parent
a495469
commit b6915ab
Showing
5 changed files
with
49 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
package("gtk3") | ||
|
||
set_homepage("https://gtk.org/") | ||
set_description("Toolkit for creating graphical user interfaces") | ||
set_license("LGPL-2.0-or-later") | ||
|
||
add_urls("https://gitlab.gnome.org/GNOME/gtk/-/archive/3.24.43/gtk-$(version).tar.gz") | ||
add_versions("3.24.43", "ab197f76719fc875067671247533f8e5bd2bc090568ec17317de410d06397b7f") | ||
|
||
on_fetch("linux", function (package, opt) | ||
if opt.system and package.find_package then | ||
return package:find_package("pkgconfig::gtk+-3.0") | ||
end | ||
end) | ||
|
||
if is_plat("linux") then | ||
add_syslinks("rt") | ||
end | ||
|
||
add_includedirs("include", "include/gtk-3.0") | ||
|
||
add_deps("meson", "ninja") | ||
add_deps("cairo", {configs = {glib = true}}) | ||
add_deps("glib", "gdk-pixbuf", "pango", "libepoxy", "graphene", "libxkbcommon", "libxext") | ||
add_deps("libx11", "libxfixes", "libxcursor", "libxi", "libxcomposite", "libxrandr", "libxdamage", "libxinerama", "at-spi2-core") | ||
add_links("gtk-3", "gdk-3", "gailutil-3", "X11", "X11-cxb", "pangocairo-1.0", "pango", "rt") | ||
|
||
on_install("linux", function (package) | ||
local configs = {"-Dintrospection=false", "-Ddemos=false", "-Dexamples=false", "-Dtests=false"} | ||
table.insert(configs, "-Ddefault_library=" .. (package:config("shared") and "shared" or "static")) | ||
io.replace("gdk/x11/gdkglcontext-x11.c", [[cairo/cairo-xlib.h]], [[cairo-xlib.h]], {plain = true}) | ||
import("package.tools.meson").install(package, configs, {packagedeps = {"libx11", | ||
"libxext", | ||
"libxi", | ||
"at-spi2-core", | ||
"cairo", | ||
"libthai", | ||
"libdatrie", | ||
"gdk-pixbuf"}}) | ||
end) | ||
|
||
on_test(function (package) | ||
assert(package:has_cfuncs("gtk_application_new", {includes = "gtk/gtk.h"})) | ||
end) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters