# $OpenBSD: Makefile,v 1.16 2001/04/17 06:37:34 shell Exp $

COMMENT=	'full-screen easy to use Usenet reader'

DISTNAME=	tin-1.4.5
CATEGORIES=	news
NEED_VERSION=	1.395
MASTER_SITES=	ftp://ftp.tin.org/pub/news/clients/tin/stable/ \
		ftp://ftp.aak.uni-karlsruhe.de/pub/news/clients/tin/stable/ \
		ftp://ftp.nuxi.com/pub/tin/stable/ \
		ftp://uiarchive.uiuc.edu/pub/packages/news/client/tin/unoff/ \
		ftp://ftp.eee.hku.hk/pub/tin-unoff/

HOMEPAGE=	http://www.tin.org/

MAINTAINER=     Shell Hung <shell@openbsd.org>

PERMIT_PACKAGE_CDROM=	"no fee"
PERMIT_PACKAGE_FTP=	Yes
PERMIT_DISTFILES_CDROM=	"no fee"
PERMIT_DISTFILES_FTP=	Yes

CONFIGURE_STYLE=	gnu dest
CONFIGURE_ARGS+=	--with-spooldir=/var/news  \
			--with-libdir=${PREFIX}/lib/news \
			--enable-break-long-lines

FLAVORS=	nntp_only
FLAVOR?=

.if ${FLAVOR:L} == "nntp_only"
CONFIGURE_ARGS+=	--enable-nntp-only
.endif

ALL_TARGET=	build

.include <bsd.port.mk>
