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>
44 lines
1.1 KiB
Makefile
44 lines
1.1 KiB
Makefile
################################################################################
|
|
#
|
|
# whois
|
|
#
|
|
################################################################################
|
|
|
|
WHOIS_VERSION = 5.1.3
|
|
WHOIS_SITE = $(BR2_DEBIAN_MIRROR)/debian/pool/main/w/whois
|
|
WHOIS_SOURCE = whois_$(WHOIS_VERSION).tar.xz
|
|
# take precedence over busybox implementation
|
|
WHOIS_DEPENDENCIES = host-gettext $(if $(BR2_PACKAGE_BUSYBOX),busybox)
|
|
WHOIS_MAKE_ENV = $(TARGET_MAKE_ENV)
|
|
WHOIS_MAKE_OPTS = CC="$(TARGET_CC)" CFLAGS="$(TARGET_CFLAGS)" \
|
|
LIBS="$(WHOIS_EXTRA_LIBS)"
|
|
WHOIS_LICENSE = GPLv2+
|
|
WHOIS_LICENSE_FILES = COPYING
|
|
|
|
ifeq ($(BR2_NEEDS_GETTEXT),y)
|
|
WHOIS_DEPENDENCIES += gettext
|
|
WHOIS_EXTRA_LIBS += -lintl
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBICONV),y)
|
|
WHOIS_DEPENDENCIES += libiconv
|
|
WHOIS_EXTRA_LIBS += -liconv
|
|
WHOIS_MAKE_ENV += HAVE_ICONV=1
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBIDN),y)
|
|
WHOIS_DEPENDENCIES += libidn
|
|
WHOIS_MAKE_ENV += HAVE_LIBIDN=1
|
|
endif
|
|
|
|
define WHOIS_BUILD_CMDS
|
|
$(WHOIS_MAKE_ENV) $(MAKE) $(WHOIS_MAKE_OPTS) -C $(@D)
|
|
endef
|
|
|
|
define WHOIS_INSTALL_TARGET_CMDS
|
|
$(WHOIS_MAKE_ENV) $(MAKE) $(WHOIS_MAKE_OPTS) \
|
|
BASEDIR="$(TARGET_DIR)" install -C $(@D)
|
|
endef
|
|
|
|
$(eval $(generic-package))
|