summaryrefslogtreecommitdiff
path: root/Ports
diff options
context:
space:
mode:
authorGunnar Beutner <gbeutner@serenityos.org>2021-06-04 23:19:15 +0200
committerAndreas Kling <kling@serenityos.org>2021-06-05 10:56:37 +0200
commit7e1f413a89dffb76ce6347eb6fe0ef62220c3ff9 (patch)
treeded07ea3eb5915a8f9361a76c02d99dc0f760c0e /Ports
parent6f0092edb84ee389d69edf32ffa8ae59b4f2bdea (diff)
downloadserenity-7e1f413a89dffb76ce6347eb6fe0ef62220c3ff9.zip
Ports: Build shared library for freetype
Diffstat (limited to 'Ports')
-rwxr-xr-xPorts/freetype/package.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/Ports/freetype/package.sh b/Ports/freetype/package.sh
index d5048c99fa..192ddfef67 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
+}