PKG_NAME = libass
PKG_VERS = 0.17.4
PKG_EXT = tar.xz
PKG_DIST_NAME = $(PKG_NAME)-$(PKG_VERS).$(PKG_EXT)
PKG_DIST_SITE = https://github.com/libass/libass/releases/download/$(PKG_VERS)
PKG_DIR = $(PKG_NAME)-$(PKG_VERS)

DEPENDS = cross/freetype cross/fribidi cross/fontconfig cross/harfbuzz cross/libunibreak

# Needs gcc >= 4.8: C++11 features unavailable before gcc 4.8.
MIN_GCC_VERSION = 4.8

HOMEPAGE = https://github.com/libass/libass
COMMENT  = libass is a portable subtitle renderer for the ASS/SSA (Advanced Substation Alpha/Substation Alpha) subtitle format.
LICENSE  = ICS

GNU_CONFIGURE = 1
CONFIGURE_ARGS  = --disable-static
CONFIGURE_ARGS += --enable-fontconfig
CONFIGURE_ARGS += --enable-libunibreak
ADDITIONAL_CFLAGS = -O

# While meson is supported it does
# not allow to build shared library

include ../../mk/spksrc.cross-cc.mk
