0518a98ac3
While the autotools infrastructure was using FOO_MAKE_OPT, generic packages were typically using FOO_MAKE_OPTS. This inconsistency becomes a problem when a new infrastructure is introduced that wants to make use of FOO_MAKE_OPT(S), and can live alongside either generic-package or autotools-package. The new infrastructure will have to choose between either OPT or OPTS, and thus rule out transparent usage by respectively generic packages or generic packages. An example of such an infrastructure is kconfig-package, which provides kconfig-related make targets. The OPTS variant is more logical, as there are typically multiple options. This patch renames all occurrences of FOO_MAKE_OPT in FOO_MAKE_OPTS. Sed command used: find * -type f | xargs sed -i 's#_MAKE_OPT\>#&S#g' Signed-off-by: Thomas De Schampheleire <thomas.de.schampheleire@gmail.com> Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
28 lines
960 B
Makefile
28 lines
960 B
Makefile
################################################################################
|
|
#
|
|
# setserial
|
|
#
|
|
################################################################################
|
|
|
|
SETSERIAL_VERSION = 2.17
|
|
SETSERIAL_PATCH = setserial_2.17-45.3.diff.gz
|
|
SETSERIAL_SOURCE = setserial_$(SETSERIAL_VERSION).orig.tar.gz
|
|
SETSERIAL_SITE = http://snapshot.debian.org/archive/debian/20131001T214925Z/pool/main/s/setserial
|
|
SETSERIAL_LICENSE = GPLv2
|
|
SETSERIAL_LICENSE_FILES = debian/copyright
|
|
# make all also builds setserial.cat which needs nroff
|
|
SETSERIAL_MAKE_OPTS = setserial
|
|
|
|
define SETSERIAL_APPLY_DEBIAN_PATCHES
|
|
# Touching gorhack.h is needed for the Debian patch 18 to work
|
|
if [ -d $(@D)/debian/patches ]; then \
|
|
touch $(@D)/gorhack.h; \
|
|
rm $(@D)/debian/patches/01_makefile.dpatch; \
|
|
support/scripts/apply-patches.sh $(@D) $(@D)/debian/patches *.dpatch; \
|
|
fi
|
|
endef
|
|
|
|
SETSERIAL_POST_PATCH_HOOKS += SETSERIAL_APPLY_DEBIAN_PATCHES
|
|
|
|
$(eval $(autotools-package))
|