xref: /OK3568_Linux_fs/buildroot/package/trousers/trousers.mk (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1################################################################################
2#
3# trousers
4#
5################################################################################
6
7TROUSERS_VERSION = 0.3.15
8TROUSERS_SITE = http://downloads.sourceforge.net/project/trousers/trousers/$(TROUSERS_VERSION)
9TROUSERS_LICENSE = BSD-3-Clause
10TROUSERS_LICENSE_FILES = LICENSE
11TROUSERS_CPE_ID_VENDOR = trustedcomputinggroup
12TROUSERS_INSTALL_STAGING = YES
13# Need autoreconf because of a patch touching configure.in and Makefile.am
14TROUSERS_AUTORECONF = YES
15TROUSERS_DEPENDENCIES = host-pkgconf openssl
16
17ifeq ($(BR2_PACKAGE_LIBICONV),y)
18TROUSERS_DEPENDENCIES += libiconv
19endif
20
21ifeq ($(BR2_arc770d)$(BR2_arc750d),y)
22TROUSERS_CONF_ENV += CFLAGS="$(TARGET_CFLAGS) -mno-compact-casesi"
23endif
24
25# The TrouSerS build system attempts to create the tss user and group
26# on the host system. Disable the user checking feature as a
27# workaround.
28TROUSERS_CONF_OPTS += --disable-usercheck
29
30ifeq ($(BR2_TOOLCHAIN_SUPPORTS_PIE),)
31TROUSERS_CONF_ENV += \
32	ax_cv_check_cflags___fPIE__DPIE=no \
33	ax_cv_check_ldflags___pie=no
34endif
35
36$(eval $(autotools-package))
37