summaryrefslogtreecommitdiff
path: root/package/heimdal/Makefile
blob: ee1235a5e4ae844afcac4c7eeebf2d1d5bdfa7d9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
# This file is part of the OpenADK project. OpenADK is copyrighted
# material, please see the LICENCE file in the top-level directory.

include $(ADK_TOPDIR)/rules.mk

PKG_NAME:=		heimdal
PKG_VERSION:=		1.5.3
PKG_RELEASE:=		3
PKG_HASH:=		aac27bedb33c341b6aed202af07ccc816146a893148721f8123abbbf93bbfea5
PKG_DESCR:=		kerberos server
PKG_SECTION:=		app/crypto
PKG_URL:=		http://www.h5l.org/
PKG_SITES:=		http://www.h5l.org/dist/src/

DISTFILES:=		${PKG_NAME}-${PKG_VERSION}.tar.gz

PKG_CFLINE_HEIMDAL:=	depends on ADK_HOST_ONLY

include $(ADK_TOPDIR)/mk/host.mk
include $(ADK_TOPDIR)/mk/package.mk

$(eval $(call HOST_template,HEIMDAL,heimdal,$(PKG_VERSION)-${PKG_RELEASE}))

HOST_STYLE:=		manual

ifeq ($(OS_FOR_BUILD),Darwin)
HOST_CFLAGS+=		-DHAVE_STRLCPY -DHAVE_STRLCAT
endif

HOST_CONFIGURE_ARGS+=	--disable-pk-init \
			--without-openldap \
			--without-x \
			--disable-kcm \
			--disable-kx509 \
			--disable-ndbm-db \
			--without-berkeley-db \
			--disable-sqlite-cache \
			--disable-heimdal-documentation \
			--disable-otp

host-configure:
	cd ${WRKBUILD}; \
	    env ${HOST_CONFIGURE_ENV} \
	    ${BASH} ${WRKSRC}/${CONFIGURE_PROG} \
	    --program-prefix= \
	    --program-suffix= \
	    --prefix=/usr \
	    --bindir=/usr/bin \
	    --datadir=/usr/share \
	    --mandir=/usr/share/man \
	    --libdir=/usr/lib \
	    --libexecdir=/usr/libexec \
	    --localstatedir=/var \
	    --sysconfdir=/etc \
	    --disable-dependency-tracking \
	    --disable-libtool-lock \
	    --disable-nls \
	    ${HOST_CONFIGURE_ARGS} $(MAKE_TRACE)

host-build:
	PATH='$(HOST_PATH)' ${MAKE} -C ${WRKBUILD}/include
	PATH='$(HOST_PATH)' ${MAKE} -C ${WRKBUILD}/lib/roken
	PATH='$(HOST_PATH)' ${MAKE} -C ${WRKBUILD}/lib/vers
	PATH='$(HOST_PATH)' ${MAKE} -C ${WRKBUILD}/lib/libedit
	PATH='$(HOST_PATH)' ${MAKE} -C ${WRKBUILD}/lib/com_err compile_et$(EXEEXT) LDFLAGS="-all-static"
	PATH='$(HOST_PATH)' ${MAKE} -C ${WRKBUILD}/lib/asn1 asn1_compile$(EXEEXT) LDFLAGS="-all-static"

host-install:

heimdal-hostinstall:
	$(CP) $(WRKBUILD)/lib/com_err/compile_et \
		$(STAGING_HOST_DIR)/usr/bin
	$(CP) $(WRKBUILD)/lib/asn1/asn1_compile \
		$(STAGING_HOST_DIR)/usr/bin

include ${ADK_TOPDIR}/mk/host-bottom.mk
include ${ADK_TOPDIR}/mk/pkg-bottom.mk