libass.mk 1.2 KB

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