# $OpenBSD$

COMMENT=	"Secure Live Internet Conferencing (SILC) server"

DISTNAME=	silc-server-0.9.6
CATEGORIES=	net
HOMEPAGE=	http://www.silcnet.org/

MAINTAINER=	Jolan Luff <jolan@cryptonomicon.org>

# GPL
PERMIT_PACKAGE_CDROM=	Yes
PERMIT_PACKAGE_FTP=	Yes
PERMIT_DISTFILES_CDROM=	Yes
PERMIT_DISTFILES_FTP=	Yes

MASTER_SITES=	http://ftp.silcnet.org/server/sources/

.if ${MACHINE_ARCH:Msparc64}
PATCH_LIST=	gcc-* patch-*
.endif

CONFIGURE_STYLE= gnu
CONFIGURE_ARGS=	\
	--enable-ipv6 						\
	--without-irssi 					\
	--with-docdir=${PREFIX}/share/doc/silcd			\
	--with-etcdir=${SYSCONFDIR}/silcd			\
	--with-logsdir=/var/log/silcd				\
	--with-silcd-config-file=${SYSCONFDIR}/silcd/silcd.conf	\
	--with-silcd-pid-file=/var/run/silcd.pid

.if ${MACHINE_ARCH} != "i386"
CONFIGURE_ARGS+= --disable-asm
.endif

MODGNU_CONFIG_GUESS_DIRS= ${WRKSRC} ${WRKSRC}/lib/silcmath/mpi

.include <bsd.port.mk>
