xref: /OK3568_Linux_fs/buildroot/package/ipmiutil/ipmiutil.mk (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1################################################################################
2#
3# ipmiutil
4#
5################################################################################
6
7IPMIUTIL_VERSION = 3.1.7
8IPMIUTIL_SITE = https://sourceforge.net/projects/ipmiutil/files
9IPMIUTIL_LICENSE = BSD-3-Clause
10IPMIUTIL_LICENSE_FILES = COPYING
11
12IPMIUTIL_MAKE = $(MAKE1)
13
14# aclocal.m4 is newer than config.h.in. Touch the latter to avoid autoreconf
15define IPMIUTIL_TOUCH_CONFIG_H_IN
16	touch $(@D)/config.h.in
17endef
18IPMIUTIL_PRE_CONFIGURE_HOOKS += IPMIUTIL_TOUCH_CONFIG_H_IN
19
20# forgets to link against libcrypto dependencies breaking static link
21ifeq ($(BR2_PACKAGE_OPENSSL)x$(BR2_STATIC_LIBS),yx)
22# tests against distro libcrypto so it might get a false positive when
23# the openssl version is old, so force it off
24# SKIP_MD2 can be used only if ALLOW_GNU is defined.
25IPMIUTIL_CONF_OPTS += CPPFLAGS="$(TARGET_CPPFLAGS) -DALLOW_GNU -DSKIP_MD2 -DSSL11"
26IPMIUTIL_DEPENDENCIES += openssl
27else
28IPMIUTIL_CONF_OPTS += --disable-lanplus
29endif
30
31$(eval $(autotools-package))
32