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>
90 lines
2.9 KiB
Makefile
90 lines
2.9 KiB
Makefile
################################################################################
|
|
#
|
|
# gutenprint
|
|
#
|
|
################################################################################
|
|
|
|
GUTENPRINT_VERSION_MAJOR = 5.2
|
|
GUTENPRINT_VERSION = $(GUTENPRINT_VERSION_MAJOR).14
|
|
GUTENPRINT_SITE = http://downloads.sourceforge.net/project/gimp-print/gutenprint-$(GUTENPRINT_VERSION_MAJOR)/$(GUTENPRINT_VERSION)
|
|
GUTENPRINT_SOURCE = gutenprint-$(GUTENPRINT_VERSION).tar.bz2
|
|
GUTENPRINT_LICENSE = GPL-2.0+
|
|
GUTENPRINT_LICENSE_FILES = COPYING
|
|
GUTENPRINT_CPE_ID_VALID = YES
|
|
|
|
# Needed, as we touch Makefile.am
|
|
GUTENPRINT_AUTORECONF = YES
|
|
|
|
# Needed by autoreconf
|
|
define GUTENPRINT_CREATE_M4_DIR
|
|
mkdir -p $(@D)/m4local
|
|
endef
|
|
GUTENPRINT_POST_PATCH_HOOKS += GUTENPRINT_CREATE_M4_DIR
|
|
HOST_GUTENPRINT_POST_PATCH_HOOKS += GUTENPRINT_CREATE_M4_DIR
|
|
|
|
GUTENPRINT_DEPENDENCIES = \
|
|
cups host-pkgconf \
|
|
$(if $(BR2_PACKAGE_LIBICONV),libiconv) \
|
|
$(if $(BR2_PACKAGE_LIBUSB),libusb)
|
|
|
|
# host-gutenprint is needed to generate XML as part of compilation
|
|
# the program that generates the xml also links against libgutenprint
|
|
# so we need to build both a host package and a target package
|
|
GUTENPRINT_DEPENDENCIES += host-gutenprint
|
|
|
|
GUTENPRINT_CONF_ENV = \
|
|
ac_cv_path_CUPS_CONFIG=$(STAGING_DIR)/usr/bin/cups-config \
|
|
ac_cv_path_IJS_CONFIG=""
|
|
|
|
GUTENPRINT_CONF_OPTS = \
|
|
--disable-libgutenprintui2 \
|
|
--disable-samples \
|
|
--without-doc \
|
|
--without-gimp2 \
|
|
--disable-escputil \
|
|
--disable-test \
|
|
--disable-testpattern \
|
|
--with-cups="/usr" \
|
|
--with-sysroot="$(STAGING_DIR)" \
|
|
--disable-cups-ppds
|
|
|
|
# USE_PREGEN_XMLI18N_TMP_H is added by our patch
|
|
GUTENPRINT_MAKE_ENV = BR2_USE_PREGEN_XMLI18N_TMP_H=$(HOST_DIR)/include/xmli18n-tmp.h
|
|
|
|
HOST_GUTENPRINT_DEPENDENCIES = host-pkgconf
|
|
# The host-gutenprint shall create the required header
|
|
HOST_GUTENPRINT_MAKE_ENV =
|
|
|
|
# Even with --without-cups, gutenprint will still add the output of
|
|
# cups-config --cflags / --ldflags to it's compiler/linker flags if
|
|
# available on host.
|
|
# Notice: Because of the configure logic, it needs to be set to the
|
|
# empty string to to disable this, not just to /bin/false like elsewhere.
|
|
HOST_GUTENPRINT_CONF_ENV = ac_cv_path_CUPS_CONFIG=''
|
|
|
|
HOST_GUTENPRINT_CONF_OPTS = \
|
|
--disable-libgutenprintui2 \
|
|
--disable-samples \
|
|
--without-gimp2 \
|
|
--without-doc \
|
|
--without-foomatic \
|
|
--without-foomatic3 \
|
|
--disable-escputil \
|
|
--disable-test \
|
|
--disable-testpattern \
|
|
--without-cups
|
|
|
|
define HOST_GUTENPRINT_POST_BUILD_INSTAL_TMP_HEADER
|
|
cp $(@D)/src/xml/xmli18n-tmp.h $(HOST_DIR)/include
|
|
endef
|
|
HOST_GUTENPRINT_POST_BUILD_HOOKS += HOST_GUTENPRINT_POST_BUILD_INSTAL_TMP_HEADER
|
|
|
|
define GUTENPRINT_POST_INSTALL_TARGET_FIXUP
|
|
mkdir -p $(TARGET_DIR)/usr/share/gutenprint/5.2
|
|
cp -rf $(HOST_DIR)/share/gutenprint/5.2/xml $(TARGET_DIR)/usr/share/gutenprint/5.2
|
|
endef
|
|
GUTENPRINT_POST_INSTALL_TARGET_HOOKS += GUTENPRINT_POST_INSTALL_TARGET_FIXUP
|
|
|
|
$(eval $(autotools-package))
|
|
$(eval $(host-autotools-package))
|