From 74e71f017a6851ebc159d3cf1b6c7c78dcd44291 Mon Sep 17 00:00:00 2001 From: wangmy Date: Wed, 19 Jan 2022 09:46:05 +0800 Subject: libsdl2-ttf: upgrade 2.0.15 -> 2.0.18 refresh automake_foreign.patch License-Update: year updated to 2022. Changelog: ========= -Added TTF_GetFreeTypeVersion() and TTF_GetHarfBuzzVersion() -Added support for Signed Distance Field rendering with TTF_SetFontSDF() and TTF_GetFontSDF() -Added optional DPI-scaling of fonts, with the following new functions: TTF_OpenFontDPI() TTF_OpenFontIndexDPI() TTF_OpenFontDPIRW() TTF_OpenFontIndexDPIRW() TTF_SetFontSizeDPI() -Added 32-bit character support with: TTF_GlyphIsProvided32() TTF_GlyphMetrics32() TTF_RenderGlyph32_Solid() TTF_RenderGlyph32_Shaded() TTF_RenderGlyph32_Blended() TTF_GetFontKerningSizeGlyphs32() -Added functions to set direction and script when using Harfbuzz: TTF_SetDirection() TTF_SetScript() -Added extended API for text measurement: TTF_MeasureText() TTF_MeasureUTF8() TTF_MeasureUNICODE() -Added TTF_SetFontSize() to set font size dynamically -Added 'Shaded' and 'Solid' text wrapped functions: TTF_RenderText_Solid_Wrapped() TTF_RenderUTF8_Solid_Wrapped() TTF_RenderUNICODE_Solid_Wrapped() TTF_RenderText_Shaded_Wrapped() TTF_RenderUTF8_Shaded_Wrapped() TTF_RenderUNICODE_Shaded_Wrapped() -Added TTF_HINTING_LIGHT_SUBPIXEL for better results at small text sizes at a performance cost Signed-off-by: Wang Mingyu Signed-off-by: Khem Raj --- .../libsdl/libsdl2-ttf/automake_foreign.patch | 6 ++--- .../recipes-graphics/libsdl/libsdl2-ttf_2.0.15.bb | 29 ---------------------- .../recipes-graphics/libsdl/libsdl2-ttf_2.0.18.bb | 27 ++++++++++++++++++++ 3 files changed, 30 insertions(+), 32 deletions(-) delete mode 100644 meta-oe/recipes-graphics/libsdl/libsdl2-ttf_2.0.15.bb create mode 100644 meta-oe/recipes-graphics/libsdl/libsdl2-ttf_2.0.18.bb (limited to 'meta-oe/recipes-graphics/libsdl') diff --git a/meta-oe/recipes-graphics/libsdl/libsdl2-ttf/automake_foreign.patch b/meta-oe/recipes-graphics/libsdl/libsdl2-ttf/automake_foreign.patch index 871e6e94ef..962c119791 100644 --- a/meta-oe/recipes-graphics/libsdl/libsdl2-ttf/automake_foreign.patch +++ b/meta-oe/recipes-graphics/libsdl/libsdl2-ttf/automake_foreign.patch @@ -1,4 +1,4 @@ -From f9c4ad3a171d676e3818b8f6897f325ccf0b2203 Mon Sep 17 00:00:00 2001 +From 6ec375eaafc43a2b3c30a0e0e49447d231d81a67 Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Tue, 9 May 2017 00:57:10 -0700 @@ -7,10 +7,10 @@ Date: Tue, 9 May 2017 00:57:10 -0700 1 file changed, 2 insertions(+) diff --git a/Makefile.am b/Makefile.am -index 8166d91..8e05e49 100644 +index 8568dd2..5efc91e 100644 --- a/Makefile.am +++ b/Makefile.am -@@ -2,6 +2,8 @@ +@@ -3,6 +3,8 @@ ACLOCAL_AMFLAGS = -I acinclude lib_LTLIBRARIES = libSDL2_ttf.la diff --git a/meta-oe/recipes-graphics/libsdl/libsdl2-ttf_2.0.15.bb b/meta-oe/recipes-graphics/libsdl/libsdl2-ttf_2.0.15.bb deleted file mode 100644 index 0fd9916e9a..0000000000 --- a/meta-oe/recipes-graphics/libsdl/libsdl2-ttf_2.0.15.bb +++ /dev/null @@ -1,29 +0,0 @@ -SUMMARY = "Simple DirectMedia Layer truetype font library" -SECTION = "libs" -DEPENDS = "virtual/libsdl2 freetype virtual/libgl" -LICENSE = "Zlib" -LIC_FILES_CHKSUM = "file://COPYING.txt;md5=4bb27d550fdafcd8f8e4fb8cbb2775ef" - -SRC_URI = " \ - http://www.libsdl.org/projects/SDL_ttf/release/SDL2_ttf-${PV}.tar.gz \ - file://automake_foreign.patch \ -" -SRC_URI[md5sum] = "04fe06ff7623d7bdcb704e82f5f88391" -SRC_URI[sha256sum] = "a9eceb1ad88c1f1545cd7bd28e7cbc0b2c14191d40238f531a15b01b1b22cd33" - -S = "${WORKDIR}/SDL2_ttf-${PV}" - -inherit autotools pkgconfig features_check - -# links to libGL.so -REQUIRED_DISTRO_FEATURES += "opengl" - -do_configure:prepend() { - # Removing these files fixes a libtool version mismatch. - MACROS="libtool.m4 lt~obsolete.m4 ltoptions.m4 ltsugar.m4 ltversion.m4" - - for i in ${MACROS}; do - rm -f ${S}/acinclude/$i - done -} -ASNEEDED = "" 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 new file mode 100644 index 0000000000..513b411448 --- /dev/null +++ b/meta-oe/recipes-graphics/libsdl/libsdl2-ttf_2.0.18.bb @@ -0,0 +1,27 @@ +SUMMARY = "Simple DirectMedia Layer truetype font library" +SECTION = "libs" +DEPENDS = "virtual/libsdl2 freetype virtual/libgl" +LICENSE = "Zlib" +LIC_FILES_CHKSUM = "file://COPYING.txt;md5=e98cfd01ca78f683e9d035795810ce87" + +SRC_URI = "http://www.libsdl.org/projects/SDL_ttf/release/SDL2_ttf-${PV}.tar.gz \ + file://automake_foreign.patch \ + " +SRC_URI[sha256sum] = "7234eb8883514e019e7747c703e4a774575b18d435c22a4a29d068cb768a2251" + +S = "${WORKDIR}/SDL2_ttf-${PV}" + +inherit autotools pkgconfig features_check + +# links to libGL.so +REQUIRED_DISTRO_FEATURES += "opengl" + +do_configure:prepend() { + # Removing these files fixes a libtool version mismatch. + MACROS="libtool.m4 lt~obsolete.m4 ltoptions.m4 ltsugar.m4 ltversion.m4" + + for i in ${MACROS}; do + rm -f ${S}/acinclude/$i + done +} +ASNEEDED = "" -- cgit 1.2.3-korg