1
0
mirror of https://github.com/SerenityOS/serenity synced 2024-07-03 10:28:43 +00:00
serenity/Ports/fontconfig/package.sh

25 lines
691 B
Bash
Executable File

#!/usr/bin/env -S bash ../.port_include.sh
port='fontconfig'
version='2.14.2'
depends=(
'freetype'
'libxml2'
)
files=(
"https://www.freedesktop.org/software/fontconfig/release/fontconfig-${version}.tar.xz#dba695b57bce15023d2ceedef82062c2b925e51f5d4cc4aef736cf13f60a468b"
)
useconfigure='true'
use_fresh_config_sub='true'
configopts=(
"--with-sysroot=${SERENITY_INSTALL_ROOT}"
'--prefix=/usr/local'
'--disable-static'
'--enable-shared'
'--enable-libxml2'
'LDFLAGS=-ldl -lxml2'
)
export CFLAGS="-I${SERENITY_INSTALL_ROOT}/usr/local/include/libxml2"
export LIBXML2_CFLAGS="-I${SERENITY_INSTALL_ROOT}/usr/local/include/libxml2/"
export LIBXML2_LIBS='-lxml2'