Ports/freetype: Update freetype to version 2.12.1

This commit is contained in:
EWouters 2022-06-03 12:58:51 +02:00 committed by Linus Groh
parent b0f8f4ca7d
commit b3cf5a5df7
2 changed files with 10 additions and 11 deletions

View file

@ -56,7 +56,7 @@ This list is also available at [ports.serenityos.net](https://ports.serenityos.n
| [`fotaq`](fotaq/) | Flight of the Amazon Queen | 1.0 | https://www.scummvm.org/games/#games-queen |
| [`freeciv`](freeciv/) | Freeciv | 3.0.0-beta2 | http://freeciv.org/ |
| [`freedink`](freedink/) | FreeDink | 109.6 | https://www.gnu.org/software/freedink/ |
| [`freetype`](freetype/) | FreeType | 2.12.0 | https://www.freetype.org/ |
| [`freetype`](freetype/) | FreeType | 2.12.1 | https://www.freetype.org/ |
| [`frotz`](frotz/) | Frotz | 2.53 | https://gitlab.com/DavidGriffith/frotz |
| [`gawk`](gawk/) | GNU awk | 5.1.1 | https://www.gnu.org/software/gawk/ |
| [`gcc`](gcc/) | GNU Compiler Collection | 12.1.0 | https://gcc.gnu.org/ |

View file

@ -1,16 +1,15 @@
#!/usr/bin/env -S bash ../.port_include.sh
port=freetype
version=2.12.0
useconfigure=true
use_fresh_config_sub=true
port='freetype'
version='2.12.1'
files="https://download.savannah.gnu.org/releases/freetype/freetype-${version}.tar.gz freetype-${version}.tar.gz efe71fd4b8246f1b0b1b9bfca13cfff1c9ad85930340c27df469733bbb620938"
auth_type='sha256'
useconfigure='true'
use_fresh_config_sub='true'
config_sub_paths=("builds/unix/config.sub")
files="https://download.savannah.gnu.org/releases/freetype/freetype-${version}.tar.gz freetype-${version}.tar.gz 7940a46eeb0255baaa87c553d72778c4f8daa2b8888c8e2a05766a2a8686740c"
auth_type=sha256
configopts=("--with-brotli=no" "--with-bzip2=no" "--with-zlib=no" "--with-harfbuzz=no" "--with-png=no")
config_sub_paths=("builds/unix/config.sub")
install() {
run make DESTDIR=${SERENITY_INSTALL_ROOT} "${installopts[@]}" install
${CC} -shared -o ${SERENITY_INSTALL_ROOT}/usr/local/lib/libfreetype.so -Wl,-soname,libfreetype.so -Wl,--whole-archive ${SERENITY_INSTALL_ROOT}/usr/local/lib/libfreetype.a -Wl,--no-whole-archive
rm -f ${SERENITY_INSTALL_ROOT}/usr/local/lib/libfreetype.la
run make DESTDIR="${SERENITY_INSTALL_ROOT}" "${installopts[@]}" install
${CC} -shared -o "${SERENITY_INSTALL_ROOT}/usr/local/lib/libfreetype.so" -Wl,-soname,libfreetype.so -Wl,--whole-archive "${SERENITY_INSTALL_ROOT}/usr/local/lib/libfreetype.a" -Wl,--no-whole-archive
rm -f "${SERENITY_INSTALL_ROOT}/usr/local/lib/libfreetype.la"
}