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>
31 lines
1.2 KiB
Makefile
31 lines
1.2 KiB
Makefile
################################################################################
|
|
#
|
|
# pv
|
|
#
|
|
################################################################################
|
|
|
|
PV_VERSION = 1.4.12
|
|
PV_SOURCE = pv-$(PV_VERSION).tar.bz2
|
|
PV_SITE = http://www.ivarch.com/programs/sources
|
|
PV_LICENSE = Artistic-2.0
|
|
PV_LICENSE_FILES = doc/COPYING
|
|
|
|
# pv configure script is somewhat stupid: if it cannot find the host
|
|
# gettext tool msgfmt, it concludes that gettext is not available, and
|
|
# provides its own minimal version. Unfortunately, this minimal
|
|
# version conflicts with the available target gettext. We fix this by
|
|
# ensuring that host-gettext is built if gettext support is enabled;
|
|
PV_DEPENDENCIES = $(if $(BR2_NEEDS_GETTEXT_IF_LOCALE),gettext host-gettext)
|
|
|
|
# While 'pv' uses autoconf, it does not use automake for its
|
|
# makefiles. It uses $(LD) $(LDFLAGS) to achieve partial linking, but
|
|
# using 'ld' directly doesn't work well with some toolchain
|
|
# configuration, as the ld default emulation may not necessarily be
|
|
# the correct one. By passing the below values for LD and LDFLAGS, we
|
|
# ensure that 'gcc' is used to do these partial linking steps.
|
|
PV_MAKE_OPTS = \
|
|
LD="$(TARGET_CC)" \
|
|
LDFLAGS="-Wl,-r -nostdlib"
|
|
|
|
$(eval $(autotools-package))
|