diff --git a/Ports/AvailablePorts.md b/Ports/AvailablePorts.md index 506d38ced1..b7f6631d76 100644 --- a/Ports/AvailablePorts.md +++ b/Ports/AvailablePorts.md @@ -21,6 +21,7 @@ Please make sure to keep this list up to date when adding and updating ports. :^ | [`editline`](editline/) | Minix Editline | 1.17.1 | https://troglobit.com/projects/editline/ | | [`figlet`](figlet/) | FIGlet | 2.2.5 | http://www.figlet.org/ | | [`flex`](flex/) | flex | 2.6.4 | https://github.com/westes/flex | +| [`freetype`](freetype/) | FreeType | 2.10.4 | https://www.freetype.org/ | | [`frotz`](frotz/) | Frotz | | https://gitlab.com/DavidGriffith/frotz | | [`gcc`](gcc/) | GNU Compiler Collection | 10.2.0 | https://gcc.gnu.org/ | | [`git`](git/) | Git | 2.26.0 | https://git-scm.com/ | diff --git a/Ports/freetype/package.sh b/Ports/freetype/package.sh new file mode 100755 index 0000000000..3caa9a3030 --- /dev/null +++ b/Ports/freetype/package.sh @@ -0,0 +1,7 @@ +#!/usr/bin/env -S bash ../.port_include.sh +port=freetype +version=2.10.4 +useconfigure=true +files="https://download.savannah.gnu.org/releases/freetype/freetype-${version}.tar.gz freetype-${version}.tar.gz" +workdir="freetype-$version" +configopts="--with-brotli=no --with-bzip2=no --with-zlib=no --with-harfbuzz=no --with-png=no" diff --git a/Ports/freetype/patches/configure.patch b/Ports/freetype/patches/configure.patch new file mode 100644 index 0000000000..ad8d0a6dc4 --- /dev/null +++ b/Ports/freetype/patches/configure.patch @@ -0,0 +1,12 @@ +diff -ru freetype-2.10.4/builds/unix/config.sub freetype-2.10.4-patched/builds/unix/config.sub +--- freetype-2.10.4/builds/unix/config.sub 2020-10-20 07:15:01.000000000 +0200 ++++ freetype-2.10.4-patched/builds/unix/config.sub 2021-03-05 21:50:35.776894354 +0100 +@@ -1690,7 +1690,7 @@ + # Now accept the basic system types. + # The portable systems comes first. + # Each alternative MUST end in a * to match a version number. +- gnu* | android* | bsd* | mach* | minix* | genix* | ultrix* | irix* \ ++ gnu* | android* | bsd* | mach* | minix* | genix* | ultrix* | serenity* | irix* \ + | *vms* | esix* | aix* | cnk* | sunos | sunos[34]* \ + | hpux* | unos* | osf* | luna* | dgux* | auroraux* | solaris* \ + | sym* | plan9* | psp* | sim* | xray* | os68k* | v88r* \