diff options
| author | Wolfgang Meyer <Wolfgang.Meyer@gossenmetrawatt.com> | 2022-08-11 13:23:59 +0200 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2022-08-12 01:24:27 -0700 |
| commit | 67b3fc7ad000e21b6f80a225cc06a8932558f617 (patch) | |
| tree | 929f1b7365e0846c616144275a857a2db050b750 | |
| parent | 68d5d03be43f545fb8bdca8b9aae0f7f102b741b (diff) | |
| download | meta-openembedded-67b3fc7ad000e21b6f80a225cc06a8932558f617.tar.gz | |
libsdl2-ttf: upgrade 2.0.18 -> 2.20.0
Changelog:
* Added support for building with CMake
* Added TTF_GetFontWrappedAlign() and TTF_SetFontWrappedAlign() to set alignment on wrapped text
* Added functions to render using FreeType LCD algorithm:
TTF_RenderText_LCD()
TTF_RenderUTF8_LCD()
TTF_RenderUNICODE_LCD()
TTF_RenderText_LCD_Wrapped()
TTF_RenderUTF8_LCD_Wrapped()
TTF_RenderUNICODE_LCD_Wrapped()
TTF_RenderGlyph_LCD()
TTF_RenderGlyph32_LCD()
* Added TTF_SetFontDirection() and TTF_SetFontScriptName() for additional control over fonts using HarfBuzz
* Updated to FreeType version 2.12.1 and HarfBuzz version 2.9.1, fixing CVE-2018-25032
* Fixed crash when loading fonts at certain sizes on Windows
* Fix memory corruption loading malformed TTF files (CVE-2022-27470)
Signed-off-by: Wolfgang Meyer <Wolfgang.Meyer@gossenmetrawatt.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
| -rw-r--r-- | meta-oe/recipes-graphics/libsdl/libsdl2-ttf_2.0.18.bb | 27 | ||||
| -rw-r--r-- | meta-oe/recipes-graphics/libsdl/libsdl2-ttf_2.20.0.bb | 32 |
2 files changed, 32 insertions, 27 deletions
diff --git a/meta-oe/recipes-graphics/libsdl/libsdl2-ttf_2.0.18.bb b/meta-oe/recipes-graphics/libsdl/libsdl2-ttf_2.0.18.bb deleted file mode 100644 index aae803f2eb..0000000000 --- a/meta-oe/recipes-graphics/libsdl/libsdl2-ttf_2.0.18.bb +++ /dev/null | |||
| @@ -1,27 +0,0 @@ | |||
| 1 | SUMMARY = "Simple DirectMedia Layer truetype font library" | ||
| 2 | SECTION = "libs" | ||
| 3 | DEPENDS = "libsdl2 freetype virtual/egl" | ||
| 4 | LICENSE = "Zlib" | ||
| 5 | LIC_FILES_CHKSUM = "file://COPYING.txt;md5=e98cfd01ca78f683e9d035795810ce87" | ||
| 6 | |||
| 7 | SRC_URI = "http://www.libsdl.org/projects/SDL_ttf/release/SDL2_ttf-${PV}.tar.gz \ | ||
| 8 | file://automake_foreign.patch \ | ||
| 9 | " | ||
| 10 | SRC_URI[sha256sum] = "7234eb8883514e019e7747c703e4a774575b18d435c22a4a29d068cb768a2251" | ||
| 11 | |||
| 12 | S = "${WORKDIR}/SDL2_ttf-${PV}" | ||
| 13 | |||
| 14 | inherit autotools pkgconfig features_check | ||
| 15 | |||
| 16 | # links to libGL.so | ||
| 17 | REQUIRED_DISTRO_FEATURES += "opengl" | ||
| 18 | |||
| 19 | do_configure:prepend() { | ||
| 20 | # Removing these files fixes a libtool version mismatch. | ||
| 21 | MACROS="libtool.m4 lt~obsolete.m4 ltoptions.m4 ltsugar.m4 ltversion.m4" | ||
| 22 | |||
| 23 | for i in ${MACROS}; do | ||
| 24 | rm -f ${S}/acinclude/$i | ||
| 25 | done | ||
| 26 | } | ||
| 27 | ASNEEDED = "" | ||
diff --git a/meta-oe/recipes-graphics/libsdl/libsdl2-ttf_2.20.0.bb b/meta-oe/recipes-graphics/libsdl/libsdl2-ttf_2.20.0.bb new file mode 100644 index 0000000000..4728022a27 --- /dev/null +++ b/meta-oe/recipes-graphics/libsdl/libsdl2-ttf_2.20.0.bb | |||
| @@ -0,0 +1,32 @@ | |||
| 1 | SUMMARY = "Simple DirectMedia Layer truetype font library" | ||
| 2 | SECTION = "libs" | ||
| 3 | DEPENDS = "libsdl2 freetype virtual/egl" | ||
| 4 | LICENSE = "Zlib" | ||
| 5 | LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=771dca8728b18d39b130e19b36514371" | ||
| 6 | |||
| 7 | SRC_URI = " \ | ||
| 8 | git://github.com/libsdl-org/SDL_ttf.git;branch=main;protocol=https \ | ||
| 9 | git://github.com/libsdl-org/freetype.git;branch=VER-2-12-1-SDL;destsuffix=git/external/freetype;name=freetype;protocol=https \ | ||
| 10 | git://github.com/libsdl-org/harfbuzz.git;branch=2.9.1-SDL;destsuffix=git/external/harfbuzz;name=harfbuzz;protocol=https \ | ||
| 11 | file://automake_foreign.patch \ | ||
| 12 | " | ||
| 13 | SRCREV = "f5e4828ffc9d3a84f00011fede4446aecb4a685f" | ||
| 14 | SRCREV_freetype = "6fc77cee03e078e97afcee0c0e06a2d3274b9a29" | ||
| 15 | SRCREV_harfbuzz = "6022fe2f68d028ee178284f297b3902ffdf65b03" | ||
| 16 | |||
| 17 | S = "${WORKDIR}/git" | ||
| 18 | |||
| 19 | inherit autotools pkgconfig features_check | ||
| 20 | |||
| 21 | # links to libGL.so | ||
| 22 | REQUIRED_DISTRO_FEATURES += "opengl" | ||
| 23 | |||
| 24 | do_configure:prepend() { | ||
| 25 | # Removing these files fixes a libtool version mismatch. | ||
| 26 | MACROS="libtool.m4 lt~obsolete.m4 ltoptions.m4 ltsugar.m4 ltversion.m4" | ||
| 27 | |||
| 28 | for i in ${MACROS}; do | ||
| 29 | rm -f ${S}/acinclude/$i | ||
| 30 | done | ||
| 31 | } | ||
| 32 | ASNEEDED = "" | ||
