9 changed files with 147 additions and 64 deletions
@ -0,0 +1,16 @@
@@ -0,0 +1,16 @@
|
||||
# -*- Mode: Python -*- vi:si:et:sw=4:sts=4:ts=4:syntax=python |
||||
|
||||
class Recipe(recipe.Recipe): |
||||
name = 'atk' |
||||
version = '2.36.0' |
||||
licenses = [License.LGPLv2Plus] |
||||
stype = SourceType.TARBALL |
||||
btype = BuildType.MESON |
||||
url = 'gnome://' |
||||
tarball_checksum = 'fb76247e369402be23f1f5c65d38a9639c1164d934e40f6a9cf3c9e96b652788' |
||||
deps = ['glib'] |
||||
|
||||
files_libs = ['libatk-1.0'] |
||||
files_devel = ['include/atk-1.0', 'lib/pkgconfig/atk.pc'] |
||||
files_lang = ['atk10'] |
||||
files_typelibs = ['Atk-1.0'] |
@ -0,0 +1,66 @@
@@ -0,0 +1,66 @@
|
||||
# -*- Mode: Python -*- vi:si:et:sw=4:sts=4:ts=4:syntax=python |
||||
from cerbero.tools.libtool import LibtoolLibrary |
||||
|
||||
class Recipe(recipe.Recipe): |
||||
name = 'gtk3' |
||||
version = '3.24.22' |
||||
stype = SourceType.TARBALL |
||||
url = 'https://download.gnome.org/sources/gtk+/%(maj_ver)s/gtk+-%(version)s.tar.xz' |
||||
tarball_dirname = 'gtk+-%(version)s' |
||||
tarball_checksum = 'bf18a4a5dff28a7b02aaef1b949c2d09c96c18387eddab152bb4cd55a5b67dda' |
||||
licenses = [License.LGPLv2Plus] |
||||
btype = BuildType.MESON |
||||
meson_options = {'installed_tests': False, 'builtin_immodules': 'yes'} |
||||
deps = ['glib', 'gdk-pixbuf', 'libepoxy', 'atk', 'cairo', 'pango', |
||||
'fribidi', 'freetype', 'harfbuzz'] |
||||
patches = ['gtk3/0001-meson-Fix-post-install-when-cross-compiling-to-Windo.patch'] |
||||
|
||||
files_libs = ['libgailutil-3', 'libgdk-3', 'libgtk-3'] |
||||
files_bins = ['gtk-update-icon-cache', 'gtk-query-immodules-3.0', 'gtk-launch'] |
||||
files_misc = [ |
||||
'share/themes/Default/gtk-3.0', |
||||
'share/themes/Emacs/gtk-3.0', |
||||
'lib/gtk-3.0/3.0.0/printbackends', |
||||
] |
||||
platform_files_misc = { |
||||
Platform.DARWIN: ['share/themes/Mac/gtk-3.0'], |
||||
} |
||||
|
||||
files_devel = [ |
||||
'bin/gtk-query-settings%(bext)s', |
||||
'bin/gtk-builder-tool%(bext)s', |
||||
'bin/gtk-encode-symbolic-svg%(bext)s', |
||||
'bin/gtk3-demo%(bext)s', |
||||
'bin/gtk3-demo-application%(bext)s', |
||||
'bin/gtk3-icon-browser%(bext)s', |
||||
'bin/gtk3-widget-factory%(bext)s', |
||||
'lib/pkgconfig/gail-3.0.pc', |
||||
'lib/pkgconfig/gdk-3.0.pc', |
||||
'lib/pkgconfig/gtk+-3.0.pc', |
||||
'include/gail-3.0', |
||||
'include/gtk-3.0', |
||||
'share/applications/gtk3-demo.desktop', |
||||
'share/applications/gtk3-icon-browser.desktop', |
||||
'share/applications/gtk3-widget-factory.desktop', |
||||
'share/icons/hicolor', |
||||
'share/aclocal/gtk-3.0.m4', |
||||
'share/gettext/its/gtkbuilder.its', |
||||
'share/gettext/its/gtkbuilder.loc', |
||||
'share/gtk-3.0/gtkbuilder.rng', |
||||
] |
||||
platform_files_devel = { |
||||
Platform.WINDOWS: ['lib/pkgconfig/gtk+-win32-3.0.pc', 'lib/pkgconfig/gdk-win32-3.0.pc'], |
||||
Platform.DARWIN: ['lib/pkgconfig/gtk+-quartz-3.0.pc', 'lib/pkgconfig/gdk-quartz-3.0.pc'], |
||||
} |
||||
|
||||
files_lang = ['gtk30'] |
||||
|
||||
files_typelibs = ['Gdk-3.0', 'Gtk-3.0'] |
||||
platform_files_typelibs = { |
||||
Platform.WINDOWS: ['GdkWin32-3.0'], |
||||
} |
||||
|
||||
def prepare(self): |
||||
if self.config.target_platform not in [Platform.DARWIN, Platform.WINDOWS]: |
||||
raise InvalidRecipeError(self, "gtk3 recipe only supports macOS and Windows"); |
||||
|
@ -0,0 +1,33 @@
@@ -0,0 +1,33 @@
|
||||
From c57a575a906ecc8d8f1b92271b523969944778a2 Mon Sep 17 00:00:00 2001 |
||||
From: Nirbheek Chauhan <nirbheek@centricular.com> |
||||
Date: Sun, 30 Aug 2020 07:33:45 +0530 |
||||
Subject: [PATCH] meson: Fix post-install when cross-compiling to Windows |
||||
|
||||
FIXME: |
||||
1. os.name == 'nt' branch is wrong |
||||
2. Should also use exe-wrapper also (needs new meson feature) |
||||
---
|
||||
build-aux/meson/post-install.py | 6 ++++++ |
||||
1 file changed, 6 insertions(+) |
||||
|
||||
diff --git a/build-aux/meson/post-install.py b/build-aux/meson/post-install.py
|
||||
index e302a6e..7bd25d2 100644
|
||||
--- a/build-aux/meson/post-install.py
|
||||
+++ b/build-aux/meson/post-install.py
|
||||
@@ -12,7 +12,13 @@ if 'DESTDIR' not in os.environ:
|
||||
gtk_libdir = sys.argv[4] |
||||
gtk_datadir = sys.argv[5] |
||||
gtk_query_immodules = os.path.join(gtk_bindir, 'gtk-query-immodules-' + gtk_api_version) |
||||
+ if not os.path.isfile(gtk_query_immodules):
|
||||
+ if os.path.isfile(gtk_query_immodules + '.exe'):
|
||||
+ gtk_query_immodules += '.exe'
|
||||
gtk_update_icon_cache = os.path.join(gtk_bindir, 'gtk-update-icon-cache') |
||||
+ if not os.path.isfile(gtk_update_icon_cache):
|
||||
+ if os.path.isfile(gtk_update_icon_cache + '.exe'):
|
||||
+ gtk_update_icon_cache += '.exe'
|
||||
|
||||
gtk_moduledir = os.path.join(gtk_libdir, 'gtk-' + gtk_api_version, gtk_abi_version) |
||||
gtk_immodule_dir = os.path.join(gtk_moduledir, 'immodules') |
||||
--
|
||||
2.26.2 |
||||
|
@ -0,0 +1,13 @@
@@ -0,0 +1,13 @@
|
||||
# -*- Mode: Python -*- vi:si:et:sw=4:sts=4:ts=4:syntax=python |
||||
|
||||
class Recipe(recipe.Recipe): |
||||
name = 'libepoxy' |
||||
version = '1.5.4' |
||||
licenses = [{License.MIT: ['COPYING']}] |
||||
stype = SourceType.TARBALL |
||||
btype = BuildType.MESON |
||||
url = 'https://github.com/anholt/%(name)s/releases/download/%(version)s/%(name)s-%(version)s.tar.xz' |
||||
tarball_checksum = '0bd2cc681dfeffdef739cb29913f8c3caa47a88a451fd2bc6e606c02997289d2' |
||||
|
||||
files_libs = ['libepoxy'] |
||||
files_devel = ['include/epoxy', 'lib/pkgconfig/epoxy.pc'] |
Loading…
Reference in new issue