kumquat-buildroot/package/norm/norm.mk
Peter Korsgaard 8012a86f5c package/norm: use external waf
Fixes:
http://autobuild.buildroot.net/results/ee1/ee15cadf8af10dee6c83b9726a034367e8ae81a7/

The bundled waf script is too old (2.0.7) for python >= 3.11 as it uses the
'U' modifier to open (universal newlines), which have been deprecated since
python 3.3 and finally removed in 3.11.

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2023-02-10 15:11:16 +01:00

28 lines
838 B
Makefile

################################################################################
#
# norm
#
################################################################################
NORM_VERSION = 1.5.8
NORM_SITE = https://github.com/USNavalResearchLaboratory/norm/releases/download/v$(NORM_VERSION)
NORM_SOURCE = src-norm-with-protolib-$(NORM_VERSION).tgz
NORM_INSTALL_STAGING = YES
NORM_LICENSE = NRL License
NORM_LICENSE_FILES = LICENSE.TXT
# The bundled waf script is too old for >= python3.11
NORM_NEEDS_EXTERNAL_WAF = YES
ifeq ($(BR2_PACKAGE_LIBNETFILTER_QUEUE),y)
NORM_DEPENDENCIES += libnetfilter_queue
endif
# install target doesn't install headers unfortunately...
define NORM_INSTALL_HEADERS
cp -f $(@D)/include/norm* $(STAGING_DIR)/usr/include
endef
NORM_POST_INSTALL_STAGING_HOOKS += NORM_INSTALL_HEADERS
$(eval $(waf-package))