@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.
- package/Cargo.lock +3 -3
- package/Cargo.toml +1 -1
- package/README.md +0 -17
- package/Release_Note.md +92 -58
- package/bin/mint +0 -0
- package/crates/mint-cli/src/agent.rs +100 -6
- package/crates/mint-cli/src/main.rs +166 -52
- package/crates/mint-core/src/agent_loop.rs +1 -0
- package/crates/mint-core/src/api_server.rs +55 -2
- package/crates/mint-core/src/browser.rs +55 -0
- package/crates/mint-core/src/channels.rs +1 -0
- package/crates/mint-core/src/chat.rs +3 -0
- package/crates/mint-core/src/config.rs +61 -0
- package/crates/mint-core/src/lib.rs +14 -0
- package/crates/mint-core/src/orchestration.rs +180 -11
- package/crates/mint-core/src/tts.rs +3 -1
- package/flatpak/com.pheem49.mint.desktop +9 -0
- package/flatpak/com.pheem49.mint.metainfo.xml +35 -0
- package/flatpak/com.pheem49.mint.yaml +52 -0
- package/package.json +1 -1
- package/shared-modules/.github/workflows/ci.yml +120 -0
- package/shared-modules/.github/workflows/update.yaml +28 -0
- package/shared-modules/CODEOWNERS +23 -0
- package/shared-modules/README.md +79 -0
- package/shared-modules/SDL/README.md +3 -0
- package/shared-modules/SDL/SDL-1.2.15.json +51 -0
- package/shared-modules/SDL/SDL_Pango-0.1.2-API-adds.patch +118 -0
- package/shared-modules/SDL/SDL_image-1.2.12.json +25 -0
- package/shared-modules/SDL/SDL_mixer-1.2.12.json +27 -0
- package/shared-modules/SDL/SDL_net-1.2.8.json +19 -0
- package/shared-modules/SDL/SDL_pango-0.1.2.json +26 -0
- package/shared-modules/SDL/SDL_ttf-2.0.11.json +28 -0
- package/shared-modules/SDL/libsdl-1.2.15-strict-prototypes.patch +316 -0
- package/shared-modules/SDL/sdl-check-for-SDL_VIDEO_X11_BACKINGSTORE.patch +24 -0
- package/shared-modules/SDL/sdl-libx11-build.patch +59 -0
- package/shared-modules/SDL/sdl-sysloadso-buffer-length.patch +27 -0
- package/shared-modules/SDL/sdl12-compat.json +22 -0
- package/shared-modules/SDL2/SDL2_image.json +27 -0
- package/shared-modules/SDL2/SDL2_ttf.json +29 -0
- package/shared-modules/cld2/CMakeLists.txt +157 -0
- package/shared-modules/cld2/cld2.json +24 -0
- package/shared-modules/clutter/clutter.json +72 -0
- package/shared-modules/dbus-glib/dbus-glib.json +29 -0
- package/shared-modules/glew/glew.json +36 -0
- package/shared-modules/glu/glu-9.json +12 -0
- package/shared-modules/gtk2/arc-gtk2-theme-Replace-Inkscape-dependency-with-rsvg-convert.patch +180 -0
- package/shared-modules/gtk2/gtk2-common-themes.json +360 -0
- package/shared-modules/gtk2/gtk2-fix-crash-in-show-uri.patch +30 -0
- package/shared-modules/gtk2/gtk2-gcc14.patch +281 -0
- package/shared-modules/gtk2/gtk2-gcc15.patch +250 -0
- package/shared-modules/gtk2/gtk2-murrine-c99.patch +34 -0
- package/shared-modules/gtk2/gtk2-use-adwaita-theme.patch +80 -0
- package/shared-modules/gtk2/gtk2.json +120 -0
- package/shared-modules/gtk2/ibus-gcc15.patch +13 -0
- package/shared-modules/gtk2/murrine-engine-fix-crash.patch +12 -0
- package/shared-modules/gtk2/readme.md +10 -0
- package/shared-modules/intltool/intltool-0.51.json +20 -0
- package/shared-modules/intltool/intltool-perl5.26-regex-fixes.patch +59 -0
- package/shared-modules/lame/0001-Build-xmm_quantize_sub.c-with-msse.patch +34 -0
- package/shared-modules/lame/0002-Include-GTK-1-autoconf-directives-in-build-system.patch +222 -0
- package/shared-modules/lame/0003-Patch-out-remaining-ansi2knr.patch +70 -0
- package/shared-modules/lame/0004-initscr-is-not-used-anywhere-in-lame-sourcetree.patch +41 -0
- package/shared-modules/lame/0005-Update-autoconf.patch +81 -0
- package/shared-modules/lame/lame-3.99.5.json +32 -0
- package/shared-modules/libappindicator/libappindicator-gtk2-12.10.json +140 -0
- package/shared-modules/libappindicator/libappindicator-gtk3-12.10.json +140 -0
- package/shared-modules/libappindicator/libappindicator-gtk3-introspection-12.10.json +140 -0
- package/shared-modules/libappindicator/patches/0001-libappindicator-ftbfs.patch +20 -0
- package/shared-modules/libappindicator/patches/0002-libappindicator-no-python.patch +888 -0
- package/shared-modules/libappindicator/patches/0003-libappindicator-fix-crash-from-incorrect-signal-emission.patch +74 -0
- package/shared-modules/libappindicator/patches/0004-libappindicator-fix-crash-iterating-icon-themes.patch +11 -0
- package/shared-modules/libayatana-appindicator/0001-Fix-HAVE_VALGRIND-AM_CONDITIONAL.patch +51 -0
- package/shared-modules/libayatana-appindicator/0001-Make-introspection-configurable.patch +44 -0
- package/shared-modules/libayatana-appindicator/libayatana-appindicator-gtk3.json +121 -0
- package/shared-modules/libcanberra/0001-gtk-Don-t-assume-all-GdkDisplays-are-GdkX11Displays-.patch +123 -0
- package/shared-modules/libcanberra/libcanberra.json +44 -0
- package/shared-modules/libmad/libmad.json +19 -0
- package/shared-modules/libsecret/libsecret.json +23 -0
- package/shared-modules/libsoup/libsoup-2.4.json +14 -0
- package/shared-modules/libusb/libusb.json +27 -0
- package/shared-modules/linux-audio/dssi.json +31 -0
- package/shared-modules/linux-audio/fftw3f-static.json +44 -0
- package/shared-modules/linux-audio/fftw3f.json +42 -0
- package/shared-modules/linux-audio/fluidsynth2-static.json +30 -0
- package/shared-modules/linux-audio/fluidsynth2.json +19 -0
- package/shared-modules/linux-audio/ladspa.json +26 -0
- package/shared-modules/linux-audio/lash.json +35 -0
- package/shared-modules/linux-audio/libinstpatch.json +16 -0
- package/shared-modules/linux-audio/liblo-static.json +22 -0
- package/shared-modules/linux-audio/liblo.json +17 -0
- package/shared-modules/linux-audio/lilv-static.json +94 -0
- package/shared-modules/linux-audio/lilv.json +82 -0
- package/shared-modules/linux-audio/lrdf.json +57 -0
- package/shared-modules/linux-audio/lv2.json +21 -0
- package/shared-modules/linux-audio/patches/lash/0001-configure-remove-aclocal-m4.patch +29 -0
- package/shared-modules/linux-audio/patches/lash/0002-Fix-build-with-recent-gcc.patch +73 -0
- package/shared-modules/linux-audio/patches/lash/0003-Fix-linking.patch +136 -0
- package/shared-modules/linux-audio/patches/raptor-libxml.patch +31 -0
- package/shared-modules/linux-audio/patches/stk-install.sh +54 -0
- package/shared-modules/linux-audio/stk.json +28 -0
- package/shared-modules/lua5.1/0004-Fix-stack-overflow-in-vararg-functions.patch +21 -0
- package/shared-modules/lua5.1/lua-5.1.5-so.patch +43 -0
- package/shared-modules/lua5.1/lua-5.1.5.json +42 -0
- package/shared-modules/lua5.3/lua-5.3.5.json +41 -0
- package/shared-modules/lua5.3/lua.pc.in +8 -0
- package/shared-modules/lua5.3/luaconf.patch +47 -0
- package/shared-modules/lua5.3/makefile-add-liblua.so-rule.patch +47 -0
- package/shared-modules/lua5.4/lua-5.4.json +41 -0
- package/shared-modules/lua5.4/lua.pc.in +8 -0
- package/shared-modules/lua5.4/luaconf.patch +34 -0
- package/shared-modules/lua5.4/makefile-add-liblua.so-rule.patch +42 -0
- package/shared-modules/luajit/luajit.json +30 -0
- package/shared-modules/lzo/lzo.json +27 -0
- package/shared-modules/mac/mac.json +18 -0
- package/shared-modules/physfs/physfs.json +26 -0
- package/shared-modules/pygame/audiofile-gcc6.patch +21 -0
- package/shared-modules/pygame/cython-fixes.patch +34 -0
- package/shared-modules/pygame/fluidsynth-no-rawmidi.patch +69 -0
- package/shared-modules/pygame/glib.patch +25 -0
- package/shared-modules/pygame/pygame1-python2.json +157 -0
- package/shared-modules/pygtk/pygtk-c99.patch +15 -0
- package/shared-modules/pygtk/pygtk.json +117 -0
- package/shared-modules/pygtk/pygtk.patch +39 -0
- package/shared-modules/python2.7/python-2.7.json +48 -0
- package/shared-modules/smpeg/smpeg-0.4.5.json +50 -0
- package/shared-modules/smpeg/smpeg-am-prog-as.patch +12 -0
- package/shared-modules/smpeg/smpeg-export-mpegaudio-class.patch +17 -0
- package/shared-modules/smpeg/smpeg-gcc6.patch +40 -0
- package/shared-modules/smpeg/smpeg-no-gtk.patch +37 -0
- package/shared-modules/squashfs-tools/squashfs-tools.json +25 -0
- package/shared-modules/update-checker.sh +50 -0
- package/shared-modules/vorbisgain/0001-temp_files.patch +75 -0
- package/shared-modules/vorbisgain/0002-errno.patch +33 -0
- package/shared-modules/vorbisgain/0003-manpage.patch +248 -0
- package/shared-modules/vorbisgain/0004-vorbisgain_mtime.patch +183 -0
- package/shared-modules/vorbisgain/0005-double_fclose.patch +21 -0
- package/shared-modules/vorbisgain/0006-manpage_hyphens.patch +56 -0
- package/shared-modules/vorbisgain/0007-recursively_spelling.patch +14 -0
- package/shared-modules/vorbisgain/0008-manpage_recursion_mistake.patch +23 -0
- package/shared-modules/vorbisgain/0009-hardening.patch +13 -0
- package/shared-modules/vorbisgain/0010-fclose.patch +13 -0
- package/shared-modules/vorbisgain/README.md +23 -0
- package/shared-modules/vorbisgain/vorbisgain_0.37-2.json +29 -0
- package/src/renderer/shared/agentProgress.ts +145 -0
- package/src/renderer/shared/calculator.ts +52 -0
- package/src/renderer/shared/components/AgentActivityDrawer.tsx +72 -0
- package/src/renderer/shared/components/AgentActivityTable.tsx +66 -0
- package/src/renderer/shared/components/ApprovalCard.tsx +93 -0
- package/src/renderer/shared/components/ChatCodeBlock.tsx +75 -0
- package/src/renderer/shared/components/ThinkingBlock.tsx +101 -0
- package/src/renderer/shared/constants/models.ts +91 -0
- package/src/renderer/shared/platform.ts +82 -0
- package/src/renderer/shared/types.ts +140 -0
- package/src/renderer/shared/utils/agentActivity.ts +187 -0
- package/src/renderer/shared/utils/approval.ts +1 -0
- package/src/renderer/shared/utils/approval.tsx +64 -0
- package/src/renderer/shared/utils/markdown.tsx +347 -0
- package/src/renderer/shared/utils/providers.ts +36 -0
- package/src/renderer/shared/utils/speech.ts +216 -0
- package/src/renderer/shared/utils/ui.ts +147 -0
- package/src/renderer/src/agentProgress.ts +11 -39
- package/src/renderer/src/calculator.ts +3 -46
- package/src/renderer/src/components/ChatPanel.tsx +194 -1303
- package/src/renderer/src/components/MintDashboard.tsx +23 -169
- package/src/renderer/src/components/PicturesLibrary.tsx +32 -8
- package/src/renderer/src/components/Settings/AgentsTab.tsx +362 -0
- package/src/renderer/src/components/Settings/AutomationTab.tsx +0 -22
- package/src/renderer/src/components/SettingsWindow.tsx +53 -3
- package/src/renderer/src/css/styles.css +84 -0
- package/src/renderer/src/tauri.ts +128 -143
- package/src/renderer/src-web/agentProgress.ts +11 -39
- package/src/renderer/src-web/calculator.ts +3 -46
- package/src/renderer/src-web/components/ChatPanel.tsx +194 -1301
- package/src/renderer/src-web/components/MintDashboard.tsx +23 -169
- package/src/renderer/src-web/components/PicturesLibrary.tsx +23 -29
- package/src/renderer/src-web/components/Settings/AgentsTab.tsx +362 -0
- package/src/renderer/src-web/components/Settings/AutomationTab.tsx +0 -22
- package/src/renderer/src-web/components/SettingsWindow.tsx +53 -3
- package/src/renderer/src-web/css/styles.css +84 -0
- package/src/renderer/src-web/tauri.ts +180 -102
- package/src-tauri/src/lib.rs +137 -33
- package/src-tauri/src/webhooks.rs +1 -0
- package/src-tauri/src/workflows.rs +1 -0
- package/src-tauri/tauri.conf.json +1 -1
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
## Flathub shared modules
|
|
2
|
+
|
|
3
|
+
This repository contains Flatpak build recipes of commonly shared
|
|
4
|
+
modules and is intended to be used as a git submodule. Each submodule
|
|
5
|
+
may include additional instructions to be used properly. Please check
|
|
6
|
+
the folder containing that module to see if anything extra needs to be
|
|
7
|
+
done.
|
|
8
|
+
|
|
9
|
+
### Adding
|
|
10
|
+
|
|
11
|
+
To use shared modules for packaging an application, add the submodule:
|
|
12
|
+
|
|
13
|
+
```sh
|
|
14
|
+
git submodule add https://github.com/flathub/shared-modules.git
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
### Usage
|
|
18
|
+
|
|
19
|
+
Then modules from this repository can be specified in an application
|
|
20
|
+
manifest.
|
|
21
|
+
|
|
22
|
+
```json
|
|
23
|
+
"modules": [
|
|
24
|
+
"shared-modules/SDL/SDL-1.2.15.json",
|
|
25
|
+
]
|
|
26
|
+
```
|
|
27
|
+
And for a YAML manifest:
|
|
28
|
+
|
|
29
|
+
```yaml
|
|
30
|
+
modules:
|
|
31
|
+
- shared-modules/SDL/SDL-1.2.15.json
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
### Updating
|
|
35
|
+
|
|
36
|
+
To update the submodule:
|
|
37
|
+
|
|
38
|
+
```sh
|
|
39
|
+
git submodule update --remote --merge
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
To automate updates, [dependabot](https://docs.github.com/en/code-security/getting-started/dependabot-quickstart-guide)
|
|
43
|
+
can be used but please limit the update frequency to not more than once
|
|
44
|
+
or twice a week.
|
|
45
|
+
|
|
46
|
+
### Removing
|
|
47
|
+
|
|
48
|
+
To remove the submodule:
|
|
49
|
+
|
|
50
|
+
```sh
|
|
51
|
+
git submodule deinit -f -- shared-modules
|
|
52
|
+
rm -rf .git/modules/shared-modules
|
|
53
|
+
git rm -f shared-modules
|
|
54
|
+
rm .gitmodules
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
### External data checker
|
|
58
|
+
|
|
59
|
+
We provide an automatic updating mechanism for submodules located here.
|
|
60
|
+
In order to utilize it [set up x-checker-data](https://github.com/flathub/flatpak-external-data-checker)
|
|
61
|
+
for your sources and they will be checked for updates in a weekly basis.
|
|
62
|
+
|
|
63
|
+
### Inclusion criteria
|
|
64
|
+
|
|
65
|
+
- The module must be widely used on [Flathub](https://github.com/flathub)
|
|
66
|
+
by actively maintained applications.
|
|
67
|
+
|
|
68
|
+
- The module must not be provided by any current branch of the runtimes.
|
|
69
|
+
|
|
70
|
+
- The module manifest must be in JSON format.
|
|
71
|
+
|
|
72
|
+
- The manifest must be buildable with the latest stable
|
|
73
|
+
and oldstable versions of the Freedesktop SDK runtime.
|
|
74
|
+
|
|
75
|
+
### Inclusion process
|
|
76
|
+
|
|
77
|
+
Please open a [pull request](https://github.com/flathub/shared-modules/pulls)
|
|
78
|
+
with the module manifest and add yourself as a [codeowner](https://github.com/flathub/shared-modules/blob/master/CODEOWNERS)
|
|
79
|
+
of that module.
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "SDL1",
|
|
3
|
+
"rm-configure": true,
|
|
4
|
+
"config-opts": ["--disable-static"],
|
|
5
|
+
"build-options":{
|
|
6
|
+
"cflags": "-Wno-incompatible-pointer-types"
|
|
7
|
+
},
|
|
8
|
+
"cleanup": [
|
|
9
|
+
"/bin",
|
|
10
|
+
"/share/man",
|
|
11
|
+
"/share/aclocal",
|
|
12
|
+
"/include",
|
|
13
|
+
"/lib/pkgconfig",
|
|
14
|
+
"/lib/*.la",
|
|
15
|
+
"/lib/*.a"
|
|
16
|
+
],
|
|
17
|
+
"sources": [
|
|
18
|
+
{
|
|
19
|
+
"type": "archive",
|
|
20
|
+
"url": "https://www.libsdl.org/release/SDL-1.2.15.tar.gz",
|
|
21
|
+
"sha256": "d6d316a793e5e348155f0dd93b979798933fb98aa1edebcc108829d6474aad00"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"type": "patch",
|
|
25
|
+
"path": "sdl-libx11-build.patch"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"type": "patch",
|
|
29
|
+
"path": "sdl-check-for-SDL_VIDEO_X11_BACKINGSTORE.patch"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"type": "patch",
|
|
33
|
+
"path": "sdl-sysloadso-buffer-length.patch"
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"type": "patch",
|
|
37
|
+
"path": "libsdl-1.2.15-strict-prototypes.patch"
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"type": "script",
|
|
41
|
+
"dest-filename": "autogen.sh",
|
|
42
|
+
"commands": [
|
|
43
|
+
"sed -i -e 's/.*AM_PATH_ESD.*//' configure.in",
|
|
44
|
+
"cp -p /usr/share/automake-*/config.{sub,guess} build-scripts",
|
|
45
|
+
"aclocal",
|
|
46
|
+
"libtoolize",
|
|
47
|
+
"autoconf"
|
|
48
|
+
]
|
|
49
|
+
}
|
|
50
|
+
]
|
|
51
|
+
}
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
diff -Naupr SDL_Pango-0.1.2.orig/src/SDL_Pango.c SDL_Pango-0.1.2/src/SDL_Pango.c
|
|
2
|
+
--- SDL_Pango-0.1.2.orig/src/SDL_Pango.c 2004-12-10 10:06:33.000000000 +0100
|
|
3
|
+
+++ SDL_Pango-0.1.2/src/SDL_Pango.c 2006-09-29 17:42:09.000000000 +0200
|
|
4
|
+
@@ -723,13 +723,8 @@ SDLPango_CopyFTBitmapToSurface(
|
|
5
|
+
SDL_UnlockSurface(surface);
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
-/*!
|
|
9
|
+
- Create a context which contains Pango objects.
|
|
10
|
+
-
|
|
11
|
+
- @return A pointer to the context as a SDLPango_Context*.
|
|
12
|
+
-*/
|
|
13
|
+
SDLPango_Context*
|
|
14
|
+
-SDLPango_CreateContext()
|
|
15
|
+
+SDLPango_CreateContext_GivenFontDesc(const char* font_desc)
|
|
16
|
+
{
|
|
17
|
+
SDLPango_Context *context = g_malloc(sizeof(SDLPango_Context));
|
|
18
|
+
G_CONST_RETURN char *charset;
|
|
19
|
+
@@ -743,8 +738,7 @@ SDLPango_CreateContext()
|
|
20
|
+
pango_context_set_language (context->context, pango_language_from_string (charset));
|
|
21
|
+
pango_context_set_base_dir (context->context, PANGO_DIRECTION_LTR);
|
|
22
|
+
|
|
23
|
+
- context->font_desc = pango_font_description_from_string(
|
|
24
|
+
- MAKE_FONT_NAME (DEFAULT_FONT_FAMILY, DEFAULT_FONT_SIZE));
|
|
25
|
+
+ context->font_desc = pango_font_description_from_string(font_desc);
|
|
26
|
+
|
|
27
|
+
context->layout = pango_layout_new (context->context);
|
|
28
|
+
|
|
29
|
+
@@ -762,6 +756,17 @@ SDLPango_CreateContext()
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/*!
|
|
33
|
+
+ Create a context which contains Pango objects.
|
|
34
|
+
+
|
|
35
|
+
+ @return A pointer to the context as a SDLPango_Context*.
|
|
36
|
+
+*/
|
|
37
|
+
+SDLPango_Context*
|
|
38
|
+
+SDLPango_CreateContext()
|
|
39
|
+
+{
|
|
40
|
+
+ SDLPango_CreateContext_GivenFontDesc(MAKE_FONT_NAME(DEFAULT_FONT_FAMILY, DEFAULT_FONT_SIZE));
|
|
41
|
+
+}
|
|
42
|
+
+
|
|
43
|
+
+/*!
|
|
44
|
+
Free a context.
|
|
45
|
+
|
|
46
|
+
@param *context [i/o] Context to be free
|
|
47
|
+
@@ -1053,6 +1058,20 @@ SDLPango_SetMarkup(
|
|
48
|
+
pango_layout_set_font_description (context->layout, context->font_desc);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
+void
|
|
52
|
+
+SDLPango_SetText_GivenAlignment(
|
|
53
|
+
+ SDLPango_Context *context,
|
|
54
|
+
+ const char *text,
|
|
55
|
+
+ int length,
|
|
56
|
+
+ SDLPango_Alignment alignment)
|
|
57
|
+
+{
|
|
58
|
+
+ pango_layout_set_attributes(context->layout, NULL);
|
|
59
|
+
+ pango_layout_set_text (context->layout, text, length);
|
|
60
|
+
+ pango_layout_set_auto_dir (context->layout, TRUE);
|
|
61
|
+
+ pango_layout_set_alignment (context->layout, alignment);
|
|
62
|
+
+ pango_layout_set_font_description (context->layout, context->font_desc);
|
|
63
|
+
+}
|
|
64
|
+
+
|
|
65
|
+
/*!
|
|
66
|
+
Set plain text to context.
|
|
67
|
+
Text must be utf-8.
|
|
68
|
+
@@ -1067,11 +1086,7 @@ SDLPango_SetText(
|
|
69
|
+
const char *text,
|
|
70
|
+
int length)
|
|
71
|
+
{
|
|
72
|
+
- pango_layout_set_attributes(context->layout, NULL);
|
|
73
|
+
- pango_layout_set_text (context->layout, text, length);
|
|
74
|
+
- pango_layout_set_auto_dir (context->layout, TRUE);
|
|
75
|
+
- pango_layout_set_alignment (context->layout, PANGO_ALIGN_LEFT);
|
|
76
|
+
- pango_layout_set_font_description (context->layout, context->font_desc);
|
|
77
|
+
+ SDLPango_SetText_GivenAlignment(context, text, length, SDLPANGO_ALIGN_LEFT);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
/*!
|
|
81
|
+
diff -Naupr SDL_Pango-0.1.2.orig/src/SDL_Pango.h SDL_Pango-0.1.2/src/SDL_Pango.h
|
|
82
|
+
--- SDL_Pango-0.1.2.orig/src/SDL_Pango.h 2004-12-10 10:06:33.000000000 +0100
|
|
83
|
+
+++ SDL_Pango-0.1.2/src/SDL_Pango.h 2006-09-29 17:42:09.000000000 +0200
|
|
84
|
+
@@ -109,12 +109,20 @@ typedef enum {
|
|
85
|
+
SDLPANGO_DIRECTION_NEUTRAL /*! Neutral */
|
|
86
|
+
} SDLPango_Direction;
|
|
87
|
+
|
|
88
|
+
-
|
|
89
|
+
+/*!
|
|
90
|
+
+ Specifies alignment of text. See Pango reference for detail
|
|
91
|
+
+*/
|
|
92
|
+
+typedef enum {
|
|
93
|
+
+ SDLPANGO_ALIGN_LEFT,
|
|
94
|
+
+ SDLPANGO_ALIGN_CENTER,
|
|
95
|
+
+ SDLPANGO_ALIGN_RIGHT
|
|
96
|
+
+} SDLPango_Alignment;
|
|
97
|
+
|
|
98
|
+
extern DECLSPEC int SDLCALL SDLPango_Init();
|
|
99
|
+
|
|
100
|
+
extern DECLSPEC int SDLCALL SDLPango_WasInit();
|
|
101
|
+
|
|
102
|
+
+extern DECLSPEC SDLPango_Context* SDLCALL SDLPango_CreateContext_GivenFontDesc(const char* font_desc);
|
|
103
|
+
extern DECLSPEC SDLPango_Context* SDLCALL SDLPango_CreateContext();
|
|
104
|
+
|
|
105
|
+
extern DECLSPEC void SDLCALL SDLPango_FreeContext(
|
|
106
|
+
@@ -157,6 +165,12 @@ extern DECLSPEC void SDLCALL SDLPango_Se
|
|
107
|
+
const char *markup,
|
|
108
|
+
int length);
|
|
109
|
+
|
|
110
|
+
+extern DECLSPEC void SDLCALL SDLPango_SetText_GivenAlignment(
|
|
111
|
+
+ SDLPango_Context *context,
|
|
112
|
+
+ const char *text,
|
|
113
|
+
+ int length,
|
|
114
|
+
+ SDLPango_Alignment alignment);
|
|
115
|
+
+
|
|
116
|
+
extern DECLSPEC void SDLCALL SDLPango_SetText(
|
|
117
|
+
SDLPango_Context *context,
|
|
118
|
+
const char *markup,
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "SDL_image",
|
|
3
|
+
"config-opts": ["--disable-static"],
|
|
4
|
+
"rm-configure": true,
|
|
5
|
+
"cleanup": [
|
|
6
|
+
"/include",
|
|
7
|
+
"/lib/pkgconfig",
|
|
8
|
+
"*.la",
|
|
9
|
+
"*.a"
|
|
10
|
+
],
|
|
11
|
+
"sources": [
|
|
12
|
+
{
|
|
13
|
+
"type": "archive",
|
|
14
|
+
"url": "https://www.libsdl.org/projects/SDL_image/release/SDL_image-1.2.12.tar.gz",
|
|
15
|
+
"sha256": "0b90722984561004de84847744d566809dbb9daf732a9e503b91a1b5a84e5699"
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"type": "script",
|
|
19
|
+
"dest-filename": "autogen.sh",
|
|
20
|
+
"commands": [
|
|
21
|
+
"AUTOMAKE=\"automake --foreign\" autoreconf -vfi"
|
|
22
|
+
]
|
|
23
|
+
}
|
|
24
|
+
]
|
|
25
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "SDL_mixer",
|
|
3
|
+
"config-opts": ["--disable-static"],
|
|
4
|
+
"cleanup": [
|
|
5
|
+
"/include",
|
|
6
|
+
"/lib/pkgconfig",
|
|
7
|
+
"/lib/*.la"
|
|
8
|
+
],
|
|
9
|
+
"rm-configure": true,
|
|
10
|
+
"sources": [
|
|
11
|
+
{
|
|
12
|
+
"type": "archive",
|
|
13
|
+
"url": "https://www.libsdl.org/projects/SDL_mixer/release/SDL_mixer-1.2.12.tar.gz",
|
|
14
|
+
"sha256": "1644308279a975799049e4826af2cfc787cad2abb11aa14562e402521f86992a"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"type": "script",
|
|
18
|
+
"dest-filename": "autogen.sh",
|
|
19
|
+
"commands": [
|
|
20
|
+
"rm acinclude/libtool.m4",
|
|
21
|
+
"rm acinclude/lt*",
|
|
22
|
+
"AUTOMAKE=\"automake --foreign\" autoreconf -vfi -I acinclude",
|
|
23
|
+
"cp -p /usr/share/automake-*/config.{sub,guess} build-scripts"
|
|
24
|
+
]
|
|
25
|
+
}
|
|
26
|
+
]
|
|
27
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "SDL_net",
|
|
3
|
+
"config-opts": ["--disable-static"],
|
|
4
|
+
"rm-configure": true,
|
|
5
|
+
"sources": [
|
|
6
|
+
{
|
|
7
|
+
"type": "archive",
|
|
8
|
+
"url": "https://www.libsdl.org/projects/SDL_net/release/SDL_net-1.2.8.tar.gz",
|
|
9
|
+
"sha256": "5f4a7a8bb884f793c278ac3f3713be41980c5eedccecff0260411347714facb4"
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"type": "script",
|
|
13
|
+
"dest-filename": "autogen.sh",
|
|
14
|
+
"commands": [
|
|
15
|
+
"AUTOMAKE=\"automake --foreign\" autoreconf -vfi"
|
|
16
|
+
]
|
|
17
|
+
}
|
|
18
|
+
]
|
|
19
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "SDL_pango",
|
|
3
|
+
"config-opts": ["--disable-static"],
|
|
4
|
+
"rm-configure": true,
|
|
5
|
+
"build-options":{
|
|
6
|
+
"cflags": "-Wno-implicit-function-declaration"
|
|
7
|
+
},
|
|
8
|
+
"sources": [
|
|
9
|
+
{
|
|
10
|
+
"type": "archive",
|
|
11
|
+
"url": "https://downloads.sourceforge.net/project/sdlpango/SDL_Pango/0.1.2/SDL_Pango-0.1.2.tar.gz",
|
|
12
|
+
"sha256": "7f75d3b97acf707c696ea126424906204ebfa07660162de925173cdd0257eba4"
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"type": "patch",
|
|
16
|
+
"path": "SDL_Pango-0.1.2-API-adds.patch"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"type": "script",
|
|
20
|
+
"dest-filename": "autogen.sh",
|
|
21
|
+
"commands": [
|
|
22
|
+
"autoreconf -vfi"
|
|
23
|
+
]
|
|
24
|
+
}
|
|
25
|
+
]
|
|
26
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "SDL_ttf",
|
|
3
|
+
"config-opts": ["--disable-static"],
|
|
4
|
+
"rm-configure": true,
|
|
5
|
+
"config-opts": [
|
|
6
|
+
"ac_cv_path_FREETYPE_CONFIG=pkg-config freetype2"
|
|
7
|
+
],
|
|
8
|
+
"cleanup": [
|
|
9
|
+
"/include",
|
|
10
|
+
"/lib/pkgconfig",
|
|
11
|
+
"*.la",
|
|
12
|
+
"*.a"
|
|
13
|
+
],
|
|
14
|
+
"sources": [
|
|
15
|
+
{
|
|
16
|
+
"type": "archive",
|
|
17
|
+
"url": "https://www.libsdl.org/projects/SDL_ttf/release/SDL_ttf-2.0.11.tar.gz",
|
|
18
|
+
"sha256": "724cd895ecf4da319a3ef164892b72078bd92632a5d812111261cde248ebcdb7"
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"type": "script",
|
|
22
|
+
"dest-filename": "autogen.sh",
|
|
23
|
+
"commands": [
|
|
24
|
+
"AUTOMAKE=\"automake --foreign\" autoreconf -vfi"
|
|
25
|
+
]
|
|
26
|
+
}
|
|
27
|
+
]
|
|
28
|
+
}
|