1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-24 04:33:24 +00:00
freebsd-ports/news/tin/Makefile

135 lines
4.3 KiB
Makefile
Raw Normal View History

# New ports collection makefile for: tin
# Date created: 25 July 1996
# Whom: obrien@cs.ucdavis.edu
#
1999-08-30 14:33:04 +00:00
# $FreeBSD$
#
PORTNAME= tin
PORTVERSION= 1.8.3
PORTREVISION= 1
CATEGORIES+= news ipv6
MASTER_SITES= ftp://ftp.tin.org/pub/news/clients/tin/stable/ \
ftp://ftp.sunet.se/pub/news/readers/tin/stable/ \
ftp://sunsite.icm.edu.pl/pub/unix/news/tin/stable/ \
ftp://ftp.ka.nu/pub/news/clients/tin/stable/ \
ftp://ftp.tau.ac.il/pub/unix/news/tin/stable/ \
ftp://ftp.cuhk.edu.hk/pub/packages/news/tin/stable/ \
ftp://ftp.funet.fi/pub/unix/news/tin-unoff/ \
ftp://ftp.lip6.fr/pub/unix/news/readers/tin-unoff/ \
ftp://ftp.karlsruhe.org/pub/news/clients/tin/stable/ \
ftp://ftp.akk.uni-karlsruhe.de/pub/news/clients/tin/stable/ \
ftp://ftp.cs.tu-berlin.de/pub/net/news/tin/stable/ \
ftp://ftp.informatik.uni-hamburg.de/pub/soft/news/tin/stable/
MAINTAINER?= ache@FreeBSD.org
COMMENT= Easy-to-use threaded newsreader with NOV/NNTP support
LIB_DEPENDS= uu.3:${PORTSDIR}/converters/uulib \
2003-09-28 00:08:05 +00:00
pcre.0:${PORTSDIR}/devel/pcre
RUN_DEPENDS= ${LOCALBASE}/etc/mime.types:${PORTSDIR}/misc/mime-support
1999-02-11 11:13:54 +00:00
USE_BZIP2= yes
USE_GETTEXT= yes
USE_GMAKE= yes
USE_ICONV= yes
GNU_CONFIGURE= yes
2005-06-01 01:44:54 +00:00
WITH_TIN_EDITOR?= /usr/bin/ee
WITH_TIN_SCREEN?= ncurses
2003-01-02 12:41:39 +00:00
# --with-mime-default-charset=US-ASCII needed to build tin in the non-ascii
# national environment.
CONFIGURE_ARGS+=--with-nntp-default-server=news \
--with-spooldir=/var/news \
--with-libdir=${PREFIX}/news/lib \
--with-defaults-dir=${PREFIX}/etc \
2005-06-01 01:44:54 +00:00
--with-editor=${WITH_TIN_EDITOR} \
2000-05-23 20:50:17 +00:00
--enable-nls \
2003-09-28 00:08:05 +00:00
--with-pcre=yes \
--with-screen=${WITH_TIN_SCREEN} \
--enable-break-long-lines \
2003-01-02 12:41:39 +00:00
--with-libiconv-prefix=${LOCALBASE} \
--with-mime-default-charset=US-ASCII \
--enable-ipv6
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'
ALL_TARGET= build
2005-03-11 15:24:04 +00:00
MAN1= tin.1 w2r.pl.1 opt-case.pl.1 tinews.pl.1
MAN5= tin.5 mbox.5 mmdf.5
MLINKS= tin.1 rtin.1
2001-08-12 20:40:15 +00:00
.if defined(WITH_TIN_NNTP_ONLY)
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)
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))
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)
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
.elif defined(WITH_TIN_PGP5) || exists(${LOCALBASE}/bin/pgpk)
RUN_DEPENDS+= pgpk:${PORTSDIR}/security/pgp5
CONFIGURE_ARGS+= --with-pgpk=${PREFIX}/bin/pgpk \
--without-pgp --without-gpg
2003-01-02 12:41:39 +00:00
.else
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))
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))
RUN_DEPENDS+= metamail:${PORTSDIR}/mail/metamail
CONFIGURE_ARGS+= --with-metamail=${PREFIX}/bin/metamail
2003-01-02 12:41:39 +00:00
.endif
post-patch:
${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' \
-e 's:url_handler\.sh:tinurl_handler.sh:g' \
${WRKSRC}/doc/tin.1 ${WRKSRC}/doc/tin.5
${REINPLACE_CMD} \
-e 's:/etc/mime\.types:${PREFIX}/etc/mime.types:g' \
${WRKSRC}/src/mimetypes.c
${REINPLACE_CMD} \
-e 's:url_handler\.sh:tinurl_handler.sh:g' \
${WRKSRC}/src/Makefile.in ${WRKSRC}/include/tin.h
${MV} ${WRKSRC}/tools/url_handler.sh \
${WRKSRC}/tools/tinurl_handler.sh
.if defined(WITH_TIN_CANLOCK)
MAKE_ARGS+= CANLIB='-L../libcanlock -lcanlock' \
CANLOCK=-DUSE_CANLOCK
.endif
pre-build:
.if defined(WITH_TIN_CANLOCK)
cd ${WRKSRC}/src; ${GMAKE} canlock
.endif
2001-08-07 16:44:01 +00:00
post-build:
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 \
${CP} ${PREFIX}/etc/tin.defaults.dist ${PREFIX}/etc/tin.defaults; \
1999-02-11 11:13:54 +00:00
fi
1996-03-03 13:19:58 +00:00
2003-01-02 12:41:39 +00:00
.include <bsd.port.post.mk>