@pheem49/mint 1.8.1 → 1.8.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (184) hide show
  1. package/Cargo.lock +3 -3
  2. package/Cargo.toml +1 -1
  3. package/README.md +0 -17
  4. package/Release_Note.md +92 -58
  5. package/bin/mint +0 -0
  6. package/crates/mint-cli/src/agent.rs +100 -6
  7. package/crates/mint-cli/src/main.rs +166 -52
  8. package/crates/mint-core/src/agent_loop.rs +1 -0
  9. package/crates/mint-core/src/api_server.rs +55 -2
  10. package/crates/mint-core/src/browser.rs +55 -0
  11. package/crates/mint-core/src/channels.rs +1 -0
  12. package/crates/mint-core/src/chat.rs +3 -0
  13. package/crates/mint-core/src/config.rs +61 -0
  14. package/crates/mint-core/src/lib.rs +14 -0
  15. package/crates/mint-core/src/orchestration.rs +180 -11
  16. package/crates/mint-core/src/tts.rs +3 -1
  17. package/flatpak/com.pheem49.mint.desktop +9 -0
  18. package/flatpak/com.pheem49.mint.metainfo.xml +35 -0
  19. package/flatpak/com.pheem49.mint.yaml +52 -0
  20. package/package.json +1 -1
  21. package/shared-modules/.github/workflows/ci.yml +120 -0
  22. package/shared-modules/.github/workflows/update.yaml +28 -0
  23. package/shared-modules/CODEOWNERS +23 -0
  24. package/shared-modules/README.md +79 -0
  25. package/shared-modules/SDL/README.md +3 -0
  26. package/shared-modules/SDL/SDL-1.2.15.json +51 -0
  27. package/shared-modules/SDL/SDL_Pango-0.1.2-API-adds.patch +118 -0
  28. package/shared-modules/SDL/SDL_image-1.2.12.json +25 -0
  29. package/shared-modules/SDL/SDL_mixer-1.2.12.json +27 -0
  30. package/shared-modules/SDL/SDL_net-1.2.8.json +19 -0
  31. package/shared-modules/SDL/SDL_pango-0.1.2.json +26 -0
  32. package/shared-modules/SDL/SDL_ttf-2.0.11.json +28 -0
  33. package/shared-modules/SDL/libsdl-1.2.15-strict-prototypes.patch +316 -0
  34. package/shared-modules/SDL/sdl-check-for-SDL_VIDEO_X11_BACKINGSTORE.patch +24 -0
  35. package/shared-modules/SDL/sdl-libx11-build.patch +59 -0
  36. package/shared-modules/SDL/sdl-sysloadso-buffer-length.patch +27 -0
  37. package/shared-modules/SDL/sdl12-compat.json +22 -0
  38. package/shared-modules/SDL2/SDL2_image.json +27 -0
  39. package/shared-modules/SDL2/SDL2_ttf.json +29 -0
  40. package/shared-modules/cld2/CMakeLists.txt +157 -0
  41. package/shared-modules/cld2/cld2.json +24 -0
  42. package/shared-modules/clutter/clutter.json +72 -0
  43. package/shared-modules/dbus-glib/dbus-glib.json +29 -0
  44. package/shared-modules/glew/glew.json +36 -0
  45. package/shared-modules/glu/glu-9.json +12 -0
  46. package/shared-modules/gtk2/arc-gtk2-theme-Replace-Inkscape-dependency-with-rsvg-convert.patch +180 -0
  47. package/shared-modules/gtk2/gtk2-common-themes.json +360 -0
  48. package/shared-modules/gtk2/gtk2-fix-crash-in-show-uri.patch +30 -0
  49. package/shared-modules/gtk2/gtk2-gcc14.patch +281 -0
  50. package/shared-modules/gtk2/gtk2-gcc15.patch +250 -0
  51. package/shared-modules/gtk2/gtk2-murrine-c99.patch +34 -0
  52. package/shared-modules/gtk2/gtk2-use-adwaita-theme.patch +80 -0
  53. package/shared-modules/gtk2/gtk2.json +120 -0
  54. package/shared-modules/gtk2/ibus-gcc15.patch +13 -0
  55. package/shared-modules/gtk2/murrine-engine-fix-crash.patch +12 -0
  56. package/shared-modules/gtk2/readme.md +10 -0
  57. package/shared-modules/intltool/intltool-0.51.json +20 -0
  58. package/shared-modules/intltool/intltool-perl5.26-regex-fixes.patch +59 -0
  59. package/shared-modules/lame/0001-Build-xmm_quantize_sub.c-with-msse.patch +34 -0
  60. package/shared-modules/lame/0002-Include-GTK-1-autoconf-directives-in-build-system.patch +222 -0
  61. package/shared-modules/lame/0003-Patch-out-remaining-ansi2knr.patch +70 -0
  62. package/shared-modules/lame/0004-initscr-is-not-used-anywhere-in-lame-sourcetree.patch +41 -0
  63. package/shared-modules/lame/0005-Update-autoconf.patch +81 -0
  64. package/shared-modules/lame/lame-3.99.5.json +32 -0
  65. package/shared-modules/libappindicator/libappindicator-gtk2-12.10.json +140 -0
  66. package/shared-modules/libappindicator/libappindicator-gtk3-12.10.json +140 -0
  67. package/shared-modules/libappindicator/libappindicator-gtk3-introspection-12.10.json +140 -0
  68. package/shared-modules/libappindicator/patches/0001-libappindicator-ftbfs.patch +20 -0
  69. package/shared-modules/libappindicator/patches/0002-libappindicator-no-python.patch +888 -0
  70. package/shared-modules/libappindicator/patches/0003-libappindicator-fix-crash-from-incorrect-signal-emission.patch +74 -0
  71. package/shared-modules/libappindicator/patches/0004-libappindicator-fix-crash-iterating-icon-themes.patch +11 -0
  72. package/shared-modules/libayatana-appindicator/0001-Fix-HAVE_VALGRIND-AM_CONDITIONAL.patch +51 -0
  73. package/shared-modules/libayatana-appindicator/0001-Make-introspection-configurable.patch +44 -0
  74. package/shared-modules/libayatana-appindicator/libayatana-appindicator-gtk3.json +121 -0
  75. package/shared-modules/libcanberra/0001-gtk-Don-t-assume-all-GdkDisplays-are-GdkX11Displays-.patch +123 -0
  76. package/shared-modules/libcanberra/libcanberra.json +44 -0
  77. package/shared-modules/libmad/libmad.json +19 -0
  78. package/shared-modules/libsecret/libsecret.json +23 -0
  79. package/shared-modules/libsoup/libsoup-2.4.json +14 -0
  80. package/shared-modules/libusb/libusb.json +27 -0
  81. package/shared-modules/linux-audio/dssi.json +31 -0
  82. package/shared-modules/linux-audio/fftw3f-static.json +44 -0
  83. package/shared-modules/linux-audio/fftw3f.json +42 -0
  84. package/shared-modules/linux-audio/fluidsynth2-static.json +30 -0
  85. package/shared-modules/linux-audio/fluidsynth2.json +19 -0
  86. package/shared-modules/linux-audio/ladspa.json +26 -0
  87. package/shared-modules/linux-audio/lash.json +35 -0
  88. package/shared-modules/linux-audio/libinstpatch.json +16 -0
  89. package/shared-modules/linux-audio/liblo-static.json +22 -0
  90. package/shared-modules/linux-audio/liblo.json +17 -0
  91. package/shared-modules/linux-audio/lilv-static.json +94 -0
  92. package/shared-modules/linux-audio/lilv.json +82 -0
  93. package/shared-modules/linux-audio/lrdf.json +57 -0
  94. package/shared-modules/linux-audio/lv2.json +21 -0
  95. package/shared-modules/linux-audio/patches/lash/0001-configure-remove-aclocal-m4.patch +29 -0
  96. package/shared-modules/linux-audio/patches/lash/0002-Fix-build-with-recent-gcc.patch +73 -0
  97. package/shared-modules/linux-audio/patches/lash/0003-Fix-linking.patch +136 -0
  98. package/shared-modules/linux-audio/patches/raptor-libxml.patch +31 -0
  99. package/shared-modules/linux-audio/patches/stk-install.sh +54 -0
  100. package/shared-modules/linux-audio/stk.json +28 -0
  101. package/shared-modules/lua5.1/0004-Fix-stack-overflow-in-vararg-functions.patch +21 -0
  102. package/shared-modules/lua5.1/lua-5.1.5-so.patch +43 -0
  103. package/shared-modules/lua5.1/lua-5.1.5.json +42 -0
  104. package/shared-modules/lua5.3/lua-5.3.5.json +41 -0
  105. package/shared-modules/lua5.3/lua.pc.in +8 -0
  106. package/shared-modules/lua5.3/luaconf.patch +47 -0
  107. package/shared-modules/lua5.3/makefile-add-liblua.so-rule.patch +47 -0
  108. package/shared-modules/lua5.4/lua-5.4.json +41 -0
  109. package/shared-modules/lua5.4/lua.pc.in +8 -0
  110. package/shared-modules/lua5.4/luaconf.patch +34 -0
  111. package/shared-modules/lua5.4/makefile-add-liblua.so-rule.patch +42 -0
  112. package/shared-modules/luajit/luajit.json +30 -0
  113. package/shared-modules/lzo/lzo.json +27 -0
  114. package/shared-modules/mac/mac.json +18 -0
  115. package/shared-modules/physfs/physfs.json +26 -0
  116. package/shared-modules/pygame/audiofile-gcc6.patch +21 -0
  117. package/shared-modules/pygame/cython-fixes.patch +34 -0
  118. package/shared-modules/pygame/fluidsynth-no-rawmidi.patch +69 -0
  119. package/shared-modules/pygame/glib.patch +25 -0
  120. package/shared-modules/pygame/pygame1-python2.json +157 -0
  121. package/shared-modules/pygtk/pygtk-c99.patch +15 -0
  122. package/shared-modules/pygtk/pygtk.json +117 -0
  123. package/shared-modules/pygtk/pygtk.patch +39 -0
  124. package/shared-modules/python2.7/python-2.7.json +48 -0
  125. package/shared-modules/smpeg/smpeg-0.4.5.json +50 -0
  126. package/shared-modules/smpeg/smpeg-am-prog-as.patch +12 -0
  127. package/shared-modules/smpeg/smpeg-export-mpegaudio-class.patch +17 -0
  128. package/shared-modules/smpeg/smpeg-gcc6.patch +40 -0
  129. package/shared-modules/smpeg/smpeg-no-gtk.patch +37 -0
  130. package/shared-modules/squashfs-tools/squashfs-tools.json +25 -0
  131. package/shared-modules/update-checker.sh +50 -0
  132. package/shared-modules/vorbisgain/0001-temp_files.patch +75 -0
  133. package/shared-modules/vorbisgain/0002-errno.patch +33 -0
  134. package/shared-modules/vorbisgain/0003-manpage.patch +248 -0
  135. package/shared-modules/vorbisgain/0004-vorbisgain_mtime.patch +183 -0
  136. package/shared-modules/vorbisgain/0005-double_fclose.patch +21 -0
  137. package/shared-modules/vorbisgain/0006-manpage_hyphens.patch +56 -0
  138. package/shared-modules/vorbisgain/0007-recursively_spelling.patch +14 -0
  139. package/shared-modules/vorbisgain/0008-manpage_recursion_mistake.patch +23 -0
  140. package/shared-modules/vorbisgain/0009-hardening.patch +13 -0
  141. package/shared-modules/vorbisgain/0010-fclose.patch +13 -0
  142. package/shared-modules/vorbisgain/README.md +23 -0
  143. package/shared-modules/vorbisgain/vorbisgain_0.37-2.json +29 -0
  144. package/src/renderer/shared/agentProgress.ts +145 -0
  145. package/src/renderer/shared/calculator.ts +52 -0
  146. package/src/renderer/shared/components/AgentActivityDrawer.tsx +72 -0
  147. package/src/renderer/shared/components/AgentActivityTable.tsx +66 -0
  148. package/src/renderer/shared/components/ApprovalCard.tsx +93 -0
  149. package/src/renderer/shared/components/ChatCodeBlock.tsx +75 -0
  150. package/src/renderer/shared/components/ThinkingBlock.tsx +101 -0
  151. package/src/renderer/shared/constants/models.ts +91 -0
  152. package/src/renderer/shared/platform.ts +82 -0
  153. package/src/renderer/shared/types.ts +140 -0
  154. package/src/renderer/shared/utils/agentActivity.ts +187 -0
  155. package/src/renderer/shared/utils/approval.ts +1 -0
  156. package/src/renderer/shared/utils/approval.tsx +64 -0
  157. package/src/renderer/shared/utils/markdown.tsx +347 -0
  158. package/src/renderer/shared/utils/providers.ts +36 -0
  159. package/src/renderer/shared/utils/speech.ts +216 -0
  160. package/src/renderer/shared/utils/ui.ts +147 -0
  161. package/src/renderer/src/agentProgress.ts +11 -39
  162. package/src/renderer/src/calculator.ts +3 -46
  163. package/src/renderer/src/components/ChatPanel.tsx +194 -1303
  164. package/src/renderer/src/components/MintDashboard.tsx +23 -169
  165. package/src/renderer/src/components/PicturesLibrary.tsx +32 -8
  166. package/src/renderer/src/components/Settings/AgentsTab.tsx +362 -0
  167. package/src/renderer/src/components/Settings/AutomationTab.tsx +0 -22
  168. package/src/renderer/src/components/SettingsWindow.tsx +53 -3
  169. package/src/renderer/src/css/styles.css +84 -0
  170. package/src/renderer/src/tauri.ts +128 -143
  171. package/src/renderer/src-web/agentProgress.ts +11 -39
  172. package/src/renderer/src-web/calculator.ts +3 -46
  173. package/src/renderer/src-web/components/ChatPanel.tsx +194 -1301
  174. package/src/renderer/src-web/components/MintDashboard.tsx +23 -169
  175. package/src/renderer/src-web/components/PicturesLibrary.tsx +23 -29
  176. package/src/renderer/src-web/components/Settings/AgentsTab.tsx +362 -0
  177. package/src/renderer/src-web/components/Settings/AutomationTab.tsx +0 -22
  178. package/src/renderer/src-web/components/SettingsWindow.tsx +53 -3
  179. package/src/renderer/src-web/css/styles.css +84 -0
  180. package/src/renderer/src-web/tauri.ts +180 -102
  181. package/src-tauri/src/lib.rs +137 -33
  182. package/src-tauri/src/webhooks.rs +1 -0
  183. package/src-tauri/src/workflows.rs +1 -0
  184. package/src-tauri/tauri.conf.json +1 -1
