pkgsrc/news/tin/Makefile
wiz c7383780db Bump all packages that depend on curses.bui* or terminfo.bui* since they
might incur ncurses dependencies on some platforms, and ncurses just bumped
its shlib.
Some packages were bumped twice now, sorry for that.
2015-08-18 07:31:00 +00:00

68 lines
2.3 KiB
Makefile

# $NetBSD: Makefile,v 1.65 2015/08/18 07:31:16 wiz Exp $
#
DISTNAME= tin-2.2.1
PKGREVISION= 5
CATEGORIES= news
MASTER_SITES= ftp://ftp.tin.org/pub/news/clients/tin/stable/ \
ftp://ftp.funet.fi/pub/unix/news/tin-unoff/ \
ftp://ftp.lip6.fr/pub/unix/news/readers/tin-unoff/ \
ftp://ftp.akk.uni-karlsruhe.de/pub/news/clients/tin/stable/ \
ftp://ftp.cs.tu-berlin.de/pub/net/news/tin/stable/ \
ftp://ftp.cuhk.edu.hk/pub/packages/news/tin/stable/ \
ftp://sunsite.icm.edu.pl/pub/unix/news/tin/stable/
EXTRACT_SUFX= .tar.bz2
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.tin.org/
COMMENT= TIN newsreader (termcap based)
# See src/nntplib.c, vms/vms.c
LICENSE= tin-license
RESTRICTED= Profit from use, sale, trade, or reproduction disallowed
NO_SRC_ON_CDROM= ${RESTRICTED}
NO_BIN_ON_CDROM= ${RESTRICTED}
GNU_CONFIGURE= yes
USE_PKGLOCALEDIR=yes
INSTALLATION_DIRS= share/doc/tin
# for tinews.pl
USE_TOOLS+= msgfmt perl:run yacc
REPLACE_PERL= tools/*.pl
BUILD_TARGET= build
.include "options.mk"
CONFIGURE_ARGS+= --with-nntp-default-server=news
CONFIGURE_ARGS+= --with-mime-default-charset=ISO-8859-1
CONFIGURE_ARGS+= --enable-break-long-lines
CONFIGURE_ARGS+= --with-gpg=${PREFIX}/bin/gpg
CONFIGURE_ARGS+= --with-ispell=${PREFIX}/bin/ispell
CONFIGURE_ARGS+= --with-metamail=${PREFIX}/bin/metamail
CONFIGURE_ARGS+= --with-pcre=${BUILDLINK_PREFIX.pcre}
CONFIGURE_ARGS+= --disable-mime-strict-charset
CONFIGURE_ARGS+= --with-defaults-dir=${PKG_SYSCONFDIR}
CONFIGURE_ARGS+= --enable-mh-mail-handling
CONFIGURE_ARGS+= --with-coffee
SUBST_CLASSES+= tin
SUBST_STAGE.tin= pre-configure
SUBST_MESSAGE.tin= Adjusting path to the configuration directory.
SUBST_FILES.tin= doc/tin.1
SUBST_SED.tin= -e 's:/etc/nntpserver:${PKG_SYSCONFDIR}/nntp/server:'
post-configure:
${ECHO} '#define NNTP_SERVER_FILE "${PKG_SYSCONFDIR}/nntp/server"' >>${WRKSRC}/include/autoconf.h
${ECHO} '#define SMTP_SERVER_FILE "${PKG_SYSCONFDIR}/smtpserver"' >>${WRKSRC}/include/autoconf.h
post-install:
${INSTALL_DATA} ${WRKSRC}/doc/WHATSNEW ${DESTDIR}${PREFIX}/share/doc/tin
.include "../../converters/libiconv/buildlink3.mk"
.include "../../converters/uulib/buildlink3.mk"
.include "../../devel/gettext-lib/buildlink3.mk"
.include "../../devel/libidn/buildlink3.mk"
.include "../../devel/pcre/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"