@pheem49/mint 1.8.0 → 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 (200) hide show
  1. package/.github/workflows/release.yml +1 -1
  2. package/Cargo.lock +34 -3
  3. package/Cargo.toml +2 -2
  4. package/README.md +20 -6
  5. package/Release_Note.md +129 -0
  6. package/assets/Mint_CLI.png +0 -0
  7. package/bin/mint +0 -0
  8. package/crates/mint-cli/Cargo.toml +1 -0
  9. package/crates/mint-cli/src/agent.rs +242 -54
  10. package/crates/mint-cli/src/main.rs +397 -74
  11. package/crates/mint-core/src/agent_loop.rs +1 -0
  12. package/crates/mint-core/src/api_server.rs +64 -2
  13. package/crates/mint-core/src/browser.rs +456 -0
  14. package/crates/mint-core/src/channels.rs +1 -0
  15. package/crates/mint-core/src/chat.rs +3 -0
  16. package/crates/mint-core/src/config.rs +130 -1
  17. package/crates/mint-core/src/lib.rs +19 -0
  18. package/crates/mint-core/src/orchestration.rs +317 -12
  19. package/crates/mint-core/src/skills.rs +113 -4
  20. package/crates/mint-core/src/tts.rs +3 -1
  21. package/crates/mint-core/src/workflows.rs +1 -22
  22. package/flatpak/com.pheem49.mint.desktop +9 -0
  23. package/flatpak/com.pheem49.mint.metainfo.xml +35 -0
  24. package/flatpak/com.pheem49.mint.yaml +52 -0
  25. package/package.json +1 -1
  26. package/shared-modules/.github/workflows/ci.yml +120 -0
  27. package/shared-modules/.github/workflows/update.yaml +28 -0
  28. package/shared-modules/CODEOWNERS +23 -0
  29. package/shared-modules/README.md +79 -0
  30. package/shared-modules/SDL/README.md +3 -0
  31. package/shared-modules/SDL/SDL-1.2.15.json +51 -0
  32. package/shared-modules/SDL/SDL_Pango-0.1.2-API-adds.patch +118 -0
  33. package/shared-modules/SDL/SDL_image-1.2.12.json +25 -0
  34. package/shared-modules/SDL/SDL_mixer-1.2.12.json +27 -0
  35. package/shared-modules/SDL/SDL_net-1.2.8.json +19 -0
  36. package/shared-modules/SDL/SDL_pango-0.1.2.json +26 -0
  37. package/shared-modules/SDL/SDL_ttf-2.0.11.json +28 -0
  38. package/shared-modules/SDL/libsdl-1.2.15-strict-prototypes.patch +316 -0
  39. package/shared-modules/SDL/sdl-check-for-SDL_VIDEO_X11_BACKINGSTORE.patch +24 -0
  40. package/shared-modules/SDL/sdl-libx11-build.patch +59 -0
  41. package/shared-modules/SDL/sdl-sysloadso-buffer-length.patch +27 -0
  42. package/shared-modules/SDL/sdl12-compat.json +22 -0
  43. package/shared-modules/SDL2/SDL2_image.json +27 -0
  44. package/shared-modules/SDL2/SDL2_ttf.json +29 -0
  45. package/shared-modules/cld2/CMakeLists.txt +157 -0
  46. package/shared-modules/cld2/cld2.json +24 -0
  47. package/shared-modules/clutter/clutter.json +72 -0
  48. package/shared-modules/dbus-glib/dbus-glib.json +29 -0
  49. package/shared-modules/glew/glew.json +36 -0
  50. package/shared-modules/glu/glu-9.json +12 -0
  51. package/shared-modules/gtk2/arc-gtk2-theme-Replace-Inkscape-dependency-with-rsvg-convert.patch +180 -0
  52. package/shared-modules/gtk2/gtk2-common-themes.json +360 -0
  53. package/shared-modules/gtk2/gtk2-fix-crash-in-show-uri.patch +30 -0
  54. package/shared-modules/gtk2/gtk2-gcc14.patch +281 -0
  55. package/shared-modules/gtk2/gtk2-gcc15.patch +250 -0
  56. package/shared-modules/gtk2/gtk2-murrine-c99.patch +34 -0
  57. package/shared-modules/gtk2/gtk2-use-adwaita-theme.patch +80 -0
  58. package/shared-modules/gtk2/gtk2.json +120 -0
  59. package/shared-modules/gtk2/ibus-gcc15.patch +13 -0
  60. package/shared-modules/gtk2/murrine-engine-fix-crash.patch +12 -0
  61. package/shared-modules/gtk2/readme.md +10 -0
  62. package/shared-modules/intltool/intltool-0.51.json +20 -0
  63. package/shared-modules/intltool/intltool-perl5.26-regex-fixes.patch +59 -0
  64. package/shared-modules/lame/0001-Build-xmm_quantize_sub.c-with-msse.patch +34 -0
  65. package/shared-modules/lame/0002-Include-GTK-1-autoconf-directives-in-build-system.patch +222 -0
  66. package/shared-modules/lame/0003-Patch-out-remaining-ansi2knr.patch +70 -0
  67. package/shared-modules/lame/0004-initscr-is-not-used-anywhere-in-lame-sourcetree.patch +41 -0
  68. package/shared-modules/lame/0005-Update-autoconf.patch +81 -0
  69. package/shared-modules/lame/lame-3.99.5.json +32 -0
  70. package/shared-modules/libappindicator/libappindicator-gtk2-12.10.json +140 -0
  71. package/shared-modules/libappindicator/libappindicator-gtk3-12.10.json +140 -0
  72. package/shared-modules/libappindicator/libappindicator-gtk3-introspection-12.10.json +140 -0
  73. package/shared-modules/libappindicator/patches/0001-libappindicator-ftbfs.patch +20 -0
  74. package/shared-modules/libappindicator/patches/0002-libappindicator-no-python.patch +888 -0
  75. package/shared-modules/libappindicator/patches/0003-libappindicator-fix-crash-from-incorrect-signal-emission.patch +74 -0
  76. package/shared-modules/libappindicator/patches/0004-libappindicator-fix-crash-iterating-icon-themes.patch +11 -0
  77. package/shared-modules/libayatana-appindicator/0001-Fix-HAVE_VALGRIND-AM_CONDITIONAL.patch +51 -0
  78. package/shared-modules/libayatana-appindicator/0001-Make-introspection-configurable.patch +44 -0
  79. package/shared-modules/libayatana-appindicator/libayatana-appindicator-gtk3.json +121 -0
  80. package/shared-modules/libcanberra/0001-gtk-Don-t-assume-all-GdkDisplays-are-GdkX11Displays-.patch +123 -0
  81. package/shared-modules/libcanberra/libcanberra.json +44 -0
  82. package/shared-modules/libmad/libmad.json +19 -0
  83. package/shared-modules/libsecret/libsecret.json +23 -0
  84. package/shared-modules/libsoup/libsoup-2.4.json +14 -0
  85. package/shared-modules/libusb/libusb.json +27 -0
  86. package/shared-modules/linux-audio/dssi.json +31 -0
  87. package/shared-modules/linux-audio/fftw3f-static.json +44 -0
  88. package/shared-modules/linux-audio/fftw3f.json +42 -0
  89. package/shared-modules/linux-audio/fluidsynth2-static.json +30 -0
  90. package/shared-modules/linux-audio/fluidsynth2.json +19 -0
  91. package/shared-modules/linux-audio/ladspa.json +26 -0
  92. package/shared-modules/linux-audio/lash.json +35 -0
  93. package/shared-modules/linux-audio/libinstpatch.json +16 -0
  94. package/shared-modules/linux-audio/liblo-static.json +22 -0
  95. package/shared-modules/linux-audio/liblo.json +17 -0
  96. package/shared-modules/linux-audio/lilv-static.json +94 -0
  97. package/shared-modules/linux-audio/lilv.json +82 -0
  98. package/shared-modules/linux-audio/lrdf.json +57 -0
  99. package/shared-modules/linux-audio/lv2.json +21 -0
  100. package/shared-modules/linux-audio/patches/lash/0001-configure-remove-aclocal-m4.patch +29 -0
  101. package/shared-modules/linux-audio/patches/lash/0002-Fix-build-with-recent-gcc.patch +73 -0
  102. package/shared-modules/linux-audio/patches/lash/0003-Fix-linking.patch +136 -0
  103. package/shared-modules/linux-audio/patches/raptor-libxml.patch +31 -0
  104. package/shared-modules/linux-audio/patches/stk-install.sh +54 -0
  105. package/shared-modules/linux-audio/stk.json +28 -0
  106. package/shared-modules/lua5.1/0004-Fix-stack-overflow-in-vararg-functions.patch +21 -0
  107. package/shared-modules/lua5.1/lua-5.1.5-so.patch +43 -0
  108. package/shared-modules/lua5.1/lua-5.1.5.json +42 -0
  109. package/shared-modules/lua5.3/lua-5.3.5.json +41 -0
  110. package/shared-modules/lua5.3/lua.pc.in +8 -0
  111. package/shared-modules/lua5.3/luaconf.patch +47 -0
  112. package/shared-modules/lua5.3/makefile-add-liblua.so-rule.patch +47 -0
  113. package/shared-modules/lua5.4/lua-5.4.json +41 -0
  114. package/shared-modules/lua5.4/lua.pc.in +8 -0
  115. package/shared-modules/lua5.4/luaconf.patch +34 -0
  116. package/shared-modules/lua5.4/makefile-add-liblua.so-rule.patch +42 -0
  117. package/shared-modules/luajit/luajit.json +30 -0
  118. package/shared-modules/lzo/lzo.json +27 -0
  119. package/shared-modules/mac/mac.json +18 -0
  120. package/shared-modules/physfs/physfs.json +26 -0
  121. package/shared-modules/pygame/audiofile-gcc6.patch +21 -0
  122. package/shared-modules/pygame/cython-fixes.patch +34 -0
  123. package/shared-modules/pygame/fluidsynth-no-rawmidi.patch +69 -0
  124. package/shared-modules/pygame/glib.patch +25 -0
  125. package/shared-modules/pygame/pygame1-python2.json +157 -0
  126. package/shared-modules/pygtk/pygtk-c99.patch +15 -0
  127. package/shared-modules/pygtk/pygtk.json +117 -0
  128. package/shared-modules/pygtk/pygtk.patch +39 -0
  129. package/shared-modules/python2.7/python-2.7.json +48 -0
  130. package/shared-modules/smpeg/smpeg-0.4.5.json +50 -0
  131. package/shared-modules/smpeg/smpeg-am-prog-as.patch +12 -0
  132. package/shared-modules/smpeg/smpeg-export-mpegaudio-class.patch +17 -0
  133. package/shared-modules/smpeg/smpeg-gcc6.patch +40 -0
  134. package/shared-modules/smpeg/smpeg-no-gtk.patch +37 -0
  135. package/shared-modules/squashfs-tools/squashfs-tools.json +25 -0
  136. package/shared-modules/update-checker.sh +50 -0
  137. package/shared-modules/vorbisgain/0001-temp_files.patch +75 -0
  138. package/shared-modules/vorbisgain/0002-errno.patch +33 -0
  139. package/shared-modules/vorbisgain/0003-manpage.patch +248 -0
  140. package/shared-modules/vorbisgain/0004-vorbisgain_mtime.patch +183 -0
  141. package/shared-modules/vorbisgain/0005-double_fclose.patch +21 -0
  142. package/shared-modules/vorbisgain/0006-manpage_hyphens.patch +56 -0
  143. package/shared-modules/vorbisgain/0007-recursively_spelling.patch +14 -0
  144. package/shared-modules/vorbisgain/0008-manpage_recursion_mistake.patch +23 -0
  145. package/shared-modules/vorbisgain/0009-hardening.patch +13 -0
  146. package/shared-modules/vorbisgain/0010-fclose.patch +13 -0
  147. package/shared-modules/vorbisgain/README.md +23 -0
  148. package/shared-modules/vorbisgain/vorbisgain_0.37-2.json +29 -0
  149. package/src/renderer/shared/agentProgress.ts +145 -0
  150. package/src/renderer/shared/calculator.ts +52 -0
  151. package/src/renderer/shared/components/AgentActivityDrawer.tsx +72 -0
  152. package/src/renderer/shared/components/AgentActivityTable.tsx +66 -0
  153. package/src/renderer/shared/components/ApprovalCard.tsx +93 -0
  154. package/src/renderer/shared/components/ChatCodeBlock.tsx +75 -0
  155. package/src/renderer/shared/components/ThinkingBlock.tsx +101 -0
  156. package/src/renderer/shared/constants/models.ts +91 -0
  157. package/src/renderer/shared/platform.ts +82 -0
  158. package/src/renderer/shared/types.ts +140 -0
  159. package/src/renderer/shared/utils/agentActivity.ts +187 -0
  160. package/src/renderer/shared/utils/approval.ts +1 -0
  161. package/src/renderer/shared/utils/approval.tsx +64 -0
  162. package/src/renderer/shared/utils/markdown.tsx +347 -0
  163. package/src/renderer/shared/utils/providers.ts +36 -0
  164. package/src/renderer/shared/utils/speech.ts +216 -0
  165. package/src/renderer/shared/utils/ui.ts +147 -0
  166. package/src/renderer/src/agentProgress.ts +11 -39
  167. package/src/renderer/src/calculator.ts +3 -46
  168. package/src/renderer/src/components/ChatPanel.tsx +230 -1202
  169. package/src/renderer/src/components/ImageStudioPanel.tsx +11 -1
  170. package/src/renderer/src/components/MintDashboard.tsx +63 -171
  171. package/src/renderer/src/components/PicturesLibrary.tsx +32 -8
  172. package/src/renderer/src/components/Settings/AgentsTab.tsx +362 -0
  173. package/src/renderer/src/components/Settings/AutomationTab.tsx +0 -22
  174. package/src/renderer/src/components/Settings/PluginsTab.tsx +221 -41
  175. package/src/renderer/src/components/SettingsWindow.tsx +54 -12
  176. package/src/renderer/src/components/WorkspacePanel.tsx +66 -9
  177. package/src/renderer/src/css/image-studio.css +6 -0
  178. package/src/renderer/src/css/styles.css +148 -11
  179. package/src/renderer/src/index.css +12 -1
  180. package/src/renderer/src/tauri.ts +169 -143
  181. package/src/renderer/src-web/agentProgress.ts +11 -39
  182. package/src/renderer/src-web/calculator.ts +3 -46
  183. package/src/renderer/src-web/components/ChatPanel.tsx +223 -1199
  184. package/src/renderer/src-web/components/ImageStudioPanel.tsx +11 -1
  185. package/src/renderer/src-web/components/MintDashboard.tsx +31 -172
  186. package/src/renderer/src-web/components/PicturesLibrary.tsx +23 -29
  187. package/src/renderer/src-web/components/Settings/AgentsTab.tsx +362 -0
  188. package/src/renderer/src-web/components/Settings/AutomationTab.tsx +0 -22
  189. package/src/renderer/src-web/components/Settings/PluginsTab.tsx +221 -41
  190. package/src/renderer/src-web/components/SettingsWindow.tsx +54 -12
  191. package/src/renderer/src-web/css/image-studio.css +6 -0
  192. package/src/renderer/src-web/css/styles.css +184 -12
  193. package/src/renderer/src-web/index.css +12 -1
  194. package/src/renderer/src-web/tauri.ts +204 -104
  195. package/src-tauri/src/browser.rs +1 -141
  196. package/src-tauri/src/headless.rs +3 -2
  197. package/src-tauri/src/lib.rs +254 -59
  198. package/src-tauri/src/webhooks.rs +1 -0
  199. package/src-tauri/src/workflows.rs +57 -4
  200. package/src-tauri/tauri.conf.json +1 -1
