]> rtime.felk.cvut.cz Git - coffee/buildroot.git/blob - package/libkrb5/libkrb5.mk
88cfc61a19fd8d40dfa2c3f92d0fd6f1ced9adbf
[coffee/buildroot.git] / package / libkrb5 / libkrb5.mk
1 ################################################################################
2 #
3 # libkrb5
4 #
5 ################################################################################
6
7 LIBKRB5_VERSION = 1.16
8 LIBKRB5_SITE = https://web.mit.edu/kerberos/dist/krb5/$(LIBKRB5_VERSION)
9 LIBKRB5_SOURCE = krb5-$(LIBKRB5_VERSION).tar.gz
10 LIBKRB5_SUBDIR = src
11 LIBKRB5_LICENSE = MIT
12 LIBKRB5_LICENSE_FILES = NOTICE
13 LIBKRB5_INSTALL_STAGING = YES
14
15 # The configure script uses AC_TRY_RUN tests to check for those values,
16 # which doesn't work in a cross-compilation scenario. Therefore,
17 # we feed the configure script with the correct answer for those tests
18 LIBKRB5_CONF_ENV = \
19         ac_cv_printf_positional=yes \
20         ac_cv_func_regcomp=yes \
21         krb5_cv_attr_constructor_destructor=yes,yes
22
23 # Never use the host packages
24 LIBKRB5_CONF_OPTS = \
25         --without-system-db \
26         --without-system-et \
27         --without-system-ss \
28         --without-system-verto
29
30 ifeq ($(BR2_PACKAGE_OPENLDAP),y)
31 LIBKRB5_CONF_OPTS += --with-ldap
32 LIBKRB5_DEPENDENCIES += openldap
33 else
34 LIBKRB5_CONF_OPTS += --without-ldap
35 endif
36
37 ifeq ($(BR2_PACKAGE_LIBEDIT),y)
38 LIBKRB5_CONF_OPTS += --with-libedit
39 LIBKRB5_DEPENDENCIES += libedit
40 else
41 LIBKRB5_CONF_OPTS += --without-libedit
42 endif
43
44 ifeq ($(BR2_PACKAGE_READLINE),y)
45 LIBKRB5_CONF_OPTS += --with-readline
46 LIBKRB5_DEPENDENCIES += readline
47 else
48 LIBKRB5_CONF_OPTS += --without-readline
49 endif
50
51 ifneq ($(BR2_TOOLCHAIN_HAS_THREADS),y)
52 LIBKRB5_CONF_OPTS += --disable-thread-support
53 endif
54
55 $(eval $(autotools-package))