diff options
author | Oliver Graute <oliver.graute@gmail.com> | 2015-02-20 13:55:16 +0100 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2015-03-18 14:16:01 +0100 |
commit | 31908d6e3c58a2189a2f5891920df66cdb78efe3 (patch) | |
tree | fe644117b5df35c94a9066d6803615955bc88b1b /rules/c-ares.make | |
parent | 673655b407332293364c4279fccefff1ede7d22b (diff) | |
download | ptxdist-31908d6e3c58a2189a2f5891920df66cdb78efe3.tar.gz ptxdist-31908d6e3c58a2189a2f5891920df66cdb78efe3.tar.xz |
c-ares add c-ares to ptxdist
This patch add c-ares to ptxdist, its a C library for async DNS requests
Signed-off-by: Oliver Graute <oliver.graute@neuhaus.de>
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'rules/c-ares.make')
-rw-r--r-- | rules/c-ares.make | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/rules/c-ares.make b/rules/c-ares.make new file mode 100644 index 000000000..2720dee9f --- /dev/null +++ b/rules/c-ares.make @@ -0,0 +1,61 @@ +# -*-makefile-*- +# +# Copyright (C) 2014 Dr. Neuhaus Telekommunikation GmbH, Hamburg Germany, Oliver Graute <oliver.graute@neuhaus.de> +# +# See CREDITS for details about who has contributed to this project. +# +# For further information about the PTXdist project and license conditions +# see the README file. +# + +# +# We provide this package +# +PACKAGES-$(PTXCONF_C_ARES) += c-ares + +# +# Paths and names +# +C_ARES_VERSION := 1.10.0 +C_ARES_MD5 := 1196067641411a75d3cbebe074fd36d8 +C_ARES := c-ares-$(C_ARES_VERSION) +C_ARES_SUFFIX := tar.gz +C_ARES_URL := http://c-ares.haxx.se/download/$(C_ARES).$(C_ARES_SUFFIX) +C_ARES_SOURCE := $(SRCDIR)/$(C_ARES).$(C_ARES_SUFFIX) +C_ARES_DIR := $(BUILDDIR)/$(C_ARES) +C_ARES_LICENSE := MIT + + +# ---------------------------------------------------------------------------- +# Prepare +# ---------------------------------------------------------------------------- + +# +# autoconf +# +C_ARES_CONF_TOOL := autoconf +C_ARES_CONF_OPT := \ + $(CROSS_AUTOCONF_USR) \ + --enable-nonblocking + +# ---------------------------------------------------------------------------- +# Target-Install +# ---------------------------------------------------------------------------- + +$(STATEDIR)/c-ares.targetinstall: + @$(call targetinfo) + + @$(call install_init, c-ares) + @$(call install_fixup, c-ares,PRIORITY,optional) + @$(call install_fixup, c-ares,SECTION,base) + @$(call install_fixup, c-ares,AUTHOR,"<oliver.graute@neuhaus.de>") + @$(call install_fixup, c-ares,DESCRIPTION,missing) + + @$(call install_lib, c-ares, 0, 0, 0644, libcares) + + @$(call install_finish, c-ares) + + + @$(call touch) + +# vim: syntax=make |