xref: /OK3568_Linux_fs/buildroot/package/heimdal/heimdal.mk (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1################################################################################
2#
3# heimdal
4#
5################################################################################
6
7HEIMDAL_VERSION = 7.7.0
8HEIMDAL_SITE = https://github.com/heimdal/heimdal/releases/download/heimdal-$(HEIMDAL_VERSION)
9HOST_HEIMDAL_DEPENDENCIES = host-e2fsprogs host-ncurses host-pkgconf
10HEIMDAL_INSTALL_STAGING = YES
11HEIMDAL_MAKE = $(MAKE1)
12# static because of -fPIC issues with e2fsprogs on x86_64 host
13HOST_HEIMDAL_CONF_OPTS = \
14	--disable-shared \
15	--enable-static \
16	--without-openldap \
17	--without-capng \
18	--with-db-type-preference= \
19	--without-sqlite3 \
20	--without-libintl \
21	--without-openssl \
22	--without-berkeley-db \
23	--without-readline \
24	--without-libedit \
25	--without-hesiod \
26	--without-x \
27	--disable-mdb-db \
28	--disable-ndbm-db \
29	--disable-heimdal-documentation
30
31# Don't use compile_et from e2fsprogs as it raises a build failure with samba4
32HOST_HEIMDAL_CONF_ENV = ac_cv_prog_COMPILE_ET=no MAKEINFO=true
33HEIMDAL_LICENSE = BSD-3-Clause
34HEIMDAL_LICENSE_FILES = LICENSE
35HEIMDAL_CPE_ID_VENDOR = heimdal_project
36
37# We need compile_et for samba4
38define HOST_HEIMDAL_INSTALL_COMPILE_ET
39	$(INSTALL) -m 0755 $(@D)/lib/com_err/compile_et \
40		$(HOST_DIR)/bin/compile_et
41endef
42
43# We need asn1_compile in the PATH for samba4
44define HOST_HEIMDAL_MAKE_SYMLINK
45	ln -sf $(HOST_DIR)/libexec/heimdal/asn1_compile \
46		$(HOST_DIR)/bin/asn1_compile
47endef
48
49HOST_HEIMDAL_POST_INSTALL_HOOKS += \
50	HOST_HEIMDAL_INSTALL_COMPILE_ET \
51	HOST_HEIMDAL_MAKE_SYMLINK
52
53$(eval $(host-autotools-package))
54