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>
56 lines
1.4 KiB
Makefile
56 lines
1.4 KiB
Makefile
################################################################################
|
|
#
|
|
# gnuplot
|
|
#
|
|
################################################################################
|
|
|
|
GNUPLOT_VERSION = 5.4.10
|
|
GNUPLOT_SITE = http://downloads.sourceforge.net/project/gnuplot/gnuplot/$(GNUPLOT_VERSION)
|
|
GNUPLOT_LICENSE = gnuplot license (open source)
|
|
GNUPLOT_LICENSE_FILES = Copyright
|
|
GNUPLOT_CPE_ID_VALID = YES
|
|
|
|
GNUPLOT_AUTORECONF = YES
|
|
|
|
GNUPLOT_CONF_OPTS = \
|
|
--without-x \
|
|
--disable-raise-console \
|
|
--disable-mouse \
|
|
--without-tutorial \
|
|
--disable-demo \
|
|
--without-row-help \
|
|
--disable-history-file \
|
|
--disable-wxwidgets \
|
|
--without-lua \
|
|
--without-latex \
|
|
--without-cairo \
|
|
--without-qt
|
|
|
|
# relocation truncated to fit: R_68K_GOT16O
|
|
ifeq ($(BR2_m68k_cf),y)
|
|
GNUPLOT_CONF_ENV += CFLAGS="$(TARGET_CFLAGS) -mxgot"
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_GD)$(BR2_PACKAGE_LIBPNG),yy)
|
|
GNUPLOT_CONF_OPTS += --with-gd
|
|
GNUPLOT_DEPENDENCIES += host-pkgconf gd
|
|
else
|
|
GNUPLOT_CONF_OPTS += --without-gd
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_READLINE),y)
|
|
GNUPLOT_CONF_OPTS += --with-readline=gnu
|
|
GNUPLOT_DEPENDENCIES += readline
|
|
else
|
|
GNUPLOT_CONF_OPTS += --without-readline
|
|
endif
|
|
|
|
# Remove Javascript scripts, lua scripts, PostScript files
|
|
define GNUPLOT_REMOVE_UNNEEDED_FILES
|
|
$(RM) -rf $(TARGET_DIR)/usr/share/gnuplot
|
|
endef
|
|
|
|
GNUPLOT_POST_INSTALL_TARGET_HOOKS += GNUPLOT_REMOVE_UNNEEDED_FILES
|
|
|
|
$(eval $(autotools-package))
|