1995-07-01 12:07:18 +02:00
|
|
|
# New ports collection makefile for: tin
|
1996-10-19 23:43:06 +02:00
|
|
|
# Date created: 25 July 1996
|
|
|
|
# Whom: obrien@cs.ucdavis.edu
|
1995-07-01 12:07:18 +02:00
|
|
|
#
|
1999-08-30 16:33:04 +02:00
|
|
|
# $FreeBSD$
|
1995-07-01 12:07:18 +02:00
|
|
|
#
|
|
|
|
|
2000-04-09 19:33:32 +02:00
|
|
|
PORTNAME= tin
|
2011-12-29 09:21:56 +01:00
|
|
|
PORTVERSION= 2.0.1
|
2012-12-10 20:11:11 +01:00
|
|
|
PORTREVISION?= 3
|
2002-05-25 16:51:21 +02:00
|
|
|
CATEGORIES+= news ipv6
|
2011-07-09 15:15:26 +02:00
|
|
|
MASTER_SITES= ftp://ftp.tin.org/pub/news/clients/tin/v${PORTVERSION:R}/ \
|
|
|
|
ftp://ftp.sunet.se/pub/news/readers/tin/v${PORTVERSION:R}/ \
|
|
|
|
ftp://sunsite.icm.edu.pl/pub/unix/news/tin/v${PORTVERSION:R}/ \
|
|
|
|
ftp://ftp.ka.nu/pub/news/clients/tin/v${PORTVERSION:R}/ \
|
|
|
|
ftp://ftp.tau.ac.il/pub/unix/news/tin/v${PORTVERSION:R}/ \
|
|
|
|
ftp://ftp.cuhk.edu.hk/pub/packages/news/tin/v${PORTVERSION:R}/ \
|
2007-02-10 20:00:25 +01:00
|
|
|
ftp://ftp.funet.fi/pub/unix/news/tin-unoff/ \
|
|
|
|
ftp://ftp.lip6.fr/pub/unix/news/readers/tin-unoff/ \
|
2011-07-09 15:15:26 +02:00
|
|
|
ftp://ftp.karlsruhe.org/pub/news/clients/tin/v${PORTVERSION:R}/ \
|
|
|
|
ftp://ftp.akk.uni-karlsruhe.de/pub/news/clients/tin/v${PORTVERSION:R}/ \
|
|
|
|
ftp://ftp.cs.tu-berlin.de/pub/net/news/tin/v${PORTVERSION:R}/ \
|
|
|
|
ftp://ftp.informatik.uni-hamburg.de/pub/soft/news/tin/v${PORTVERSION:R}/
|
1999-03-02 13:02:57 +01:00
|
|
|
|
2011-08-22 08:49:56 +02:00
|
|
|
MAINTAINER?= johans@FreeBSD.org
|
2003-03-07 07:14:21 +01:00
|
|
|
COMMENT= Easy-to-use threaded newsreader with NOV/NNTP support
|
1995-07-01 12:07:18 +02:00
|
|
|
|
2012-06-14 22:44:16 +02:00
|
|
|
LIB_DEPENDS= uu:${PORTSDIR}/converters/uulib \
|
|
|
|
pcre:${PORTSDIR}/devel/pcre
|
2006-11-12 12:49:16 +01:00
|
|
|
RUN_DEPENDS= ${LOCALBASE}/etc/mime.types:${PORTSDIR}/misc/mime-support
|
1999-02-11 12:13:54 +01:00
|
|
|
|
2000-04-21 09:52:25 +02:00
|
|
|
USE_BZIP2= yes
|
2001-01-16 18:33:20 +01:00
|
|
|
USE_GMAKE= yes
|
2013-04-27 20:25:24 +02:00
|
|
|
USES= iconv
|
1996-10-19 23:43:06 +02:00
|
|
|
GNU_CONFIGURE= yes
|
2009-04-10 13:02:54 +02:00
|
|
|
TIN_EDITOR?= /usr/bin/ee
|
2012-03-02 15:56:37 +01:00
|
|
|
TIN_SCREEN?= ncursesw
|
2009-04-10 13:02:54 +02:00
|
|
|
|
2012-06-14 22:44:16 +02:00
|
|
|
OPTIONS_DEFINE= GNUPG ISPELL METAMAIL CANLOCK NNTP_ONLY
|
|
|
|
OPTIONS_DEFAULT=GNUPG ISPELL METAMAIL
|
|
|
|
CANLOCK_DESC= Enable Cancel-Lock key support via libcanlock
|
|
|
|
NNTP_ONLY= Only read news via NNTP (no spool dir support)
|
2007-06-14 19:10:31 +02:00
|
|
|
|
2012-06-14 22:44:16 +02:00
|
|
|
.include <bsd.port.options.mk>
|
2007-06-14 19:10:31 +02:00
|
|
|
|
2003-01-02 13:41:39 +01:00
|
|
|
# --with-mime-default-charset=US-ASCII needed to build tin in the non-ascii
|
|
|
|
# national environment.
|
2004-03-30 22:49:00 +02:00
|
|
|
CONFIGURE_ARGS+=--with-nntp-default-server=news \
|
2000-04-21 09:52:25 +02:00
|
|
|
--with-spooldir=/var/news \
|
|
|
|
--with-libdir=${PREFIX}/news/lib \
|
|
|
|
--with-defaults-dir=${PREFIX}/etc \
|
2009-04-10 13:02:54 +02:00
|
|
|
--with-editor=${TIN_EDITOR} \
|
2003-09-28 02:08:05 +02:00
|
|
|
--with-pcre=yes \
|
2009-04-10 13:02:54 +02:00
|
|
|
--with-screen=${TIN_SCREEN} \
|
2000-04-21 09:52:25 +02:00
|
|
|
--enable-break-long-lines \
|
2003-01-02 13:41:39 +01:00
|
|
|
--with-libiconv-prefix=${LOCALBASE} \
|
2007-02-10 20:00:25 +01:00
|
|
|
--with-mime-default-charset=US-ASCII \
|
|
|
|
--enable-ipv6
|
2011-07-11 20:50:32 +02:00
|
|
|
MAKE_ARGS+= MAKE=${GMAKE}
|
2011-03-13 13:27:28 +01:00
|
|
|
CFLAGS+= -DNNTP_SERVER_FILE=\\\"${PREFIX}/etc/nntpserver\\\"
|
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
2011-09-24 00:26:39 +02:00
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
2000-04-21 09:52:25 +02:00
|
|
|
ALL_TARGET= build
|
2011-07-09 15:15:26 +02:00
|
|
|
MAN1= tin.1 w2r.pl.1 opt-case.pl.1 tinews.pl.1 tinurl_handler.pl.1
|
2009-04-10 13:02:54 +02:00
|
|
|
MAN5= tin.5 tin_mbox.5 tin_mmdf.5
|
2003-08-15 19:56:11 +02:00
|
|
|
MLINKS= tin.1 rtin.1
|
1996-10-19 23:43:06 +02:00
|
|
|
|
2012-06-14 22:44:16 +02:00
|
|
|
.if ${PORT_OPTIONS:MNNTP_ONLY}
|
2003-08-15 19:56:11 +02:00
|
|
|
CONFIGURE_ARGS+= --enable-nntp-only
|
2003-01-02 13:41:39 +01:00
|
|
|
.endif
|
|
|
|
|
2012-06-14 22:44:16 +02:00
|
|
|
.if ${PORT_OPTIONS:MGNUPG}
|
2009-04-10 13:02:54 +02:00
|
|
|
RUN_DEPENDS+= gpg:${PORTSDIR}/security/gnupg
|
2003-08-15 19:56:11 +02:00
|
|
|
CONFIGURE_ARGS+= --with-gpg=${PREFIX}/bin/gpg \
|
2009-04-10 13:02:54 +02:00
|
|
|
--without-pgp --without-pgpk
|
2003-01-02 13:41:39 +01:00
|
|
|
.else
|
2003-08-15 19:56:11 +02:00
|
|
|
CONFIGURE_ARGS+= --disable-pgp-gpg
|
2003-01-02 13:41:39 +01:00
|
|
|
.endif
|
|
|
|
|
2012-06-14 22:44:16 +02:00
|
|
|
.if ${PORT_OPTIONS:MISPELL}
|
2009-04-10 13:02:54 +02:00
|
|
|
RUN_DEPENDS+= ispell:${PORTSDIR}/textproc/ispell
|
2003-08-15 19:56:11 +02:00
|
|
|
CONFIGURE_ARGS+= --with-ispell=${PREFIX}/bin/ispell
|
2003-01-02 13:41:39 +01:00
|
|
|
.endif
|
|
|
|
|
2012-06-14 22:44:16 +02:00
|
|
|
.if ${PORT_OPTIONS:MMETAMAIL}
|
2009-04-10 13:02:54 +02:00
|
|
|
RUN_DEPENDS+= metamail:${PORTSDIR}/mail/metamail
|
2003-08-15 19:56:11 +02:00
|
|
|
CONFIGURE_ARGS+= --with-metamail=${PREFIX}/bin/metamail
|
2003-01-02 13:41:39 +01:00
|
|
|
.endif
|
|
|
|
|
2012-06-14 22:44:16 +02:00
|
|
|
.if ${PORT_OPTIONS:MCANLOCK}
|
2011-07-11 20:50:32 +02:00
|
|
|
CONFIGURE_ARGS+= --enable-cancel-locks
|
|
|
|
.endif
|
|
|
|
|
2012-06-14 22:44:16 +02:00
|
|
|
.if ${PORT_OPTIONS:MNLS}
|
2011-03-13 13:27:28 +01:00
|
|
|
CONFIGURE_ARGS+= --enable-nls
|
2013-04-24 20:10:30 +02:00
|
|
|
USES+= gettext
|
2011-03-13 13:27:28 +01:00
|
|
|
PLIST_SUB+= NLS=""
|
2012-06-14 22:44:16 +02:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-nls
|
|
|
|
PLIST_SUB+= NLS="@comment "
|
2011-03-13 13:27:28 +01:00
|
|
|
.endif
|
|
|
|
|
1998-01-10 23:45:20 +01:00
|
|
|
post-patch:
|
2009-04-10 13:02:54 +02:00
|
|
|
${REINPLACE_CMD} -Ee 's:5/(mmdf|mbox):5/tin_\1:g' \
|
|
|
|
${WRKSRC}/src/Makefile.in
|
2007-02-12 19:28:37 +01:00
|
|
|
${REINPLACE_CMD} -e 's:/var/spool/news:/var/news:g' \
|
|
|
|
-e 's:/etc/nntpserver:${PREFIX}/etc/nntpserver:g' \
|
|
|
|
-e 's:/usr/lib/news:${PREFIX}/news/lib:g' \
|
|
|
|
-e 's:/etc/mime\.types:${PREFIX}/etc/mime.types:g' \
|
2011-07-09 15:15:26 +02:00
|
|
|
-e 's:url_handler\.pl:tinurl_handler.pl:g' \
|
2006-11-12 12:49:16 +01:00
|
|
|
${WRKSRC}/doc/tin.1 ${WRKSRC}/doc/tin.5
|
|
|
|
${REINPLACE_CMD} \
|
2007-02-12 19:28:37 +01:00
|
|
|
-e 's:/etc/mime\.types:${PREFIX}/etc/mime.types:g' \
|
2006-11-12 12:49:16 +01:00
|
|
|
${WRKSRC}/src/mimetypes.c
|
2007-02-12 19:28:37 +01:00
|
|
|
${REINPLACE_CMD} \
|
2011-07-09 15:15:26 +02:00
|
|
|
-e 's:url_handler\.pl:tinurl_handler.pl:g' \
|
2007-02-12 19:28:37 +01:00
|
|
|
${WRKSRC}/src/Makefile.in ${WRKSRC}/include/tin.h
|
2011-07-09 15:15:26 +02:00
|
|
|
${MV} ${WRKSRC}/tools/url_handler.pl \
|
|
|
|
${WRKSRC}/tools/tinurl_handler.pl
|
1998-01-10 23:45:20 +01:00
|
|
|
|
2001-08-07 18:44:01 +02:00
|
|
|
post-build:
|
2012-06-27 21:52:13 +02:00
|
|
|
.if ${PORT_OPTIONS:MNLS}
|
2001-12-25 13:21:17 +01:00
|
|
|
cd ${WRKSRC}/po; ${GMAKE}
|
2011-03-13 13:27:28 +01:00
|
|
|
.endif
|
2001-08-07 18:44:01 +02:00
|
|
|
|
1999-02-11 12:13:54 +01: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 13:02:57 +01:00
|
|
|
${CP} ${PREFIX}/etc/tin.defaults.dist ${PREFIX}/etc/tin.defaults; \
|
1999-02-11 12:13:54 +01:00
|
|
|
fi
|
1996-03-03 14:19:58 +01:00
|
|
|
|
2012-06-14 22:44:16 +02:00
|
|
|
.include <bsd.port.mk>
|