blob: 374a7d7fcbb43fd5d4252d38247f6513e2d60452 (
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
|
# $NetBSD: Makefile,v 1.5 2000/08/17 03:09:24 wiz Exp $
#
DISTNAME= pkgdiff-0.94
CATEGORIES= pkgtools devel
MASTER_SITES= # empty
DISTFILES= # empty
MAINTAINER= wiz@netbsd.org
HOMEPAGE= http://www.netbsd.org/Documentation/netbsd/Packages.txt
USE_PERL5= YES
EXTRACT_ONLY= # empty
NO_WRKSUBDIR= yes
NO_CHECKSUM= yes
NO_PATCH= yes
NO_CONFIGURE= yes
PKGSRCDIR?= ${.CURDIR}/../..
MAKE_ENV= PKGSRCDIR=${PKGSRCDIR}
.include "../../mk/bsd.prefs.mk"
.if ${OPSYS} == "SunOS"
NROFF= gnroff
.else
NROFF= nroff
.endif
do-build:
.for FILE in mkpatches patchdiff
${SED} -e 's|@PREFIX@|${PREFIX}|g' \
< ${FILESDIR}/${FILE}.pl \
> ${WRKSRC}/${FILE}
.endfor
${CP} ${FILESDIR}/pkgdiff ${WRKSRC}
.for FILE in mkpatches patchdiff pkgdiff
${SED} -e 's|@PREFIX@|${PREFIX}|g' \
< ${FILESDIR}/${FILE}.1 \
> ${WRKSRC}/${FILE}.1
${NROFF} -mandoc ${WRKSRC}/${FILE}.1 >${WRKSRC}/${FILE}.0
.endfor
do-install:
.for FILE in mkpatches patchdiff pkgdiff
${INSTALL_SCRIPT} ${WRKSRC}/${FILE} ${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/${FILE}.0 ${PREFIX}/man/cat1
${INSTALL_MAN} ${WRKSRC}/${FILE}.1 ${PREFIX}/man/man1
.endfor
.include "../../mk/bsd.pkg.mk"
|