summaryrefslogtreecommitdiffstats
path: root/package/libhttpparser/libhttpparser.mk
diff options
context:
space:
mode:
authorPeter Korsgaard <peter@korsgaard.com>2015-09-01 09:59:08 +0200
committerPeter Korsgaard <peter@korsgaard.com>2015-09-01 09:59:08 +0200
commitcfc70a48027b1b56231df62a30a7da888f33e3ce (patch)
treecb2e856d51f1a79822a2b21d8c2cbaea55ae170d /package/libhttpparser/libhttpparser.mk
parent70874e321dbd50203187c41214cb888507cd6df1 (diff)
parentaa016797444017d4379a139e39697e38ed2e2357 (diff)
downloadbuildroot-cfc70a48027b1b56231df62a30a7da888f33e3ce.tar.gz
buildroot-cfc70a48027b1b56231df62a30a7da888f33e3ce.zip
Merge branch 'next'
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Diffstat (limited to 'package/libhttpparser/libhttpparser.mk')
-rw-r--r--package/libhttpparser/libhttpparser.mk26
1 files changed, 26 insertions, 0 deletions
diff --git a/package/libhttpparser/libhttpparser.mk b/package/libhttpparser/libhttpparser.mk
new file mode 100644
index 0000000000..d6ec236650
--- /dev/null
+++ b/package/libhttpparser/libhttpparser.mk
@@ -0,0 +1,26 @@
+################################################################################
+#
+# libhttpparser
+#
+################################################################################
+
+LIBHTTPPARSER_VERSION = v2.5.0
+LIBHTTPPARSER_SITE = $(call github,joyent,http-parser,$(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
+
+$(eval $(generic-package))
OpenPOWER on IntegriCloud