summaryrefslogtreecommitdiff
path: root/news/nn/Makefile
blob: 09bcce56d2d0a39f0047fbb7e0a9cd415b2a02ce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# $NetBSD: Makefile,v 1.22 2004/05/03 12:56:10 kim Exp $
# FreeBSD Id: Makefile,v 1.14 1997/07/30 18:17:48 adam Exp
#

DISTNAME=	nn-6.6.4
PKGREVISION=	1
CATEGORIES=	news
MASTER_SITES=	ftp://ftp.gw.com/pub/unix/news/nn/nn-6.6/ \
		ftp://ftp.nndev.org/pub/nn-6.6/ \
		ftp://ftp.nndev.org/pub/nn-6.6/old/
# slightly different 6.6.4 distfile (4 bytes off in tar)
#		ftp://ftp.gw.com/pub/unix/news/nn/nn-6.6/old/

MAINTAINER=	tech-pkg@NetBSD.org
COMMENT=	NN newsreader

PKG_SYSCONFSUBDIR=	nntp

BUILD_DEFS+=	USE_INN

.include "../../mk/bsd.prefs.mk"

.if ${OPSYS} == "SunOS"
SFILE=		s-sunos5.h
.elif ${OPSYS} == "Linux"
SFILE=		s-linux.h
.else
SFILE=		s-netbsd.h
.endif

.if ${LOWER_ARCH} == "i386"
MFILE=		m-i80386.h
.elif ${LOWER_ARCH} == "mipseb"
MFILE=         m-mipsel.h
.else
MFILE=		m-${LOWER_ARCH}.h
.endif

MAKE_ENV+=	CC="${CC}"

post-patch:
	@${SED} -e ' \
	    s#@PREFIX@#${PREFIX}#; \
	    s#@PKG_SYSCONFDIR@#${PKG_SYSCONFDIR}#; \
	    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
	@${CP} ${FILESDIR}/m-powerpc.h ${WRKSRC}/conf/m-powerpc.h
	@${CP} ${WRKSRC}/conf/m-m680x0.h ${WRKSRC}/conf/m-m68k.h

.include "../../mk/bsd.pkg.mk"