Skip to content

Commit

Permalink
ftgl: Upgrade to 2.4.0
Browse files Browse the repository at this point in the history
- Switch to git fork which has all the patches
- Fix build with freetype 2.13.3

Signed-off-by: Khem Raj <[email protected]>
  • Loading branch information
kraj committed Aug 21, 2024
1 parent 21a87a4 commit fc0264f
Show file tree
Hide file tree
Showing 6 changed files with 53 additions and 141 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
From d11219b681a080c71e33c51c9404c28b134e1745 Mon Sep 17 00:00:00 2001
From: Khem Raj <[email protected]>
Date: Wed, 21 Aug 2024 13:50:34 -0700
Subject: [PATCH] Fix type mismatch with latest FreeType

This change is intrumented due to a type change in freetype [1] with release 2.13.3

Fixes
| ../../git/src/FTVectoriser.cpp:171:15: error: cannot initialize a variable of type 'char *' with an rvalue of type 'unsigned char *'
| 171 | char* tagList = &outline.tags[startIndex];
| | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~

[1] https://gitlab.freedesktop.org/freetype/freetype/-/commit/044d142be7b6a93b6940367a1bc5847451ff4775

Upstream-Status: Submitted [https://github.com/frankheckenbach/ftgl/pull/19]
Signed-off-by: Khem Raj <[email protected]>
---
src/FTVectoriser.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/FTVectoriser.cpp b/src/FTVectoriser.cpp
index 26e7da8..3610215 100644
--- a/src/FTVectoriser.cpp
+++ b/src/FTVectoriser.cpp
@@ -168,7 +168,7 @@ void FTVectoriser::ProcessContours()
for(int i = 0; i < ftContourCount; ++i)
{
FT_Vector* pointList = &outline.points[startIndex];
- char* tagList = &outline.tags[startIndex];
+ char* tagList = (char*)&outline.tags[startIndex];

endIndex = outline.contours[i];
contourLength = (endIndex - startIndex) + 1;

This file was deleted.

This file was deleted.

27 changes: 0 additions & 27 deletions meta-oe/recipes-graphics/ftgl/ftgl_2.1.3-rc5.bb

This file was deleted.

20 changes: 20 additions & 0 deletions meta-oe/recipes-graphics/ftgl/ftgl_2.4.0.bb
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
SUMMARY = "OpenGL frontend to Freetype 2"
HOMEPAGE = "https://sourceforge.net/projects/ftgl/"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://COPYING;md5=527a83e92c7bf363025380eec05df6e4"

inherit autotools pkgconfig features_check

REQUIRED_DISTRO_FEATURES = "opengl x11"

DEPENDS += " \
freetype \
freeglut \
"
SRCREV = "ddc77166651a71ae037ef3129a285440aa559b2d"
PV .= "+git"

SRC_URI = "git://github.com/frankheckenbach/ftgl;protocol=https;branch=master \
file://0001-Fix-type-mismatch-with-latest-FreeType.patch"

S = "${WORKDIR}/git"

0 comments on commit fc0264f

Please sign in to comment.