summaryrefslogtreecommitdiff
path: root/security/shishi/Makefile
blob: 5c546276a7f86a3e965c969dc5bf0d527e5e8c2e (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
PORTNAME=	shishi
PORTVERSION=	1.0.2
PORTREVISION=	11
CATEGORIES=	security
MASTER_SITES=	GNU

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Free implementation of the Kerberos 5 network security system

LIB_DEPENDS=	libidn.so:dns/libidn \
		libtasn1.so:security/libtasn1 \
		libgcrypt.so:security/libgcrypt \
		libgnutls.so:security/gnutls

USES=		iconv libtool makeinfo pathfix perl5 pkgconfig
USE_LDCONFIG=	yes
USE_PERL5=	build
GNU_CONFIGURE=	yes
CONFIGURE_ARGS=	--with-db-dir=/var/shishi
MAKE_ENV=	MAKEINFOFLAGS=--no-split
INSTALL_TARGET=	install-strip

OPTIONS_DEFINE=	DOCS NLS
OPTIONS_SUB=	yes
NLS_USES=	gettext
NLS_CONFIGURE_ENABLE=	nls

INFO=		shishi

SUB_FILES=	pkg-message

CPPFLAGS+=	-I${LOCALBASE}/include
LIBS+=		-L${LOCALBASE}/lib

post-extract:
	@${RM} ${WRKSRC}/doc/shishi.info*
	@cd ${WRKSRC}/db/gl && ${LN} -s ../../build-aux/link-warning.h

post-patch:
	@${REINPLACE_CMD} -e 's/$$(LINK_WARNING_H)/link-warning.h/' \
		${WRKSRC}/db/gl/Makefile.in
	@${REINPLACE_CMD} -e 's:\.\./gl/libgnu.la:../db/gl/libgnu.la &:' \
		${WRKSRC}/src/Makefile.in
	@${REINPLACE_CMD} -e '/^AM_CPPFLAGS/s:-I[^ ]*/gl ::g' \
		${WRKSRC}/examples/Makefile.in

.include <bsd.port.mk>