@@ -0,0 +1,222 @@
1
+ From 20d0bd4ed444cd99bcf09ad8d36e69b027d7b1a4 Mon Sep 17 00:00:00 2001
2
+ From: =?UTF-8?q?Hubert=20Figui=C3=A8re?= <hub@figuiere.net>
3
+ Date: Tue, 18 Nov 2025 20:35:36 -0500
4
+ Subject: [PATCH 2/5] Include GTK-1 autoconf directives in build system.
5
+ MIME-Version: 1.0
6
+ Content-Type: text/plain; charset=UTF-8
7
+ Content-Transfer-Encoding: 8bit
8
+
9
+ Origin: http://anonscm.debian.org/gitweb/?p=pkg-multimedia/lame.git;a=tree;f=debian/patches
10
+ Forwarded: yes
11
+ Applied-Upstream: http://lame.cvs.sf.net/viewvc/lame/lame/acinclude.m4?revision=1.6
12
+
13
+ Signed-off-by: Hubert Figuière <hub@figuiere.net>
14
+ ---
15
+ acinclude.m4 | 193 +++++++++++++++++++++++++++++++++++++++++++++++++++
16
+ 1 file changed, 193 insertions(+)
17
+
18
+ diff --git a/acinclude.m4 b/acinclude.m4
19
+ index 0b8f869..eef0c3d 100644
20
+ --- a/acinclude.m4
21
+ +++ b/acinclude.m4
22
+ @@ -85,4 +85,197 @@ int main(void)
23
+ [AC_MSG_WARN(can't check for IEEE854 compliant 80 bit floats)]
24
+ )])]) # alex_IEEE854_FLOAT80
25
+
26
+ +# Configure paths for GTK+
27
+ +# Owen Taylor 97-11-3
28
+
29
+ +dnl AM_PATH_GTK([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND [, MODULES]]]])
30
+ +dnl Test for GTK, and define GTK_CFLAGS and GTK_LIBS
31
+ +dnl
32
+ +AC_DEFUN([AM_PATH_GTK],
33
+ +[dnl
34
+ +dnl Get the cflags and libraries from the gtk-config script
35
+ +dnl
36
+ +AC_ARG_WITH(gtk-prefix,[ --with-gtk-prefix=PFX Prefix where GTK is installed (optional)],
37
+ + gtk_config_prefix="$withval", gtk_config_prefix="")
38
+ +AC_ARG_WITH(gtk-exec-prefix,[ --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)],
39
+ + gtk_config_exec_prefix="$withval", gtk_config_exec_prefix="")
40
+ +AC_ARG_ENABLE(gtktest, [ --disable-gtktest Do not try to compile and run a test GTK program],
41
+ + , enable_gtktest=yes)
42
+ +
43
+ + for module in . $4
44
+ + do
45
+ + case "$module" in
46
+ + gthread)
47
+ + gtk_config_args="$gtk_config_args gthread"
48
+ + ;;
49
+ + esac
50
+ + done
51
+ +
52
+ + if test x$gtk_config_exec_prefix != x ; then
53
+ + gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
54
+ + if test x${GTK_CONFIG+set} != xset ; then
55
+ + GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
56
+ + fi
57
+ + fi
58
+ + if test x$gtk_config_prefix != x ; then
59
+ + gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
60
+ + if test x${GTK_CONFIG+set} != xset ; then
61
+ + GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
62
+ + fi
63
+ + fi
64
+ +
65
+ + AC_PATH_PROG(GTK_CONFIG, gtk-config, no)
66
+ + min_gtk_version=ifelse([$1], ,0.99.7,$1)
67
+ + AC_MSG_CHECKING(for GTK - version >= $min_gtk_version)
68
+ + no_gtk=""
69
+ + if test "$GTK_CONFIG" = "no" ; then
70
+ + no_gtk=yes
71
+ + else
72
+ + GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
73
+ + GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
74
+ + gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
75
+ + sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'`
76
+ + gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
77
+ + sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'`
78
+ + gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
79
+ + sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'`
80
+ + if test "x$enable_gtktest" = "xyes" ; then
81
+ + ac_save_CFLAGS="$CFLAGS"
82
+ + ac_save_LIBS="$LIBS"
83
+ + CFLAGS="$CFLAGS $GTK_CFLAGS"
84
+ + LIBS="$GTK_LIBS $LIBS"
85
+ +dnl
86
+ +dnl Now check if the installed GTK is sufficiently new. (Also sanity
87
+ +dnl checks the results of gtk-config to some extent
88
+ +dnl
89
+ + rm -f conf.gtktest
90
+ + AC_TRY_RUN([
91
+ +#include <gtk/gtk.h>
92
+ +#include <stdio.h>
93
+ +#include <stdlib.h>
94
+ +
95
+ +int
96
+ +main ()
97
+ +{
98
+ + int major, minor, micro;
99
+ + char *tmp_version;
100
+ +
101
+ + system ("touch conf.gtktest");
102
+ +
103
+ + /* HP/UX 9 (%@#!) writes to sscanf strings */
104
+ + tmp_version = g_strdup("$min_gtk_version");
105
+ + if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
106
+ + printf("%s, bad version string\n", "$min_gtk_version");
107
+ + exit(1);
108
+ + }
109
+ +
110
+ + if ((gtk_major_version != $gtk_config_major_version) ||
111
+ + (gtk_minor_version != $gtk_config_minor_version) ||
112
+ + (gtk_micro_version != $gtk_config_micro_version))
113
+ + {
114
+ + printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
115
+ + $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
116
+ + gtk_major_version, gtk_minor_version, gtk_micro_version);
117
+ + printf ("*** was found! If gtk-config was correct, then it is best\n");
118
+ + printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
119
+ + printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
120
+ + printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
121
+ + printf("*** required on your system.\n");
122
+ + printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
123
+ + printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
124
+ + printf("*** before re-running configure\n");
125
+ + }
126
+ +#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
127
+ + else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
128
+ + (gtk_minor_version != GTK_MINOR_VERSION) ||
129
+ + (gtk_micro_version != GTK_MICRO_VERSION))
130
+ + {
131
+ + printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
132
+ + GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
133
+ + printf("*** library (version %d.%d.%d)\n",
134
+ + gtk_major_version, gtk_minor_version, gtk_micro_version);
135
+ + }
136
+ +#endif /* defined (GTK_MAJOR_VERSION) ... */
137
+ + else
138
+ + {
139
+ + if ((gtk_major_version > major) ||
140
+ + ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
141
+ + ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
142
+ + {
143
+ + return 0;
144
+ + }
145
+ + else
146
+ + {
147
+ + printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
148
+ + gtk_major_version, gtk_minor_version, gtk_micro_version);
149
+ + printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
150
+ + major, minor, micro);
151
+ + printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
152
+ + printf("***\n");
153
+ + printf("*** If you have already installed a sufficiently new version, this error\n");
154
+ + printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
155
+ + printf("*** being found. The easiest way to fix this is to remove the old version\n");
156
+ + printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
157
+ + printf("*** correct copy of gtk-config. (In this case, you will have to\n");
158
+ + printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
159
+ + printf("*** so that the correct libraries are found at run-time))\n");
160
+ + }
161
+ + }
162
+ + return 1;
163
+ +}
164
+ +],, no_gtk=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"])
165
+ + CFLAGS="$ac_save_CFLAGS"
166
+ + LIBS="$ac_save_LIBS"
167
+ + fi
168
+ + fi
169
+ + if test "x$no_gtk" = x ; then
170
+ + AC_MSG_RESULT(yes)
171
+ + ifelse([$2], , :, [$2])
172
+ + else
173
+ + AC_MSG_RESULT(no)
174
+ + if test "$GTK_CONFIG" = "no" ; then
175
+ + echo "*** The gtk-config script installed by GTK could not be found"
176
+ + echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
177
+ + echo "*** your path, or set the GTK_CONFIG environment variable to the"
178
+ + echo "*** full path to gtk-config."
179
+ + else
180
+ + if test -f conf.gtktest ; then
181
+ + :
182
+ + else
183
+ + echo "*** Could not run GTK test program, checking why..."
184
+ + CFLAGS="$CFLAGS $GTK_CFLAGS"
185
+ + LIBS="$LIBS $GTK_LIBS"
186
+ + AC_TRY_LINK([
187
+ +#include <gtk/gtk.h>
188
+ +#include <stdio.h>
189
+ +], [ return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); ],
190
+ + [ echo "*** The test program compiled, but did not run. This usually means"
191
+ + echo "*** that the run-time linker is not finding GTK or finding the wrong"
192
+ + echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
193
+ + echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
194
+ + echo "*** to the installed location Also, make sure you have run ldconfig if that"
195
+ + echo "*** is required on your system"
196
+ + echo "***"
197
+ + echo "*** If you have an old version installed, it is best to remove it, although"
198
+ + echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
199
+ + echo "***"
200
+ + echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
201
+ + echo "*** came with the system with the command"
202
+ + echo "***"
203
+ + echo "*** rpm --erase --nodeps gtk gtk-devel" ],
204
+ + [ echo "*** The test program failed to compile or link. See the file config.log for the"
205
+ + echo "*** exact error that occured. This usually means GTK was incorrectly installed"
206
+ + echo "*** or that you have moved GTK since it was installed. In the latter case, you"
207
+ + echo "*** may want to edit the gtk-config script: $GTK_CONFIG" ])
208
+ + CFLAGS="$ac_save_CFLAGS"
209
+ + LIBS="$ac_save_LIBS"
210
+ + fi
211
+ + fi
212
+ + GTK_CFLAGS=""
213
+ + GTK_LIBS=""
214
+ + ifelse([$3], , :, [$3])
215
+ + fi
216
+ + AC_SUBST(GTK_CFLAGS)
217
+ + AC_SUBST(GTK_LIBS)
218
+ + rm -f conf.gtktest
219
+ +])
220
+ --
221
+ 2.51.0
222
+
@@ -0,0 +1,70 @@
1
+ From 594b7a28a214513adf067ff7d35cf2f8653f6d90 Mon Sep 17 00:00:00 2001
2
+ From: =?UTF-8?q?Hubert=20Figui=C3=A8re?= <hub@figuiere.net>
3
+ Date: Tue, 18 Nov 2025 20:36:22 -0500
4
+ Subject: [PATCH 3/5] Patch out remaining ansi2knr.
5
+ MIME-Version: 1.0
6
+ Content-Type: text/plain; charset=UTF-8
7
+ Content-Transfer-Encoding: 8bit
8
+
9
+ Author: Dimitri John Ledkov <xnox@ubuntu.com>
10
+ Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=755111
11
+
12
+ Signed-off-by: Hubert Figuière <hub@figuiere.net>
13
+ ---
14
+ configure.in | 1 -
15
+ doc/html/Makefile.am | 2 +-
16
+ doc/man/Makefile.am | 2 +-
17
+ libmp3lame/i386/Makefile.am | 2 +-
18
+ 4 files changed, 3 insertions(+), 4 deletions(-)
19
+
20
+ diff --git a/configure.in b/configure.in
21
+ index 2f8fa66..308b7ba 100644
22
+ --- a/configure.in
23
+ +++ b/configure.in
24
+ @@ -78,7 +78,6 @@ if test "${GCC}" = "yes"; then
25
+ fi
26
+
27
+ dnl more automake stuff
28
+ -AM_C_PROTOTYPES
29
+
30
+ AC_CHECK_HEADER(dmalloc.h)
31
+ if test "${ac_cv_header_dmalloc_h}" = "yes"; then
32
+ diff --git a/doc/html/Makefile.am b/doc/html/Makefile.am
33
+ index 1a20404..aebb30e 100644
34
+ --- a/doc/html/Makefile.am
35
+ +++ b/doc/html/Makefile.am
36
+ @@ -1,6 +1,6 @@
37
+ ## $Id: Makefile.am,v 1.7 2010/09/30 20:58:40 jaz001 Exp $
38
+
39
+ -AUTOMAKE_OPTIONS = foreign ansi2knr
40
+ +AUTOMAKE_OPTIONS = foreign
41
+
42
+ docdir = $(datadir)/doc
43
+ pkgdocdir = $(docdir)/$(PACKAGE)
44
+ diff --git a/doc/man/Makefile.am b/doc/man/Makefile.am
45
+ index ecab077..1de89e9 100644
46
+ --- a/doc/man/Makefile.am
47
+ +++ b/doc/man/Makefile.am
48
+ @@ -1,6 +1,6 @@
49
+ ## $Id: Makefile.am,v 1.1 2000/10/22 11:39:44 aleidinger Exp $
50
+
51
+ -AUTOMAKE_OPTIONS = foreign ansi2knr
52
+ +AUTOMAKE_OPTIONS = foreign
53
+
54
+ man_MANS = lame.1
55
+ EXTRA_DIST = ${man_MANS}
56
+ diff --git a/libmp3lame/i386/Makefile.am b/libmp3lame/i386/Makefile.am
57
+ index e49ad9c..b949a47 100644
58
+ --- a/libmp3lame/i386/Makefile.am
59
+ +++ b/libmp3lame/i386/Makefile.am
60
+ @@ -1,6 +1,6 @@
61
+ ## $Id: Makefile.am,v 1.26 2011/04/04 09:42:34 aleidinger Exp $
62
+
63
+ -AUTOMAKE_OPTIONS = foreign $(top_srcdir)/ansi2knr
64
+ +AUTOMAKE_OPTIONS = foreign
65
+
66
+ DEFS = @DEFS@ @CONFIG_DEFS@
67
+
68
+ --
69
+ 2.51.0
70
+
@@ -0,0 +1,41 @@
1
+ From 22e5474508093bcdde14e0f60d74ba7894307d72 Mon Sep 17 00:00:00 2001
2
+ From: =?UTF-8?q?Hubert=20Figui=C3=A8re?= <hub@figuiere.net>
3
+ Date: Tue, 18 Nov 2025 20:37:19 -0500
4
+ Subject: [PATCH 4/5] initscr is not used anywhere in lame sourcetree
5
+ MIME-Version: 1.0
6
+ Content-Type: text/plain; charset=UTF-8
7
+ Content-Transfer-Encoding: 8bit
8
+
9
+ check for used tgetent instead
10
+ check for separate tinfo library optionally built out from libncurses source tree,
11
+ like used in debian and gentoo
12
+ - ssuominen@g.o
13
+
14
+ http://bugs.gentoo.org/454322
15
+
16
+ Signed-off-by: Hubert Figuière <hub@figuiere.net>
17
+ ---
18
+ configure.in | 7 ++++---
19
+ 1 file changed, 4 insertions(+), 3 deletions(-)
20
+
21
+ diff --git a/configure.in b/configure.in
22
+ index 308b7ba..05b2fe7 100644
23
+ --- a/configure.in
24
+ +++ b/configure.in
25
+ @@ -371,9 +371,10 @@ dnl Checks for libraries.
26
+
27
+ AC_CHECK_HEADERS(termcap.h)
28
+ AC_CHECK_HEADERS(ncurses/termcap.h)
29
+ -AC_CHECK_LIB(termcap, initscr, HAVE_TERMCAP="termcap")
30
+ -AC_CHECK_LIB(curses, initscr, HAVE_TERMCAP="curses")
31
+ -AC_CHECK_LIB(ncurses, initscr, HAVE_TERMCAP="ncurses")
32
+ +AC_CHECK_LIB(termcap, tgetent, HAVE_TERMCAP="termcap")
33
+ +AC_CHECK_LIB(curses, tgetent, HAVE_TERMCAP="curses")
34
+ +AC_CHECK_LIB(ncurses, tgetent, HAVE_TERMCAP="ncurses")
35
+ +AC_CHECK_LIB(tinfo, tgetent, HAVE_TERMCAP="tinfo")
36
+
37
+ AM_ICONV
38
+
39
+ --
40
+ 2.51.0
41
+
@@ -0,0 +1,81 @@
1
+ From 850ca75cc47fef9ed3eb6dfe4e95b6ac715aa48f Mon Sep 17 00:00:00 2001
2
+ From: =?UTF-8?q?Hubert=20Figui=C3=A8re?= <hub@figuiere.net>
3
+ Date: Tue, 18 Nov 2025 21:41:31 -0500
4
+ Subject: [PATCH 5/5] Update autoconf
5
+ MIME-Version: 1.0
6
+ Content-Type: text/plain; charset=UTF-8
7
+ Content-Transfer-Encoding: 8bit
8
+
9
+ Signed-off-by: Hubert Figuière <hub@figuiere.net>
10
+ ---
11
+ configure.in | 17 ++++++++---------
12
+ 1 file changed, 8 insertions(+), 9 deletions(-)
13
+
14
+ diff --git a/configure.in b/configure.in
15
+ index 05b2fe7..ecafb45 100644
16
+ --- a/configure.in
17
+ +++ b/configure.in
18
+ @@ -17,9 +17,10 @@ dnl FRONTEND_LDFLAGS
19
+ dnl FRONTEND_CFLAGS
20
+ dnl FRONTEND_LDADD
21
+
22
+ -AC_PREREQ(2.68)
23
+ +AC_PREREQ([2.72])
24
+ AC_INIT([lame],[3.99.5],[lame-dev@lists.sf.net])
25
+ AC_CONFIG_SRCDIR([libmp3lame/lame.c])
26
+ +AC_CONFIG_MACRO_DIRS([m4])
27
+ AC_LANG([C])
28
+
29
+ dnl check system
30
+ @@ -37,9 +38,9 @@ AM_MAINTAINER_MODE
31
+ AM_MAKE_INCLUDE
32
+
33
+ dnl check environment
34
+ -AC_AIX
35
+ -AC_ISC_POSIX
36
+ -AC_MINIX
37
+ +AC_USE_SYSTEM_EXTENSIONS
38
+ +AC_SEARCH_LIBS([strerror],[cposix])
39
+ +AC_USE_SYSTEM_EXTENSIONS
40
+ case $host_os in
41
+ *cygwin* ) CYGWIN=yes;;
42
+ * ) CYGWIN=no;;
43
+ @@ -47,7 +48,7 @@ esac
44
+
45
+ dnl libtool
46
+ # AC_DISABLE_SHARED
47
+ -AC_PROG_LIBTOOL
48
+ +LT_INIT
49
+ AC_SUBST(LIBTOOL_DEPS)
50
+ CFLAGS="${ac_save_CFLAGS}"
51
+
52
+ @@ -85,7 +86,6 @@ if test "${ac_cv_header_dmalloc_h}" = "yes"; then
53
+ fi
54
+
55
+ dnl Checks for header files.
56
+ -AC_HEADER_STDC
57
+ AC_CHECK_HEADERS( \
58
+ errno.h \
59
+ fcntl.h \
60
+ @@ -135,8 +135,8 @@ if test $ac_cv_sizeof_short -eq 0 \
61
+ exit 1
62
+ fi
63
+
64
+ -AC_C_LONG_DOUBLE
65
+ -if test "${ac_cv_c_have_long_double}" = "yes" ; then
66
+ +AC_TYPE_LONG_DOUBLE_WIDER
67
+ +if test "${ac_cv_type_long_double_wider}" = "yes" ; then
68
+ AC_CHECK_SIZEOF(long double)
69
+ fi
70
+
71
+ @@ -324,7 +324,6 @@ if test ${cross_compiling} = "yes"; then
72
+ fi
73
+
74
+ AC_TYPE_SIZE_T
75
+ -AC_HEADER_TIME
76
+
77
+ dnl Checks for library functions.
78
+ AC_FUNC_ALLOCA
79
+ --
80
+ 2.51.0
81
+
@@ -0,0 +1,32 @@
1
+ {
2
+ "name": "lame",
3
+ "rm-configure": true,
4
+ "config-opts": ["--disable-static"],
5
+ "sources": [
6
+ {
7
+ "type": "archive",
8
+ "url": "https://downloads.sourceforge.net/lame/lame-3.99.5.tar.gz",
9
+ "sha256": "24346b4158e4af3bd9f2e194bb23eb473c75fb7377011523353196b19b9a23ff"
10
+ },
11
+ {
12
+ "type": "patch",
13
+ "paths": [
14
+ "0001-Build-xmm_quantize_sub.c-with-msse.patch",
15
+ "0002-Include-GTK-1-autoconf-directives-in-build-system.patch",
16
+ "0003-Patch-out-remaining-ansi2knr.patch",
17
+ "0004-initscr-is-not-used-anywhere-in-lame-sourcetree.patch",
18
+ "0005-Update-autoconf.patch"
19
+ ]
20
+ },
21
+ {
22
+ "type": "script",
23
+ "dest-filename": "autogen.sh",
24
+ "commands": [
25
+ "mkdir m4",
26
+ "cp /usr/share/gettext/m4/*.m4 m4",
27
+ "autoreconf -vfi -I m4"
28
+ ]
29
+ }
30
+ ],
31
+ "cleanup": ["/bin", "/include", "/share/doc", "/share/man", "*.la"]
32
+ }
@@ -0,0 +1,140 @@
1
+ {
2
+ "name": "libappindicator",
3
+ "build-options": {
4
+ "cflags": "-Wno-error",
5
+ "make-args": [ "-j1" ],
6
+ "env": {
7
+ "GTKDOCIZE": "true"
8
+ }
9
+ },
10
+ "rm-configure": true,
11
+ "config-opts": [
12
+ "--disable-static",
13
+ "--disable-gtk-doc",
14
+ "--disable-tests",
15
+ "--disable-mono-tests",
16
+ "--enable-introspection=no",
17
+ "--with-gtk=2"
18
+ ],
19
+ "cleanup": [
20
+ "/include",
21
+ "/lib/pkgconfig",
22
+ "/lib/*.la",
23
+ "/share/gtk-doc",
24
+ "/share/gir-1.0"
25
+ ],
26
+ "sources": [
27
+ {
28
+ "type": "archive",
29
+ "url": "https://launchpad.net/libappindicator/12.10/12.10.0/+download/libappindicator-12.10.0.tar.gz",
30
+ "mirror-urls": [
31
+ "https://mirror.math.princeton.edu/pub/frugalware/frugalware-2.1/source/xlib-extra/libappindicator/libappindicator-12.10.0.tar.gz",
32
+ "https://distfiles.alpinelinux.org/distfiles/v3.12/libappindicator-12.10.0.tar.gz",
33
+ "https://ftp.fr.openbsd.org/pub/OpenBSD/distfiles/libappindicator-12.10.0.tar.gz"
34
+ ],
35
+ "sha256": "d5907c1f98084acf28fd19593cb70672caa0ca1cf82d747ba6f4830d4cc3b49f"
36
+ },
37
+ {
38
+ "type": "patch",
39
+ "paths": [
40
+ "patches/0001-libappindicator-ftbfs.patch",
41
+ "patches/0002-libappindicator-no-python.patch",
42
+ "patches/0003-libappindicator-fix-crash-from-incorrect-signal-emission.patch",
43
+ "patches/0004-libappindicator-fix-crash-iterating-icon-themes.patch"
44
+ ]
45
+ },
46
+ {
47
+ "type": "script",
48
+ "commands": ["autoreconf -sfi"],
49
+ "dest-filename": "autogen.sh"
50
+ }
51
+ ],
52
+ "modules": [
53
+ "../intltool/intltool-0.51.json",
54
+ "../dbus-glib/dbus-glib.json",
55
+ {
56
+ "name": "libdbusmenu",
57
+ "build-options": {
58
+ "cflags": "-Wno-error",
59
+ "env": {
60
+ "HAVE_VALGRIND_FALSE": "#",
61
+ "HAVE_VALGRIND_TRUE": ""
62
+ }
63
+ },
64
+ "cleanup": [
65
+ "/include",
66
+ "/libexec",
67
+ "/lib/pkgconfig",
68
+ "/lib/*.la",
69
+ "/share/doc",
70
+ "/share/libdbusmenu",
71
+ "/share/gtk-doc",
72
+ "/share/gir-1.0"
73
+ ],
74
+ "config-opts": [
75
+ "--disable-static",
76
+ "--disable-gtk-doc",
77
+ "--enable-introspection=no",
78
+ "--disable-vala",
79
+ "--disable-dumper",
80
+ "--disable-tests",
81
+ "--with-gtk=2"
82
+ ],
83
+ "sources": [
84
+ {
85
+ "type": "archive",
86
+ "url": "https://launchpad.net/libdbusmenu/16.04/16.04.0/+download/libdbusmenu-16.04.0.tar.gz",
87
+ "mirror-urls": [
88
+ "https://sources.suse.com/SUSE:SLFO:Main:Build/libdbusmenu/a5b3e4717f09f90f9cd5568a5f933e8d/libdbusmenu-16.04.0.tar.gz",
89
+ "https://mirror.math.princeton.edu/pub/frugalware/frugalware-2.1/source/xlib/libdbusmenu/libdbusmenu-16.04.0.tar.gz",
90
+ "https://ftp.fr.openbsd.org/pub/OpenBSD/distfiles/libdbusmenu-16.04.0.tar.gz"
91
+ ],
92
+ "sha256": "b9cc4a2acd74509435892823607d966d424bd9ad5d0b00938f27240a1bfa878a"
93
+ }
94
+ ]
95
+ },
96
+ {
97
+ "name": "libindicator",
98
+ "build-options": {
99
+ "cflags": "-Wno-error"
100
+ },
101
+ "cleanup": [
102
+ "/include",
103
+ "/libexec",
104
+ "/lib/pkgconfig",
105
+ "/lib/*.la",
106
+ "/share/libindicator",
107
+ "/share/gtk-doc",
108
+ "/share/gir-1.0"
109
+ ],
110
+ "config-opts": [
111
+ "--disable-static",
112
+ "--disable-tests",
113
+ "--with-gtk=2"
114
+ ],
115
+ "sources": [
116
+ {
117
+ "type": "archive",
118
+ "url": "https://launchpad.net/libindicator/12.10/12.10.1/+download/libindicator-12.10.1.tar.gz",
119
+ "mirror-urls": [
120
+ "https://ftp.fr.openbsd.org/pub/OpenBSD/distfiles/libindicator-12.10.1.tar.gz",
121
+ "https://distfiles.alpinelinux.org/distfiles/v3.11/libindicator-12.10.1.tar.gz"
122
+ ],
123
+ "sha256": "b2d2e44c10313d5c9cd60db455d520f80b36dc39562df079a3f29495e8f9447f"
124
+ },
125
+ {
126
+ "type": "shell",
127
+ "commands": [
128
+ "# FTBFS fix",
129
+ "sed -e '/LIBINDICATOR_LIBS/ s/\\$LIBM/ $LIBM/' -i configure.ac"
130
+ ]
131
+ },
132
+ {
133
+ "type": "script",
134
+ "commands": ["autoreconf -sfi"],
135
+ "dest-filename": "autogen.sh"
136
+ }
137
+ ]
138
+ }
139
+ ]
140
+ }