# ex:ts=8
# Ports collection makefile for:	shishi
# Date created:			Oct 19, 2003
# Whom:				ijliao
#
# $FreeBSD: ports/security/shishi/Makefile,v 1.8 2004/04/18 18:36:31 krion Exp $
#

PORTNAME=	shishi
PORTVERSION=	0.0.15
CATEGORIES=	security
MASTER_SITES=	http://josefsson.org/${PORTNAME}/releases/

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

LIB_DEPENDS=	idn.13:${PORTSDIR}/devel/libidn \
		tasn1.2:${PORTSDIR}/security/libtasn1

USE_PERL5_BUILD=	yes
USE_GNOME=	gnomehack gnometarget pkgconfig
GNU_CONFIGURE=	yes
CONFIGURE_ENV=	CPPFLAGS="-I${LOCALBASE}/include" \
		LDFLAGS="-L${LOCALBASE}/lib" \
		MAKEINFO="makeinfo --no-split"
CONFIGURE_ARGS=	--without-libgcrypt --disable-starttls \
		--with-db-dir=/var/shishi
INSTALLS_SHLIB=	yes

INFO=		shishi

.if !defined(WITHOUT_NLS)
USE_GETTEXT=	yes
PLIST_SUB+=	NLS=""
.else
CONFIGURE_ARGS+=--disable-nls
PLIST_SUB+=	NLS="@comment "
.endif

SED_SCRIPT+=	-e 's,%%PREFIX%%,${PREFIX},g'

post-extract:
	@${RM} -f ${WRKSRC}/doc/shishi.info*

post-install:
	@${SED} ${SED_SCRIPT} < ${PKGMESSAGE}

.include "Makefile.man"
.include <bsd.port.mk>
