imgtec-ci20: genimage config/ u-boot env
[openadk.git] / package / heimdal / Makefile
blob53390c29dd952783aaf88c8f72746944f7b75f56
1 # This file is part of the OpenADK project. OpenADK is copyrighted
2 # material, please see the LICENCE file in the top-level directory.
4 include $(ADK_TOPDIR)/rules.mk
6 PKG_NAME:= heimdal
7 PKG_VERSION:= 7.7.0
8 PKG_RELEASE:= 1
9 PKG_HASH:= f02d3314d634cc55eb9cf04a1eae0d96b293e45a1f837de9d894e800161b7d1b
10 PKG_DESCR:= kerberos server
11 PKG_SECTION:= app/crypto
12 HOST_BUILDDEP:= ncurses-host
13 PKG_URL:= http://www.h5l.org/
14 PKG_SITES:= https://github.com/heimdal/heimdal/releases/download/heimdal-${PKG_VERSION}/
16 DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.gz
18 PKG_CFLINE_HEIMDAL:= depends on ADK_HOST_ONLY
20 include $(ADK_TOPDIR)/mk/host.mk
21 include $(ADK_TOPDIR)/mk/package.mk
23 $(eval $(call HOST_template,HEIMDAL,heimdal,$(PKG_VERSION)-${PKG_RELEASE}))
25 # patch changes configure.ac, have to recreate
26 AUTOTOOL_STYLE:= autoreconf
28 HOST_STYLE:= manual
30 ifeq ($(OS_FOR_BUILD),Darwin)
31 HOST_CFLAGS+= -DHAVE_STRLCPY -DHAVE_STRLCAT
32 endif
34 HOST_CONFIGURE_ARGS+= --disable-pk-init \
35 --without-openldap \
36 --without-x \
37 --disable-kcm \
38 --disable-kx509 \
39 --disable-ndbm-db \
40 --without-berkeley-db \
41 --disable-sqlite-cache \
42 --disable-heimdal-documentation \
43 --disable-otp
45 host-configure:
46 cd ${WRKBUILD}; \
47 env ${HOST_CONFIGURE_ENV} \
48 ${BASH} ${WRKSRC}/${CONFIGURE_PROG} \
49 --program-prefix= \
50 --program-suffix= \
51 --prefix=/usr \
52 --bindir=/usr/bin \
53 --datadir=/usr/share \
54 --mandir=/usr/share/man \
55 --libdir=/usr/lib \
56 --libexecdir=/usr/libexec \
57 --localstatedir=/var \
58 --sysconfdir=/etc \
59 --disable-dependency-tracking \
60 --disable-libtool-lock \
61 --disable-nls \
62 ${HOST_CONFIGURE_ARGS} $(MAKE_TRACE)
64 host-build:
65 PATH='$(HOST_PATH)' ${MAKE} -C ${WRKBUILD}/include
66 PATH='$(HOST_PATH)' ${MAKE} -C ${WRKBUILD}/lib/roken
67 PATH='$(HOST_PATH)' ${MAKE} -C ${WRKBUILD}/lib/vers
68 PATH='$(HOST_PATH)' ${MAKE} -C ${WRKBUILD}/lib/libedit
69 PATH='$(HOST_PATH)' ${MAKE} -C ${WRKBUILD}/lib/com_err compile_et$(EXEEXT) LDFLAGS="-all-static"
70 PATH='$(HOST_PATH)' ${MAKE} -C ${WRKBUILD}/lib/asn1 asn1_compile$(EXEEXT) LDFLAGS="-all-static"
72 host-install:
74 heimdal-hostinstall:
75 $(CP) $(WRKBUILD)/lib/com_err/compile_et \
76 $(STAGING_HOST_DIR)/usr/bin
77 $(CP) $(WRKBUILD)/lib/asn1/asn1_compile \
78 $(STAGING_HOST_DIR)/usr/bin
80 include ${ADK_TOPDIR}/mk/host-bottom.mk
81 include ${ADK_TOPDIR}/mk/pkg-bottom.mk