kumquat-buildroot/package/libhttpparser/libhttpparser.mk
Pierre-Jean Texier 37a5ffc275 package/libhttpparser: bump to version 2.9.4
This includes the following changes:

2343fd6 v2.9.4
714cbb2 Fix ABI breakage
1c02cb9 Correct test name and numbering

And update hash file formatting (2 spaces).

Signed-off-by: Pierre-Jean Texier <pjtexier@koncepto.io>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
2020-04-12 12:28:06 +02:00

36 lines
1.1 KiB
Makefile

################################################################################
#
# libhttpparser
#
################################################################################
LIBHTTPPARSER_VERSION = 2.9.4
LIBHTTPPARSER_SITE = $(call github,nodejs,http-parser,v$(LIBHTTPPARSER_VERSION))
LIBHTTPPARSER_INSTALL_STAGING = YES
LIBHTTPPARSER_LICENSE = MIT
LIBHTTPPARSER_LICENSE_FILES = LICENSE-MIT
define LIBHTTPPARSER_BUILD_CMDS
$(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D) library package
endef
define LIBHTTPPARSER_INSTALL_STAGING_CMDS
$(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D) PREFIX=$(STAGING_DIR)/usr install
$(INSTALL) -D -m 0644 $(@D)/libhttp_parser.a $(STAGING_DIR)/usr/lib/libhttp_parser.a
endef
define LIBHTTPPARSER_INSTALL_TARGET_CMDS
$(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D) PREFIX=$(TARGET_DIR)/usr install
endef
define HOST_LIBHTTPPARSER_BUILD_CMDS
$(MAKE) $(HOST_CONFIGURE_OPTS) -C $(@D) library package
endef
define HOST_LIBHTTPPARSER_INSTALL_CMDS
$(MAKE) $(HOST_CONFIGURE_OPTS) -C $(@D) PREFIX=$(HOST_DIR) install
endef
$(eval $(generic-package))
$(eval $(host-generic-package))