Skip to content

Commit

Permalink
3DS: Downgrade FreeType to version 2.6.5
Browse files Browse the repository at this point in the history
  • Loading branch information
ccawley2011 authored and lephilousophe committed Apr 13, 2024
1 parent 9f9d152 commit fdb5afe
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 1 deletion.
1 change: 1 addition & 0 deletions check-versions/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,7 @@
'repository': 'https://github.com/marius851000/bannertool.git',
'branch': 'master',
},
('./toolchains/devkit3ds/packages/freetype/build.sh', 'FREETYPE'): 'ignore',

('./toolchains/devkitarm/Dockerfile.m4', 'DEVKITARM'): {
'check': 'docker tag',
Expand Down
3 changes: 2 additions & 1 deletion toolchains/devkit3ds/Dockerfile.m4
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,8 @@ helpers_package(libvpx, --disable-multithread)

# curl is already installed in original toolchain

# freetype is already installed in original toolchain
# freetype is already installed in original toolchain, but we need an older version
local_package(freetype)

# fribidi is already installed in original toolchain

Expand Down
22 changes: 22 additions & 0 deletions toolchains/devkit3ds/packages/freetype/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#! /bin/sh

# Newer versions of FreeType allocate too much memory on the stack
FREETYPE_VERSION=2.6.5

PACKAGE_DIR=$(CDPATH= cd -- "$(dirname -- "$0")" && pwd)
HELPERS_DIR=$PACKAGE_DIR/../..
. $HELPERS_DIR/functions.sh

do_make_bdir

# GPG key of Werner Lemberg <wl@gnu.org>
gpg --keyserver hkps://keyserver.ubuntu.com --recv-keys 0xC1A60EACE707FDA5
do_http_fetch freetype "http://download.savannah.gnu.org/releases/freetype/freetype-old/freetype-${FREETYPE_VERSION}.tar.bz2" \
'tar xjf' "gpgurl:http://download.savannah.gnu.org/releases/freetype/freetype-old/freetype-${FREETYPE_VERSION}.tar.bz2.sig"
rm -Rf $HOME/.gnupg

do_configure
do_make
do_make install

do_clean_bdir

0 comments on commit fdb5afe

Please sign in to comment.