@@ -0,0 +1,69 @@
1
+ diff -rupN fluidsynth-1.1.6.orig/src/drivers/fluid_alsa.c fluidsynth-1.1.6/src/drivers/fluid_alsa.c
2
+ --- fluidsynth-1.1.6.orig/src/drivers/fluid_alsa.c 2012-08-16 05:01:13.000000000 +0100
3
+ +++ fluidsynth-1.1.6/src/drivers/fluid_alsa.c 2017-02-28 21:26:57.033244239 +0000
4
+ @@ -96,7 +96,7 @@ struct fluid_alsa_formats_t fluid_alsa_f
5
+ };
6
+
7
+
8
+ -
9
+ +#if 0
10
+ /*
11
+ * fluid_alsa_rawmidi_driver_t
12
+ *
13
+ @@ -119,7 +119,7 @@ fluid_midi_driver_t* new_fluid_alsa_rawm
14
+
15
+ int delete_fluid_alsa_rawmidi_driver(fluid_midi_driver_t* p);
16
+ static void fluid_alsa_midi_run(void* d);
17
+ -
18
+ +#endif
19
+
20
+ /*
21
+ * fluid_alsa_seq_driver_t
22
+ @@ -535,7 +535,7 @@ static void fluid_alsa_audio_run_s16 (vo
23
+ *
24
+ */
25
+
26
+ -
27
+ +#if 0
28
+ void fluid_alsa_rawmidi_driver_settings(fluid_settings_t* settings)
29
+ {
30
+ fluid_settings_register_str(settings, "midi.alsa.device", "default", 0, NULL, NULL);
31
+ @@ -698,7 +698,7 @@ fluid_alsa_midi_run(void* d)
32
+ }
33
+ }
34
+ }
35
+ -
36
+ +#endif
37
+ /**************************************************************
38
+ *
39
+ * Alsa sequencer
40
+ diff -rupN fluidsynth-1.1.6.orig/src/drivers/fluid_mdriver.c fluidsynth-1.1.6/src/drivers/fluid_mdriver.c
41
+ --- fluidsynth-1.1.6.orig/src/drivers/fluid_mdriver.c 2012-08-16 05:01:13.000000000 +0100
42
+ +++ fluidsynth-1.1.6/src/drivers/fluid_mdriver.c 2017-02-28 21:24:43.887833321 +0000
43
+ @@ -24,11 +24,13 @@
44
+
45
+ /* ALSA */
46
+ #if ALSA_SUPPORT
47
+ +#if 0
48
+ fluid_midi_driver_t* new_fluid_alsa_rawmidi_driver(fluid_settings_t* settings,
49
+ handle_midi_event_func_t handler,
50
+ void* event_handler_data);
51
+ int delete_fluid_alsa_rawmidi_driver(fluid_midi_driver_t* p);
52
+ void fluid_alsa_rawmidi_driver_settings(fluid_settings_t* settings);
53
+ +#endif
54
+
55
+ fluid_midi_driver_t* new_fluid_alsa_seq_driver(fluid_settings_t* settings,
56
+ handle_midi_event_func_t handler,
57
+ @@ -109,10 +111,12 @@ struct fluid_mdriver_definition_t fluid_
58
+ fluid_oss_midi_driver_settings },
59
+ #endif
60
+ #if ALSA_SUPPORT
61
+ +#if 0
62
+ { "alsa_raw",
63
+ new_fluid_alsa_rawmidi_driver,
64
+ delete_fluid_alsa_rawmidi_driver,
65
+ fluid_alsa_rawmidi_driver_settings },
66
+ +#endif
67
+ { "alsa_seq",
68
+ new_fluid_alsa_seq_driver,
69
+ delete_fluid_alsa_seq_driver,
@@ -0,0 +1,25 @@
1
+ From 24d1e9c28518cb4b01344eaf8377f2d6d489ad50 Mon Sep 17 00:00:00 2001
2
+ From: bbhtt <bbhtt.zn0i8@slmail.me>
3
+ Date: Sat, 9 Sep 2023 12:04:16 +0530
4
+ Subject: [PATCH] Fix deprecated GStaticMutex init with glib-2.70
5
+
6
+ ---
7
+ src/drivers/fluid_jack.c | 2 +-
8
+ 1 file changed, 1 insertion(+), 1 deletion(-)
9
+
10
+ diff --git a/src/drivers/fluid_jack.c b/src/drivers/fluid_jack.c
11
+ index fe3cd752..613a9820 100644
12
+ --- a/src/drivers/fluid_jack.c
13
+ +++ b/src/drivers/fluid_jack.c
14
+ @@ -100,7 +100,7 @@ int fluid_jack_driver_process(jack_nframes_t nframes, void *arg);
15
+ int delete_fluid_jack_midi_driver(fluid_midi_driver_t *p);
16
+
17
+
18
+ -static fluid_mutex_t last_client_mutex = G_STATIC_MUTEX_INIT; /* Probably not necessary, but just in case drivers are created by multiple threads */
19
+ +static fluid_mutex_t last_client_mutex; /* Probably not necessary, but just in case drivers are created by multiple threads */
20
+ static fluid_jack_client_t *last_client = NULL; /* Last unpaired client. For audio/MIDI driver pairing. */
21
+
22
+
23
+ --
24
+ 2.41.0
25
+
@@ -0,0 +1,157 @@
1
+ {
2
+ "name": "pygame",
3
+ "sources": [
4
+ {
5
+ "type": "archive",
6
+ "url": "https://files.pythonhosted.org/packages/0f/9c/78626be04e193c0624842090fe5555b3805c050dfaa81c8094d6441db2be/pygame-1.9.6.tar.gz",
7
+ "sha256": "301c6428c0880ecd4a9e3951b80e539c33863b6ff356a443db1758de4f297957"
8
+ },
9
+ {
10
+ "type": "patch",
11
+ "path": "cython-fixes.patch"
12
+ }
13
+ ],
14
+ "buildsystem": "simple",
15
+ "build-commands": [
16
+ "python setup.py install --prefix=/app --root=/"
17
+ ],
18
+ "cleanup": [
19
+ "/include",
20
+ "/lib/pkgconfig",
21
+ "/share/man",
22
+ "*.la",
23
+ "*.a"
24
+ ],
25
+ "build-options": {
26
+ "cflags": "-Wno-incompatible-pointer-types -std=gnu17",
27
+ "env": {
28
+ "PORTMIDI_INC_PORTTIME": "1",
29
+ "PYGAME_EXTRA_BASE": "/app"
30
+ },
31
+ "arch": {
32
+ "aarch64": {
33
+ "env": {
34
+ "ORIGLIBDIRS": "/lib:/lib64:/lib/aarch64-linux-gnu"
35
+ }
36
+ },
37
+ "arm": {
38
+ "env": {
39
+ "ORIGLIBDIRS": "/lib:/lib/arm-linux-gnueabihf"
40
+ }
41
+ },
42
+ "i386": {
43
+ "env": {
44
+ "ORIGLIBDIRS": "/lib:/lib/i386-linux-gnu"
45
+ }
46
+ },
47
+ "x86_64": {
48
+ "env": {
49
+ "ORIGLIBDIRS": "/lib:/lib64:/lib/x86_64-linux-gnu"
50
+ }
51
+ }
52
+ }
53
+ },
54
+ "modules": [
55
+ "../python2.7/python-2.7.json",
56
+ "../SDL/SDL-1.2.15.json",
57
+ "../SDL/SDL_image-1.2.12.json",
58
+ "../SDL/SDL_ttf-2.0.11.json",
59
+ "../smpeg/smpeg-0.4.5.json",
60
+ "../SDL/SDL_mixer-1.2.12.json",
61
+ {
62
+ "name": "audiofile",
63
+ "cleanup": [
64
+ "/include",
65
+ "/lib/pkgconfig",
66
+ "/share/man",
67
+ "*.la",
68
+ "*.a"
69
+ ],
70
+ "sources": [
71
+ {
72
+ "type": "archive",
73
+ "url": "http://audiofile.68k.org/audiofile-0.3.6.tar.gz",
74
+ "sha256": "cdc60df19ab08bfe55344395739bb08f50fc15c92da3962fac334d3bff116965"
75
+ },
76
+ {
77
+ "type": "patch",
78
+ "path": "audiofile-gcc6.patch"
79
+ }
80
+ ]
81
+ },
82
+ {
83
+ "name": "libmikmod",
84
+ "cleanup": [
85
+ "/include",
86
+ "/lib/pkgconfig",
87
+ "/share/aclocal",
88
+ "/share/info",
89
+ "/share/man",
90
+ "*.la",
91
+ "*.a"
92
+ ],
93
+ "sources": [
94
+ {
95
+ "type": "archive",
96
+ "url": "https://sourceforge.net/projects/mikmod/files/libmikmod/3.3.11.1/libmikmod-3.3.11.1.tar.gz",
97
+ "sha256": "ad9d64dfc8f83684876419ea7cd4ff4a41d8bcd8c23ef37ecb3a200a16b46d19"
98
+ }
99
+ ]
100
+ },
101
+ {
102
+ "name": "fluidsynth",
103
+ "buildsystem": "cmake-ninja",
104
+ "config-opts": [
105
+ "-DCMAKE_BUILD_TYPE=Release",
106
+ "-DCMAKE_POLICY_VERSION_MINIMUM=3.5"
107
+ ],
108
+ "cleanup": [
109
+ "/include",
110
+ "/lib/pkgconfig",
111
+ "/lib64/pkgconfig",
112
+ "/share/man",
113
+ "*.la",
114
+ "*.a"
115
+ ],
116
+ "sources": [
117
+ {
118
+ "type": "archive",
119
+ "url": "https://github.com/FluidSynth/fluidsynth/archive/refs/tags/v1.1.11.tar.gz",
120
+ "sha256": "da8878ff374d12392eecf87e96bad8711b8e76a154c25a571dd8614d1af80de8"
121
+ },
122
+ {
123
+ "type": "patch",
124
+ "path": "fluidsynth-no-rawmidi.patch"
125
+ },
126
+ {
127
+ "type": "patch",
128
+ "path": "glib.patch"
129
+ }
130
+ ]
131
+ },
132
+ {
133
+ "name": "portmidi",
134
+ "buildsystem": "cmake-ninja",
135
+ "config-opts": [
136
+ "-DCMAKE_BUILD_TYPE=Release",
137
+ "-DCMAKE_LIBRARY_OUTPUT_DIRECTORY:STRING=/app/lib",
138
+ "-DCMAKE_ARCHIVE_OUTPUT_DIRECTORY:STRING=/app/lib",
139
+ "-DCMAKE_RUNTIME_OUTPUT_DIRECTORY:STRING=/app/bin"
140
+ ],
141
+ "cleanup": [
142
+ "/include",
143
+ "/lib/pkgconfig",
144
+ "/share/man",
145
+ "*.la",
146
+ "*.a"
147
+ ],
148
+ "sources": [
149
+ {
150
+ "type": "archive",
151
+ "url": "https://github.com/PortMidi/portmidi/archive/refs/tags/v2.0.4.tar.gz",
152
+ "sha256": "64893e823ae146cabd3ad7f9a9a9c5332746abe7847c557b99b2577afa8a607c"
153
+ }
154
+ ]
155
+ }
156
+ ]
157
+ }
@@ -0,0 +1,15 @@
1
+ diff --git a/pango.override b/pango.override
2
+ index afe43ab..0bb5209 100644
3
+ --- a/pango.override
4
+ +++ b/pango.override
5
+ @@ -27,6 +27,10 @@ headers
6
+ #include <pygobject.h>
7
+ #include <pango/pango.h>
8
+
9
+ +/* Fix problem with accessing private interface */
10
+ +PANGO_AVAILABLE_IN_ALL PangoFontMetrics *pango_font_metrics_new (void);
11
+ +PANGO_AVAILABLE_IN_ALL const char *pango_font_map_get_shape_engine_type (PangoFontMap *fontmap);
12
+ +
13
+ typedef struct {
14
+ PyObject *func, *data;
15
+ } PyGtkCustomNotify;
@@ -0,0 +1,117 @@
1
+ {
2
+ "name": "pygtk",
3
+ "config-opts": [
4
+ "--disable-docs"
5
+ ],
6
+ "sources": [
7
+ {
8
+ "type": "archive",
9
+ "url": "https://download.gnome.org/sources/pygtk/2.24/pygtk-2.24.0.tar.gz",
10
+ "sha256": "6e3e54fa6e65a69ac60bd58cb2e60a57f3346ac52efe995f3d10b6c38c972fd8"
11
+ },
12
+ {
13
+ "type": "patch",
14
+ "paths": [
15
+ "pygtk.patch",
16
+ "pygtk-c99.patch"
17
+ ]
18
+ },
19
+ {
20
+ "type": "shell",
21
+ "commands": [
22
+ "cp -p /usr/share/automake-*/config.{sub,guess} ."
23
+ ]
24
+ }
25
+ ],
26
+ "cleanup": [
27
+ "/bin",
28
+ "/include/pygtk-2.0",
29
+ "*.la",
30
+ "/lib/pkgconfig",
31
+ "/lib/pygtk",
32
+ "/share/gtk-doc",
33
+ "/share/pygtk"
34
+ ],
35
+ "modules": [
36
+ "../python2.7/python-2.7.json",
37
+ "../gtk2/gtk2.json",
38
+ {
39
+ "name": "python2-pycairo",
40
+ "buildsystem": "meson",
41
+ "config-opts": [
42
+ "-Dpython=python2"
43
+ ],
44
+ "cleanup": [
45
+ "/include/pycairo",
46
+ "/lib/pkgconfig",
47
+ "/lib/python2.7/site-packages/cairo/include"
48
+ ],
49
+ "sources": [
50
+ {
51
+ "type": "archive",
52
+ "url": "https://github.com/pygobject/pycairo/releases/download/v1.18.2/pycairo-1.18.2.tar.gz",
53
+ "sha256": "dcb853fd020729516e8828ad364084e752327d4cff8505d20b13504b32b16531"
54
+ }
55
+ ]
56
+ },
57
+ {
58
+ "name": "pygobject",
59
+ "config-opts": [
60
+ "--disable-glibtest"
61
+ ],
62
+ "cleanup": [
63
+ "/bin",
64
+ "/include/pygtk-2.0",
65
+ "*.la",
66
+ "/lib/pkgconfig",
67
+ "/share/gtk-doc",
68
+ "/share/pygobject"
69
+ ],
70
+ "sources": [
71
+ {
72
+ "type": "archive",
73
+ "url": "https://download.gnome.org/sources/pygobject/2.28/pygobject-2.28.7.tar.xz",
74
+ "sha256": "bb9d25a3442ca7511385a7c01b057492095c263784ef31231ffe589d83a96a5a"
75
+ }
76
+ ]
77
+ },
78
+ {
79
+ "name": "libglade",
80
+ "rm-configure": true,
81
+ "build-options": {
82
+ "env": {
83
+ "GTKDOCIZE": "true"
84
+ }
85
+ },
86
+ "cleanup": [
87
+ "/bin",
88
+ "/include/libglade-2.0",
89
+ "*.a",
90
+ "*.la",
91
+ "/lib/pkgconfig",
92
+ "/share/gtk-doc",
93
+ "/share/xml/libglade"
94
+ ],
95
+ "sources": [
96
+ {
97
+ "type": "archive",
98
+ "url": "https://download.gnome.org/sources/libglade/2.6/libglade-2.6.4.tar.gz",
99
+ "sha256": "c41d189b68457976069073e48d6c14c183075d8b1d8077cb6dfb8b7c5097add3"
100
+ },
101
+ {
102
+ "type": "shell",
103
+ "commands": [
104
+ "rm -f config.guess"
105
+ ]
106
+ },
107
+ {
108
+ "type": "script",
109
+ "commands": [
110
+ "autoreconf -fiv"
111
+ ],
112
+ "dest-filename": "autogen.sh"
113
+ }
114
+ ]
115
+ }
116
+ ]
117
+ }
@@ -0,0 +1,39 @@
1
+ From 877164b6b70780468a31d8211f29421b6f34b0c8 Mon Sep 17 00:00:00 2001
2
+ From: Mathieu Bridon <bochecha@daitauha.fr>
3
+ Date: Thu, 24 Oct 2019 22:58:36 +0200
4
+ Subject: [PATCH] Drop the PangoFont find_shaper virtual method
5
+
6
+ This API has been removed from Pango 1.44.6, because it was completely
7
+ unused by anything.
8
+
9
+ However, PyGTK tries to bind everything, even unused API.
10
+
11
+ Removing this from PyGTK means we can build it against the latest Pango
12
+ again.
13
+ ---
14
+ pango.defs | 9 ---------
15
+ 1 file changed, 9 deletions(-)
16
+
17
+ diff --git a/pango.defs b/pango.defs
18
+ index 2a79ecc..862667a 100644
19
+ --- a/pango.defs
20
+ +++ b/pango.defs
21
+ @@ -1391,15 +1391,6 @@
22
+ )
23
+ )
24
+
25
+ -(define-virtual find_shaper
26
+ - (of-object "PangoFont")
27
+ - (return-type "PangoEngineShape*")
28
+ - (parameters
29
+ - '("PangoLanguage*" "lang")
30
+ - '("guint32" "ch")
31
+ - )
32
+ -)
33
+ -
34
+ (define-virtual get_glyph_extents
35
+ (of-object "PangoFont")
36
+ (return-type "none")
37
+ --
38
+ 2.21.0
39
+
@@ -0,0 +1,48 @@
1
+ {
2
+ "name": "python-2.7",
3
+ "sources": [
4
+ {
5
+ "type": "archive",
6
+ "url": "https://www.python.org/ftp/python/2.7.18/Python-2.7.18.tar.xz",
7
+ "sha256": "b62c0e7937551d0cc02b8fd5cb0f544f9405bafc9a54d3808ed4594812edef43"
8
+ }
9
+ ],
10
+ "build-options": {
11
+ "cflags": "-std=c18"
12
+ },
13
+ "config-opts": [
14
+ "--enable-shared",
15
+ "--with-ensurepip=yes",
16
+ "--with-system-expat",
17
+ "--with-system-ffi",
18
+ "--enable-loadable-sqlite-extensions",
19
+ "--with-dbmliborder=gdbm",
20
+ "--enable-unicode=ucs4"
21
+ ],
22
+ "post-install": [
23
+ "chmod 644 $FLATPAK_DEST/lib/libpython2.7.so.1.0"
24
+ ],
25
+ "cleanup": [
26
+ "/bin/2to3*",
27
+ "/bin/easy_install*",
28
+ "/bin/idle*",
29
+ "/bin/pydoc*",
30
+ "/bin/python*-config",
31
+ "/bin/pyvenv*",
32
+ "/include",
33
+ "/lib/pkgconfig",
34
+ "/lib/python*/config",
35
+ "/share",
36
+ "/lib/python*/test",
37
+ "/lib/python*/*/test",
38
+ "/lib/python*/*/tests",
39
+ "/lib/python*/lib-tk/test",
40
+ "/lib/python*/lib-dynload/_*_test.*.so",
41
+ "/lib/python*/lib-dynload/_test*.*.so",
42
+ "/lib/python*/idlelib",
43
+ "/lib/python*/tkinter*",
44
+ "/lib/python*/turtle*",
45
+ "/lib/python*/lib2to3*",
46
+ "/lib/python2.7/config/libpython2.7.a"
47
+ ]
48
+ }
@@ -0,0 +1,50 @@
1
+ {
2
+ "name": "smpeg",
3
+ "config-opts": ["--disable-static"],
4
+ "cleanup": [
5
+ "/bin",
6
+ "/man",
7
+ "/include",
8
+ "/share/aclocal",
9
+ "/share/man",
10
+ "*.la",
11
+ "*.a"
12
+ ],
13
+ "rm-configure": true,
14
+ "sources": [
15
+ {
16
+ "type": "archive",
17
+ "url": "http://http.debian.net/debian/pool/main/s/smpeg/smpeg_0.4.5+cvs20030824.orig.tar.gz",
18
+ "sha256": "1276ea797dd9fde8a12dd3f33f180153922544c28ca9fc7b477c018876be1916"
19
+ },
20
+ {
21
+ "type": "shell",
22
+ "commands": [
23
+ "sed -i '/^## libtool.m4/,/^#####/d' acinclude.m4"
24
+ ]
25
+ },
26
+ {
27
+ "type": "script",
28
+ "dest-filename": "autogen.sh",
29
+ "commands": [
30
+ "AUTOMAKE=\"automake --foreign --add-missing --force-missing\" autoreconf -vfi"
31
+ ]
32
+ },
33
+ {
34
+ "type": "patch",
35
+ "path": "smpeg-am-prog-as.patch"
36
+ },
37
+ {
38
+ "type": "patch",
39
+ "path": "smpeg-export-mpegaudio-class.patch"
40
+ },
41
+ {
42
+ "type": "patch",
43
+ "path": "smpeg-no-gtk.patch"
44
+ },
45
+ {
46
+ "type": "patch",
47
+ "path": "smpeg-gcc6.patch"
48
+ }
49
+ ]
50
+ }
@@ -0,0 +1,12 @@
1
+ Index: smpeg-0.4.5+cvs20030824/configure.in
2
+ ===================================================================
3
+ --- smpeg-0.4.5+cvs20030824.orig/configure.in
4
+ +++ smpeg-0.4.5+cvs20030824/configure.in
5
+ @@ -57,6 +57,7 @@
6
+ AC_LIBTOOL_WIN32_DLL
7
+ AM_PROG_LIBTOOL
8
+ AC_PROG_INSTALL
9
+ +AM_PROG_AS
10
+
11
+ dnl Ugh.
12
+ AS="$CC"
@@ -0,0 +1,17 @@
1
+ --- smpeg-0.4.5+cvs20030824.orig/MPEGaudio.h
2
+ +++ smpeg-0.4.5+cvs20030824/MPEGaudio.h
3
+ @@ -149,6 +149,14 @@
4
+ };
5
+
6
+ /* The actual MPEG audio class */
7
+ +
8
+ +class MPEGaudio;
9
+ +void Play_MPEGaudioSDL(void *udata, Uint8 *stream, int len);
10
+ +int Play_MPEGaudio(MPEGaudio *audio, Uint8 *stream, int len);
11
+ +#ifdef THREADED_AUDIO
12
+ +int Decode_MPEGaudio(void *udata);
13
+ +#endif
14
+ +
15
+ class MPEGaudio : public MPEGerror, public MPEGaudioaction {
16
+
17
+ friend void Play_MPEGaudioSDL(void *udata, Uint8 *stream, int len);
@@ -0,0 +1,40 @@
1
+ Description: Fix compiling with GCC 6.
2
+ Author: Johannes Brandstätter <jbrandst@2ds.eu>
3
+ Bug-Debian: https://bugs.debian.org/811742
4
+ Last-Update: <2016-09-24>
5
+
6
+ Index: smpeg-0.4.5+cvs20030824/audio/huffmantable.cpp
7
+ ===================================================================
8
+ --- smpeg-0.4.5+cvs20030824.orig/audio/huffmantable.cpp
9
+ +++ smpeg-0.4.5+cvs20030824/audio/huffmantable.cpp
10
+ @@ -9,6 +9,7 @@
11
+ #include "config.h"
12
+ #endif
13
+
14
+ +#include <climits>
15
+ #include "MPEGaudio.h"
16
+
17
+ static const unsigned int
18
+ @@ -550,11 +551,11 @@ htd33[ 31][2]={{ 16, 1},{ 8, 1},{ 4,
19
+
20
+ const HUFFMANCODETABLE MPEGaudio::ht[HTN]=
21
+ {
22
+ - { 0, 0-1, 0-1, 0, 0, htd33},
23
+ + { 0, UINT_MAX, UINT_MAX, 0, 0, htd33},
24
+ { 1, 2-1, 2-1, 0, 7,htd01},
25
+ { 2, 3-1, 3-1, 0, 17,htd02},
26
+ { 3, 3-1, 3-1, 0, 17,htd03},
27
+ - { 4, 0-1, 0-1, 0, 0, htd33},
28
+ + { 4, UINT_MAX, UINT_MAX, 0, 0, htd33},
29
+ { 5, 4-1, 4-1, 0, 31,htd05},
30
+ { 6, 4-1, 4-1, 0, 31,htd06},
31
+ { 7, 6-1, 6-1, 0, 71,htd07},
32
+ @@ -564,7 +565,7 @@ const HUFFMANCODETABLE MPEGaudio::ht[HTN
33
+ {11, 8-1, 8-1, 0,127,htd11},
34
+ {12, 8-1, 8-1, 0,127,htd12},
35
+ {13,16-1,16-1, 0,511,htd13},
36
+ - {14, 0-1, 0-1, 0, 0, htd33},
37
+ + {14, UINT_MAX, UINT_MAX, 0, 0, htd33},
38
+ {15,16-1,16-1, 0,511,htd15},
39
+ {16,16-1,16-1, 1,511,htd16},
40
+ {17,16-1,16-1, 2,511,htd16},
@@ -0,0 +1,37 @@
1
+ From 62cda978596a323cd7042722f906df906007e5b5 Mon Sep 17 00:00:00 2001
2
+ From: Cosimo Cecchi <cosimoc@gnome.org>
3
+ Date: Sat, 15 Apr 2017 13:24:39 -0700
4
+ Subject: [PATCH] Comment out GTK detection
5
+
6
+ ---
7
+ configure.in | 14 +++++++-------
8
+ 1 file changed, 7 insertions(+), 7 deletions(-)
9
+
10
+ diff --git a/configure.in b/configure.in
11
+ index 20b1355..2cb4753 100644
12
+ --- a/configure.in
13
+ +++ b/configure.in
14
+ @@ -208,13 +208,13 @@ AC_ARG_ENABLE(gtk_player,
15
+ [ --enable-gtk-player build a GTk sample SMPEG player [default=yes]],
16
+ , enable_gtk_player=yes)
17
+ have_gtk=no
18
+ -if test x$enable_gtk_player = xyes; then
19
+ - AM_PATH_GTK(1.2.1, have_gtk=yes)
20
+ - if test x$have_gtk = xyes; then
21
+ - CFLAGS="$CFLAGS $GTK_CFLAGS"
22
+ - fi
23
+ - AC_SUBST(GTK_LIBS)
24
+ -fi
25
+ +dnl if test x$enable_gtk_player = xyes; then
26
+ +dnl AM_PATH_GTK(1.2.1, have_gtk=yes)
27
+ +dnl if test x$have_gtk = xyes; then
28
+ +dnl CFLAGS="$CFLAGS $GTK_CFLAGS"
29
+ +dnl fi
30
+ +dnl AC_SUBST(GTK_LIBS)
31
+ +dnl fi
32
+ AM_CONDITIONAL(HAVE_GTK, test x$have_gtk = xyes)
33
+
34
+ dnl See if we can build the Mesa player
35
+ --
36
+ 2.12.2
37
+
@@ -0,0 +1,25 @@
1
+ {
2
+ "name": "squashfs-tools",
3
+ "buildsystem": "simple",
4
+ "build-commands": [
5
+ "XZ_SUPPORT=1 LZO_SUPPORT=1 ZSTD_SUPPORT=1 GZIP_SUPPORT=1 make -C squashfs-tools -j ${FLATPAK_BUILDER_N_JOBS} install INSTALL_DIR=${FLATPAK_DEST}/bin INSTALL_MANPAGES_DIR=${FLATPAK_DEST}/man/man1"
6
+ ],
7
+ "cleanup": [
8
+ "/man"
9
+ ],
10
+ "sources": [
11
+ {
12
+ "type": "git",
13
+ "url": "https://github.com/plougher/squashfs-tools.git",
14
+ "tag": "4.7.5",
15
+ "commit": "708c59ae80853b0845017c33b42e56061cc546cd",
16
+ "x-checker-data": {
17
+ "type": "git",
18
+ "tag-pattern": "^([\\d.]+)$"
19
+ }
20
+ }
21
+ ],
22
+ "modules": [
23
+ "../lzo/lzo.json"
24
+ ]
25
+ }