1995-07-01 10:07:18 +00:00
|
|
|
# New ports collection makefile for: tin
|
1996-10-19 21:43:06 +00:00
|
|
|
# Date created: 25 July 1996
|
|
|
|
# Whom: obrien@cs.ucdavis.edu
|
1995-07-01 10:07:18 +00:00
|
|
|
#
|
1999-08-30 14:33:04 +00:00
|
|
|
# $FreeBSD$
|
1995-07-01 10:07:18 +00:00
|
|
|
#
|
|
|
|
|
2000-04-09 17:33:32 +00:00
|
|
|
PORTNAME= tin
|
2003-10-03 23:54:20 +00:00
|
|
|
PORTVERSION= 1.6.2
|
2002-05-25 14:51:21 +00:00
|
|
|
CATEGORIES+= news ipv6
|
2003-08-15 17:56:11 +00:00
|
|
|
MASTER_SITES= http://mirrors.rcn.net/pub/news/tin/v1.6/ \
|
2003-07-16 07:38:38 +00:00
|
|
|
ftp://mirrors.rcn.net/pub/news/tin/v1.6/ \
|
|
|
|
ftp://ftp.tin.org/pub/news/clients/tin/v1.6/ \
|
|
|
|
ftp://ftp.sunet.se/pub/news/readers/tin/v1.6/
|
1999-03-02 12:02:57 +00:00
|
|
|
|
2003-08-15 17:56:11 +00:00
|
|
|
MAINTAINER?= ache@FreeBSD.org
|
2003-03-07 06:14:21 +00:00
|
|
|
COMMENT= Easy-to-use threaded newsreader with NOV/NNTP support
|
1995-07-01 10:07:18 +00:00
|
|
|
|
2002-09-02 03:43:32 +00:00
|
|
|
LIB_DEPENDS= uu.2:${PORTSDIR}/converters/uulib \
|
2003-01-02 12:41:39 +00:00
|
|
|
iconv.3:${PORTSDIR}/converters/libiconv \
|
2003-09-28 00:08:05 +00:00
|
|
|
intl.5:${PORTSDIR}/devel/gettext \
|
|
|
|
pcre.0:${PORTSDIR}/devel/pcre
|
1999-02-11 11:13:54 +00:00
|
|
|
|
2000-04-21 07:52:25 +00:00
|
|
|
USE_BZIP2= yes
|
2001-01-16 17:33:20 +00:00
|
|
|
USE_GMAKE= yes
|
1996-10-19 21:43:06 +00:00
|
|
|
GNU_CONFIGURE= yes
|
2003-11-12 18:03:36 +00:00
|
|
|
TIN_EDITOR?= /usr/bin/ee
|
1998-04-05 15:07:22 +00:00
|
|
|
|
2003-01-02 12:41:39 +00:00
|
|
|
# --with-mime-default-charset=US-ASCII needed to build tin in the non-ascii
|
|
|
|
# national environment.
|
2000-04-21 07:52:25 +00:00
|
|
|
CONFIGURE_ARGS= --with-nntp-default-server=news \
|
|
|
|
--with-spooldir=/var/news \
|
|
|
|
--with-libdir=${PREFIX}/news/lib \
|
|
|
|
--with-defaults-dir=${PREFIX}/etc \
|
2003-11-12 18:03:36 +00:00
|
|
|
--with-editor=${TIN_EDITOR} \
|
2000-05-23 20:50:17 +00:00
|
|
|
--enable-nls \
|
2003-09-28 00:08:05 +00:00
|
|
|
--with-pcre=yes \
|
2003-01-02 12:41:39 +00:00
|
|
|
--with-screen=ncurses \
|
2000-04-21 07:52:25 +00:00
|
|
|
--enable-break-long-lines \
|
2003-01-02 12:41:39 +00:00
|
|
|
--with-libiconv-prefix=${LOCALBASE} \
|
2002-03-19 10:53:14 +00:00
|
|
|
--with-mime-default-charset=US-ASCII
|
2003-08-15 17:56:11 +00:00
|
|
|
CONFIGURE_ENV= CFLAGS='${CFLAGS} -DNNTP_SERVER_FILE="\"${PREFIX}/etc/nntpserver\""' \
|
2000-05-23 20:50:17 +00:00
|
|
|
CPPFLAGS='${CPPFLAGS} -I${LOCALBASE}/include' \
|
|
|
|
LDFLAGS='${LDFLAGS} -L${LOCALBASE}/lib'
|
2000-04-21 07:52:25 +00:00
|
|
|
ALL_TARGET= build
|
2003-08-15 17:56:11 +00:00
|
|
|
MAN1= tin.1 w2r.pl.1 opt-case.pl.1
|
|
|
|
MAN5= tin.5 mbox.5 mmdf.5
|
|
|
|
MLINKS= tin.1 rtin.1
|
1996-10-19 21:43:06 +00:00
|
|
|
|
2001-08-12 20:40:15 +00:00
|
|
|
.if defined(WITH_TIN_NNTP_ONLY)
|
2003-08-15 17:56:11 +00:00
|
|
|
CONFIGURE_ARGS+= --enable-nntp-only
|
2003-01-02 12:41:39 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if defined(WITHOUT_TIN_PGP_GPG)
|
2003-08-15 17:56:11 +00:00
|
|
|
CONFIGURE_ARGS+= --disable-pgp-gpg
|
2003-01-02 12:41:39 +00:00
|
|
|
.elif defined(WITH_TIN_GPG) || \
|
|
|
|
(exists(${LOCALBASE}/bin/gpg) && !defined(WITH_TIN_PGP))
|
2003-08-15 17:56:11 +00:00
|
|
|
RUN_DEPENDS+= gpg:${PORTSDIR}/security/gnupg
|
|
|
|
CONFIGURE_ARGS+= --with-gpg=${PREFIX}/bin/gpg \
|
2003-01-02 12:41:39 +00:00
|
|
|
--without-pgp --without-pgpk
|
|
|
|
.elif defined(WITH_TIN_PGP) || exists(${LOCALBASE}/bin/pgp)
|
2003-08-15 17:56:11 +00:00
|
|
|
RUN_DEPENDS+= pgp:${PORTSDIR}/security/pgp6
|
|
|
|
CONFIGURE_ARGS+= --with-pgp=${PREFIX}/bin/pgp \
|
2003-01-02 12:41:39 +00:00
|
|
|
--without-pgpk --without-gpg
|
2003-07-19 18:21:22 +00:00
|
|
|
.elif defined(WITH_TIN_PGP5) || exists(${LOCALBASE}/bin/pgpk)
|
2003-08-15 17:56:11 +00:00
|
|
|
RUN_DEPENDS+= pgpk:${PORTSDIR}/security/pgp5
|
|
|
|
CONFIGURE_ARGS+= --with-pgpk=${PREFIX}/bin/pgpk \
|
2003-07-19 18:21:22 +00:00
|
|
|
--without-pgp --without-gpg
|
2003-01-02 12:41:39 +00:00
|
|
|
.else
|
2003-08-15 17:56:11 +00:00
|
|
|
CONFIGURE_ARGS+= --disable-pgp-gpg
|
2003-01-02 12:41:39 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_TIN_ISPELL) || \
|
|
|
|
(exists(${LOCALBASE}/bin/ispell) && !defined(WITHOUT_TIN_ISPELL))
|
2003-08-15 17:56:11 +00:00
|
|
|
RUN_DEPENDS+= ispell:${PORTSDIR}/textproc/ispell
|
|
|
|
CONFIGURE_ARGS+= --with-ispell=${PREFIX}/bin/ispell
|
2003-01-02 12:41:39 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_TIN_METAMAIL) || \
|
|
|
|
(exists(${LOCALBASE}/bin/metamail) && !defined(WITHOUT_TIN_METAMAIL))
|
2003-08-15 17:56:11 +00:00
|
|
|
RUN_DEPENDS+= metamail:${PORTSDIR}/mail/metamail
|
|
|
|
CONFIGURE_ARGS+= --with-metamail=${PREFIX}/bin/metamail
|
2003-01-02 12:41:39 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${OSVERSION} >= 400014
|
2003-08-15 17:56:11 +00:00
|
|
|
CONFIGURE_ARGS+= --enable-ipv6
|
2003-01-02 12:41:39 +00:00
|
|
|
.else
|
2003-08-15 17:56:11 +00:00
|
|
|
CONFIGURE_ARGS+= --disable-ipv6
|
1996-10-19 21:43:06 +00:00
|
|
|
.endif
|
|
|
|
|
1998-01-10 22:45:20 +00:00
|
|
|
post-patch:
|
|
|
|
@${MV} ${WRKSRC}/doc/tin.1 ${WRKSRC}/doc/tin.1.dist
|
|
|
|
@${SED} -e 's:/var/spool/news:/var/news:' \
|
|
|
|
-e 's:/etc/nntpserver:${PREFIX}/etc/nntpserver:' \
|
|
|
|
-e 's:/usr/lib/news:${PREFIX}/news/lib:' \
|
|
|
|
<${WRKSRC}/doc/tin.1.dist >${WRKSRC}/doc/tin.1
|
|
|
|
|
2003-08-29 19:34:25 +00:00
|
|
|
.if defined(WITH_TIN_CANLOCK)
|
|
|
|
${PATCH} ${PATCH_ARGS} ${WRKSRC}/src/Makefile.in -i ${FILESDIR}/canlock.patch
|
|
|
|
.endif
|
|
|
|
|
|
|
|
pre-build:
|
|
|
|
.if defined(WITH_TIN_CANLOCK)
|
|
|
|
cd ${WRKSRC}/src; ${GMAKE} canlock
|
|
|
|
.endif
|
|
|
|
|
2001-08-07 16:44:01 +00:00
|
|
|
post-build:
|
2001-12-25 12:21:17 +00:00
|
|
|
cd ${WRKSRC}/po; ${GMAKE}
|
2001-08-07 16:44:01 +00:00
|
|
|
|
1999-02-11 11:13:54 +00:00
|
|
|
post-install:
|
|
|
|
cd ${WRKSRC}/doc; ${INSTALL_DATA} tin.defaults ${PREFIX}/etc/tin.defaults.dist
|
|
|
|
if [ ! -f ${PREFIX}/etc/tin.defaults ] ; then \
|
1999-03-02 12:02:57 +00:00
|
|
|
${CP} ${PREFIX}/etc/tin.defaults.dist ${PREFIX}/etc/tin.defaults; \
|
1999-02-11 11:13:54 +00:00
|
|
|
fi
|
2001-08-07 16:44:01 +00:00
|
|
|
cd ${WRKSRC}/doc; ${INSTALL_DATA} mime.types ${PREFIX}/etc/tin.mime.types.dist
|
|
|
|
if [ ! -f ${PREFIX}/etc/mime.types ] ; then \
|
|
|
|
${CP} ${PREFIX}/etc/tin.mime.types.dist ${PREFIX}/etc/mime.types; \
|
|
|
|
fi
|
1996-03-03 13:19:58 +00:00
|
|
|
|
2003-01-02 12:41:39 +00:00
|
|
|
.include <bsd.port.post.mk>
|