1
0
mirror of https://github.com/libretro/Lakka-LibreELEC.git synced 2024-11-24 07:56:21 +00:00
Lakka-LibreELEC/packages/x11/other/fontconfig/package.mk

38 lines
1.4 KiB
Makefile

# SPDX-License-Identifier: GPL-2.0-or-later
# Copyright (C) 2009-2016 Stephan Raue (stephan@openelec.tv)
# Copyright (C) 2019-present Team LibreELEC (https://libreelec.tv)
PKG_NAME="fontconfig"
PKG_VERSION="2.14.2"
PKG_SHA256="3ba2dd92158718acec5caaf1a716043b5aa055c27b081d914af3ccb40dce8a55"
PKG_LICENSE="OSS"
PKG_SITE="https://www.freedesktop.org/wiki/Software/fontconfig/"
PKG_URL="https://www.freedesktop.org/software/fontconfig/release/${PKG_NAME}-${PKG_VERSION}.tar.gz"
PKG_DEPENDS_TARGET="toolchain util-linux util-macros freetype libxml2 zlib expat"
PKG_LONGDESC="Fontconfig is a library for font customization and configuration."
PKG_TOOLCHAIN="configure"
PKG_CONFIGURE_OPTS_TARGET="--with-arch=${TARGET_ARCH} \
--with-cache-dir=/storage/.cache/fontconfig \
--with-default-fonts=/usr/share/fonts \
--without-add-fonts \
--disable-dependency-tracking \
--disable-docs \
--disable-rpath"
pre_configure_target() {
# ensure we dont use '-O3' optimization.
CFLAGS=$(echo ${CFLAGS} | sed -e "s|-O3|-O2|")
CXXFLAGS=$(echo ${CXXFLAGS} | sed -e "s|-O3|-O2|")
CFLAGS+=" -I${PKG_BUILD}"
CXXFLAGS+=" -I${PKG_BUILD}"
}
post_configure_target() {
libtool_remove_rpath libtool
}
post_makeinstall_target() {
rm -rf ${INSTALL}/usr/bin
}