xref: /OK3568_Linux_fs/buildroot/package/libass/libass.mk (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1################################################################################
2#
3# libass
4#
5################################################################################
6
7LIBASS_VERSION = 0.15.2
8LIBASS_SOURCE = libass-$(LIBASS_VERSION).tar.xz
9# Do not use the github helper here, the generated tarball is *NOT*
10# the same as the one uploaded by upstream for the release.
11LIBASS_SITE = https://github.com/libass/libass/releases/download/$(LIBASS_VERSION)
12LIBASS_INSTALL_STAGING = YES
13LIBASS_LICENSE = ISC
14LIBASS_LICENSE_FILES = COPYING
15LIBASS_CPE_ID_VENDOR = libass_project
16LIBASS_DEPENDENCIES = \
17	host-pkgconf \
18	freetype \
19	harfbuzz \
20	libfribidi \
21	$(if $(BR2_PACKAGE_LIBICONV),libiconv)
22
23# configure: WARNING: Install nasm for a significantly faster libass build.
24# only for Intel archs
25ifeq ($(BR2_i386)$(BR2_x86_64),y)
26LIBASS_DEPENDENCIES += host-nasm
27endif
28
29ifeq ($(BR2_PACKAGE_FONTCONFIG),y)
30LIBASS_DEPENDENCIES += fontconfig
31LIBASS_CONF_OPTS += --enable-fontconfig
32else
33LIBASS_CONF_OPTS += --disable-fontconfig --disable-require-system-font-provider
34endif
35
36$(eval $(autotools-package))
37