c19cca0452
Now that we document _CPE_ID_VALID, and that it shall be used instead of setting a default value to one of the other _CPE_ID_* variables, change all of the existing packages to use it, to avoid any error when we later extend check-package to validate the sanity ofthe _CPE_ID_* variables. Mechanical change done within the reference container, running the new check in check-package, to report the CPE_ID errors: $ make check-package 2>/dev/null \ |awk '{ split($(1), a, ":"); fname = a[1] split($(2), a, "'\''"); val = a[2] new_var = $(8); gsub("_CPE_ID_.*", "_CPE_ID_VALID", new_var) printf("%s %s %s %s\n", fname, $(8), val, new_var) }' \ |while read fname var val new_var; do sed -r -i -e "s/${var}[[:space:]]*=[[:space:]]*${val}/${new_var} = YES/" "${fname}" done $ git diff -I'CPE_ID_(VENDOR|VALID)' [empty] Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr> Cc: Fabrice Fontaine <fontaine.fabrice@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
44 lines
1.2 KiB
Makefile
44 lines
1.2 KiB
Makefile
################################################################################
|
|
#
|
|
# libass
|
|
#
|
|
################################################################################
|
|
|
|
LIBASS_VERSION = 0.17.1
|
|
LIBASS_SOURCE = libass-$(LIBASS_VERSION).tar.xz
|
|
# Do not use the github helper here, the generated tarball is *NOT*
|
|
# the same as the one uploaded by upstream for the release.
|
|
LIBASS_SITE = https://github.com/libass/libass/releases/download/$(LIBASS_VERSION)
|
|
LIBASS_INSTALL_STAGING = YES
|
|
LIBASS_LICENSE = ISC
|
|
LIBASS_LICENSE_FILES = COPYING
|
|
LIBASS_CPE_ID_VALID = YES
|
|
LIBASS_DEPENDENCIES = \
|
|
host-pkgconf \
|
|
freetype \
|
|
harfbuzz \
|
|
libfribidi \
|
|
$(if $(BR2_PACKAGE_LIBICONV),libiconv)
|
|
|
|
# configure: WARNING: Install nasm for a significantly faster libass build.
|
|
# only for Intel archs
|
|
ifeq ($(BR2_i386)$(BR2_x86_64),y)
|
|
LIBASS_DEPENDENCIES += host-nasm
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_FONTCONFIG),y)
|
|
LIBASS_DEPENDENCIES += fontconfig
|
|
LIBASS_CONF_OPTS += --enable-fontconfig
|
|
else
|
|
LIBASS_CONF_OPTS += --disable-fontconfig --disable-require-system-font-provider
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBUNIBREAK),y)
|
|
LIBASS_DEPENDENCIES += libunibreak
|
|
LIBASS_CONF_OPTS += --enable-libunibreak
|
|
else
|
|
LIBASS_CONF_OPTS += --disable-libunibreak
|
|
endif
|
|
|
|
$(eval $(autotools-package))
|