2015-08-27 22:54:56 +02:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# libhttpparser
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2018-04-30 22:25:33 +02:00
|
|
|
LIBHTTPPARSER_VERSION = v2.8.1
|
2015-12-01 13:15:19 +01:00
|
|
|
LIBHTTPPARSER_SITE = $(call github,nodejs,http-parser,$(LIBHTTPPARSER_VERSION))
|
2015-08-27 22:54:56 +02:00
|
|
|
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
|
|
|
|
|
2018-02-04 19:07:45 +01:00
|
|
|
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)/usr install
|
|
|
|
endef
|
|
|
|
|
2015-08-27 22:54:56 +02:00
|
|
|
$(eval $(generic-package))
|
2018-02-04 19:07:45 +01:00
|
|
|
$(eval $(host-generic-package))
|