xref: /OK3568_Linux_fs/buildroot/package/pimd/pimd.mk (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1################################################################################
2#
3# pimd
4#
5################################################################################
6
7PIMD_VERSION = 2.3.2
8PIMD_SITE = https://github.com/troglobit/pimd/releases/download/$(PIMD_VERSION)
9
10PIMD_LICENSE = BSD-3-Clause
11PIMD_LICENSE_FILES = LICENSE LICENSE.mrouted
12
13ifeq ($(BR2_TOOLCHAIN_USES_UCLIBC)$(BR2_TOOLCHAIN_USES_MUSL),y)
14PIMD_CONF_OPTS += --embedded-libc
15endif
16
17# The configure script is not autoconf based, so we use the
18# generic-package infrastructure
19define PIMD_CONFIGURE_CMDS
20	(cd $(@D); \
21		$(TARGET_CONFIGURE_OPTS) \
22		$(TARGET_CONFIGURE_ARGS) \
23		./configure $(PIMD_CONF_OPTS) \
24	)
25endef
26
27define PIMD_BUILD_CMDS
28	$(TARGET_MAKE_ENV) $(MAKE) CROSS=$(TARGET_CROSS) \
29		CC=$(TARGET_CC) -C $(@D)
30endef
31
32define PIMD_INSTALL_TARGET_CMDS
33	$(TARGET_MAKE_ENV) $(MAKE) DESTDIR=$(TARGET_DIR) \
34		prefix=/usr -C $(@D) install
35endef
36
37$(eval $(generic-package))
38