summaryrefslogtreecommitdiffstats
path: root/rules/libndp.make
blob: 11c327ad3cb688cb9ed684c995da1ba56fba885b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# -*-makefile-*-
#
# Copyright (C) 2015 by Juergen Borleis <jbe@pengutronix.de>
#
# For further information about the PTXdist project and license conditions
# see the README file.
#

#
# We provide this package
#
PACKAGES-$(PTXCONF_LIBNDP) += libndp

#
# Paths and names
#
LIBNDP_VERSION	:= 1.6
LIBNDP_MD5	:= 1e54d26bcb4a4110bc3f90c5dd04f1a7
LIBNDP		:= libndp-$(LIBNDP_VERSION)
LIBNDP_SUFFIX	:= tar.gz
LIBNDP_URL	:= http://libndp.org/files/$(LIBNDP).$(LIBNDP_SUFFIX)
LIBNDP_SOURCE	:= $(SRCDIR)/$(LIBNDP).$(LIBNDP_SUFFIX)
LIBNDP_DIR	:= $(BUILDDIR)/$(LIBNDP)
LIBNDP_LICENSE	:= LGPL-2.1-only

# ----------------------------------------------------------------------------
# Prepare
# ----------------------------------------------------------------------------

LIBNDP_CONF_TOOL	:= autoconf
LIBNDP_CONF_OPT		:= \
	$(CROSS_AUTOCONF_USR) \
	--disable-logging \
	--disable-debug

# ----------------------------------------------------------------------------
# Target-Install
# ----------------------------------------------------------------------------

$(STATEDIR)/libndp.targetinstall:
	@$(call targetinfo)

	@$(call install_init, libndp)
	@$(call install_fixup, libndp,PRIORITY,optional)
	@$(call install_fixup, libndp,SECTION,base)
	@$(call install_fixup, libndp,AUTHOR,"Juergen Borleis <jbe@pengutronix.de>")
	@$(call install_fixup, libndp,DESCRIPTION,"Neighbor Discovery Protocol support")

	@$(call install_lib, libndp, 0, 0, 0644, libndp)
ifdef PTXCONF_LIBNDP_NDPTOOL
	@$(call install_copy, libndp, 0, 0, 0755, -, /usr/bin/ndptool)
endif
	@$(call install_finish, libndp)

	@$(call touch)

# vim: syntax=make