From 7e1f413a89dffb76ce6347eb6fe0ef62220c3ff9 Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Fri, 4 Jun 2021 23:19:15 +0200 Subject: [PATCH] Ports: Build shared library for freetype --- Ports/freetype/package.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Ports/freetype/package.sh b/Ports/freetype/package.sh index d5048c99fa6..192ddfef676 100755 --- a/Ports/freetype/package.sh +++ b/Ports/freetype/package.sh @@ -5,3 +5,9 @@ useconfigure=true files="https://download.savannah.gnu.org/releases/freetype/freetype-${version}.tar.gz freetype-${version}.tar.gz 5eab795ebb23ac77001cfb68b7d4d50b5d6c7469247b0b01b2c953269f658dac" auth_type=sha256 configopts="--with-brotli=no --with-bzip2=no --with-zlib=no --with-harfbuzz=no --with-png=no" + +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 +}