commit e8ca9ee
hovercats
·
2024-11-12 21:13:56 +0000 UTC
parent fc4e0d4
gdk-pixbuf: switch to muon
6 files changed,
+119,
-18
+24,
-16
1@@ -2,25 +2,33 @@
2
3 export DESTDIR="$1"
4
5-meson setup \
6- -Dprefix=/usr \
7- -Dsysconfdir=/etc \
8- -Dmandir=/usr/share/man \
9+patch -p1 < 0001-fix-enum-types-for-muon.patch
10+
11+: > po/meson.build
12+
13+muon setup \
14+ -Dprefix=/usr \
15+ -Dsysconfdir=/etc \
16+ -Dmandir=/usr/share/man \
17 -Dbuildtype=release \
18 -Db_colorout=never \
19 -Ddebug=false \
20 -Doptimization=s \
21- -Djpeg=enabled \
22- -Dpng=enabled \
23- -Dtiff=disabled \
24- -Dgtk_doc=false \
25- -Dman=false \
26- -Dgio_sniffing=false \
27- -Dtests=false \
28- -Dinstalled_tests=false \
29- -Dbuiltin_loaders=all \
30- -Dwrap_mode=nofallback \
31- build
32+ -Djpeg=enabled \
33+ -Dpng=enabled \
34+ -Dtiff=disabled \
35+ -Dgtk_doc=false \
36+ -Dman=false \
37+ -Dgio_sniffing=false \
38+ -Dtests=false \
39+ -Dinstalled_tests=false \
40+ -Dbuiltin_loaders=all \
41+ -Dwrap_mode=nofallback \
42+ -Dpkg_config_path=/usr/lib/pkgconfig \
43+ -Ddefault_library=shared \
44+ build
45
46 samu -C build
47-samu -C build install
48+muon -C build install
49+
50+rm -rf "$1/usr/share/thumbnailers"
+1,
-0
1@@ -1 +1,2 @@
2 edf54b48c7008c0ec52e0224b6a10ea680bbb94c23b71fbe5d19ae8e72706bc6b6
3+aa35cd72ca56947a79967332cf0a1140dea714c5d835429f294d0679fb735bc2e8
+0,
-1
1@@ -2,4 +2,3 @@ glib
2 libX11
3 libjpeg-turbo
4 libpng
5-meson make
1@@ -0,0 +1,92 @@
2+From 4f12be1905515a59a0cdfff28f67f958e3698447 Mon Sep 17 00:00:00 2001
3+From: hovercats <hovercatswithlasereyes@protonmail.com>
4+Date: Thu, 3 Oct 2024 13:22:53 +0200
5+Subject: [PATCH] fix enum-types for muon
6+
7+---
8+ gdk-pixbuf/meson.build | 69 ++++++++++++++++++++++++++++++++++--------
9+ 1 file changed, 56 insertions(+), 13 deletions(-)
10+
11+diff --git a/gdk-pixbuf/meson.build b/gdk-pixbuf/meson.build
12+index 570625b..595bd1c 100644
13+--- a/gdk-pixbuf/meson.build
14++++ b/gdk-pixbuf/meson.build
15+@@ -120,19 +120,62 @@ gdkpixdata_sources = [
16+ 'gdk-pixdata.c',
17+ ]
18+
19+-gdkpixbuf_marshals = gnome.genmarshal('gdk-pixbuf-marshal',
20+- sources: 'gdk-pixbuf-marshal.list',
21+- prefix: '_gdk_pixbuf_marshal',
22+- install_header: true,
23+- install_dir: join_paths(gdk_pixbuf_includedir, gdk_pixbuf_api_path))
24+-
25+-gdkpixbuf_enums = gnome.mkenums('gdk-pixbuf-enum-types',
26+- sources: gdkpixbuf_headers,
27+- c_template: 'gdk-pixbuf-enum-types.c.template',
28+- h_template: 'gdk-pixbuf-enum-types.h.template',
29+- install_header: true,
30+- install_dir: join_paths(gdk_pixbuf_includedir, gdk_pixbuf_api_path))
31+-gdkpixbuf_enum_h = gdkpixbuf_enums[1]
32++gdkpixbuf_marshals = []
33++gdkpixbuf_marshals += custom_target('gdb-pixbuf-marshal_h',
34++ output: 'gdk-pixbuf-marshal.h',
35++ input: 'gdk-pixbuf-marshal.list',
36++ install: true,
37++ install_dir: join_paths(gdk_pixbuf_includedir, gdk_pixbuf_api_path),
38++ command: [
39++ find_program('glib-genmarshal'),
40++ '--prefix=_gdk_pixbuf_marshal',
41++ '--output=@OUTPUT@',
42++ '--quiet',
43++ '--header',
44++ '@INPUT@',
45++ ],
46++)
47++
48++gdkpixbuf_marshals += custom_target('gdb-pixbuf-marshal_c',
49++ output: 'gdk-pixbuf-marshal.c',
50++ input: 'gdk-pixbuf-marshal.list',
51++ command: [
52++ find_program('glib-genmarshal'),
53++ '--prefix=_gdk_pixbuf_marshal',
54++ '--include-header=gdk-pixbuf-marshal.h',
55++ '--output=@OUTPUT@',
56++ '--quiet',
57++ '--body',
58++ '@INPUT@',
59++ ],
60++)
61++
62++gdkpixbuf_enums = []
63++gdkpixbuf_enums += custom_target('gdk-pixbuf-enum-types_h',
64++ capture: true,
65++ output: 'gdk-pixbuf-enum-types.h',
66++ input: gdkpixbuf_headers,
67++ install: true,
68++ install_dir: join_paths(gdk_pixbuf_includedir, gdk_pixbuf_api_path),
69++ command: [
70++ find_program('glib-mkenums'),
71++ '--template', files('gdk-pixbuf-enum-types.h.template'),
72++ '@INPUT@',
73++ ],
74++)
75++
76++gdkpixbuf_enums += custom_target('gdk-pixbuf-enum-types_c',
77++ capture: true,
78++ output: 'gdk-pixbuf-enum-types.c',
79++ input: gdkpixbuf_headers,
80++ command: [
81++ find_program('glib-mkenums'),
82++ '--template', files('gdk-pixbuf-enum-types.c.template'),
83++ '@INPUT@',
84++ ],
85++)
86++
87++gdkpixbuf_enum_h = gdkpixbuf_enums[0]
88+
89+ if host_system == 'windows'
90+ gdk_pixbuf_win_rc = configure_file(
91+--
92+2.45.1
93+
+1,
-0
1@@ -1 +1,2 @@
2 https://download.gnome.org/sources/gdk-pixbuf/2.42/gdk-pixbuf-2.42.12.tar.xz
3+patches/0001-fix-enum-types-for-muon.patch
+1,
-1
1@@ -1 +1 @@
2-2.42.12 2
3+2.42.12 3