blob: 68e3cd1d2fd9d2ba5c425a859abf7d9231543651 (
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
55
56
57
58
59
60
61
62
63
64
|
# $NetBSD: Makefile,v 1.44 2014/01/02 08:00:32 dholland Exp $
DISTNAME= nn-6.7.3
PKGREVISION= 2
CATEGORIES= news
MASTER_SITES= ftp://ftp.nndev.org/pub/nn-6.7/
EXTRACT_SUFX= .tar.Z
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.nndev.org/
COMMENT= NN newsreader
PKG_SYSCONFSUBDIR= nntp
TOOL_DEPENDS+= tradcpp-[0-9]*:../../devel/tradcpp
.include "../../mk/bsd.prefs.mk"
.include "../../mk/compiler.mk"
.if ${OPSYS} == "SunOS"
SFILE= s-sunos5.h
.elif ${OPSYS} == "Linux"
SFILE= s-linux.h
.else
SFILE= s-netbsd.h
.endif
.if ${MACHINE_ARCH} == "i386"
MFILE= m-i80386.h
.elif ${MACHINE_ARCH} == "mipseb"
MFILE= m-mipsel.h
.else
MFILE= m-${LOWER_ARCH}.h
.endif
.if ${OPSYS} == "IRIX"
CPPFLAGS+= -DHAVE_TERMIO_H
.endif
INSTALLATION_DIRS= bin ${PKGMANDIR}/man1 ${PKGMANDIR}/man8
post-patch:
@${SED} -e ' \
s#@PREFIX@#${PREFIX}#; \
s#@PKG_SYSCONFDIR@#${PKG_SYSCONFDIR}#; \
s#@PKGMANDIR@#${PKGMANDIR}#; \
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} ${FILESDIR}/m-x86_64.h ${WRKSRC}/conf/m-x86_64.h
@${CP} ${WRKSRC}/conf/m-m680x0.h ${WRKSRC}/conf/m-m68k.h
SUBST_CLASSES+= fix-dest
SUBST_STAGE.fix-dest= post-build
SUBST_SED.fix-dest= -e 's,${PREFIX},${DESTDIR}${PREFIX},'
SUBST_FILES.fix-dest= inst
.include "../../devel/ncurses/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
|