2017-01-04 23:34:47 +01:00
|
|
|
# $NetBSD: Makefile,v 1.49 2017/01/04 22:34:47 roy Exp $
|
1998-05-19 22:45:52 +02:00
|
|
|
|
2006-10-14 21:33:45 +02:00
|
|
|
DISTNAME= nn-6.7.3
|
2017-01-04 23:34:47 +01:00
|
|
|
PKGREVISION= 5
|
1998-05-19 22:45:52 +02:00
|
|
|
CATEGORIES= news
|
2006-10-15 12:27:53 +02:00
|
|
|
MASTER_SITES= ftp://ftp.nndev.org/pub/nn-6.7/
|
2005-04-11 13:05:47 +02:00
|
|
|
EXTRACT_SUFX= .tar.Z
|
1998-05-20 00:26:39 +02:00
|
|
|
|
2006-03-04 22:28:51 +01:00
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
2010-03-13 06:05:51 +01:00
|
|
|
HOMEPAGE= http://www.nndev.org/
|
2001-02-17 18:52:59 +01:00
|
|
|
COMMENT= NN newsreader
|
1998-05-19 22:45:52 +02:00
|
|
|
|
2004-05-03 14:56:10 +02:00
|
|
|
PKG_SYSCONFSUBDIR= nntp
|
|
|
|
|
2014-01-02 09:00:32 +01:00
|
|
|
TOOL_DEPENDS+= tradcpp-[0-9]*:../../devel/tradcpp
|
|
|
|
|
2016-02-25 17:20:49 +01:00
|
|
|
CPPFLAGS.IRIX+= -DHAVE_TERMIO_H
|
1999-07-26 21:47:37 +02:00
|
|
|
|
2016-02-25 17:20:49 +01:00
|
|
|
OPSYSVARS+= SFILE
|
|
|
|
SFILE.SunOS= s-sunos5.h
|
|
|
|
SFILE.Linux= s-linux.h
|
|
|
|
SFILE.*= s-netbsd.h
|
|
|
|
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
1999-09-20 23:43:32 +02:00
|
|
|
|
2007-07-29 16:33:12 +02:00
|
|
|
.if ${MACHINE_ARCH} == "i386"
|
1999-09-20 23:43:32 +02:00
|
|
|
MFILE= m-i80386.h
|
2007-07-29 16:33:12 +02:00
|
|
|
.elif ${MACHINE_ARCH} == "mipseb"
|
2004-03-22 11:25:26 +01:00
|
|
|
MFILE= m-mipsel.h
|
1999-09-20 23:43:32 +02:00
|
|
|
.else
|
2016-01-24 17:14:44 +01:00
|
|
|
MFILE= m-${MACHINE_ARCH}.h
|
1999-09-20 23:43:32 +02:00
|
|
|
.endif
|
|
|
|
|
2007-03-24 20:21:18 +01:00
|
|
|
INSTALLATION_DIRS= bin ${PKGMANDIR}/man1 ${PKGMANDIR}/man8
|
|
|
|
|
1999-09-20 23:43:32 +02:00
|
|
|
post-patch:
|
|
|
|
@${SED} -e ' \
|
|
|
|
s#@PREFIX@#${PREFIX}#; \
|
2004-05-03 14:56:10 +02:00
|
|
|
s#@PKG_SYSCONFDIR@#${PKG_SYSCONFDIR}#; \
|
2006-11-12 02:28:03 +01:00
|
|
|
s#@PKGMANDIR@#${PKGMANDIR}#; \
|
1999-09-20 23:43:32 +02:00
|
|
|
s#@BINOWN@#${BINOWN}#; \
|
|
|
|
s#@BINGRP@#${BINGRP}#; \
|
|
|
|
s#@MFILE@#${MFILE}#; \
|
|
|
|
s#@SFILE@#${SFILE}#' \
|
|
|
|
<${WRKSRC}/config.h-dist >${WRKSRC}/config.h
|
|
|
|
@${CP} ${FILESDIR}/s-netbsd.h ${WRKSRC}/conf/s-netbsd.h
|
2002-03-14 00:07:29 +01:00
|
|
|
@${CP} ${FILESDIR}/m-powerpc.h ${WRKSRC}/conf/m-powerpc.h
|
2009-11-30 01:38:47 +01:00
|
|
|
@${CP} ${FILESDIR}/m-x86_64.h ${WRKSRC}/conf/m-x86_64.h
|
2000-09-10 01:26:46 +02:00
|
|
|
@${CP} ${WRKSRC}/conf/m-m680x0.h ${WRKSRC}/conf/m-m68k.h
|
1998-05-19 22:45:52 +02:00
|
|
|
|
2012-04-07 13:47:19 +02:00
|
|
|
SUBST_CLASSES+= fix-dest
|
|
|
|
SUBST_STAGE.fix-dest= post-build
|
|
|
|
SUBST_SED.fix-dest= -e 's,${PREFIX},${DESTDIR}${PREFIX},'
|
|
|
|
SUBST_FILES.fix-dest= inst
|
|
|
|
|
|
|
|
|
2017-01-04 23:34:47 +01:00
|
|
|
.include "../../mk/terminfo.buildlink3.mk"
|
1999-08-18 11:08:10 +02:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|