0
0
mirror of https://github.com/libretro/Lakka-LibreELEC.git synced 2024-12-15 05:09:55 +00:00
2024-04-03 00:50:36 +02:00

37 lines
1.4 KiB
Makefile

# SPDX-License-Identifier: GPL-2.0-or-later
# Copyright (C) 2009-2016 Stephan Raue (stephan@openelec.tv)
# Copyright (C) 2018-present Team LibreELEC (https://libreelec.tv)
PKG_NAME="libass"
PKG_VERSION="0.17.1"
PKG_SHA256="f0da0bbfba476c16ae3e1cfd862256d30915911f7abaa1b16ce62ee653192784"
if [ "${DISTRO}" = "Lakka" ]; then
PKG_VERSION="0.14.0"
PKG_SHA256="881f2382af48aead75b7a0e02e65d88c5ebd369fe46bc77d9270a94aa8fd38a2"
fi
PKG_LICENSE="BSD"
PKG_SITE="https://github.com/libass/libass"
PKG_URL="https://github.com/libass/libass/releases/download/${PKG_VERSION}/${PKG_NAME}-${PKG_VERSION}.tar.xz"
PKG_DEPENDS_TARGET="toolchain freetype fontconfig fribidi harfbuzz"
PKG_LONGDESC="A portable subtitle renderer for the ASS/SSA (Advanced Substation Alpha/Substation Alpha) subtitle format."
PKG_CONFIGURE_OPTS_TARGET="--disable-test \
--enable-fontconfig \
--disable-libunibreak \
--disable-silent-rules \
--with-gnu-ld"
if [ "${DISTRO}" = "Lakka" ]; then
PKG_CONFIGURE_OPTS_TARGET+=" --disable-harfbuzz"
PKG_DEPENDS_TARGET="${PKG_DEPENDS_TARGET//harfbuzz/}"
fi
if [ ${TARGET_ARCH} = "x86_64" -o "${TARGET_ARCH}" = "i386" ]; then
PKG_DEPENDS_TARGET+=" nasm:host"
PKG_CONFIGURE_OPTS_TARGET+=" --enable-asm"
fi
post_configure_target() {
libtool_remove_rpath libtool
}