blob: a798db3969789377753667f6fb00503e8d4a0371 (
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
|
# $NetBSD: Makefile,v 1.50 2004/10/10 09:56:37 dillo Exp $
#
DISTNAME= pkgdiff-0.115
CATEGORIES= pkgtools devel
MASTER_SITES= # empty
DISTFILES= # empty
MAINTAINER= wiz@NetBSD.org
HOMEPAGE= ftp://ftp.NetBSD.org/pub/NetBSD/packages/pkgsrc/Packages.txt
COMMENT= Tools to ease creating and maintaining patches for pkgsrc
PKG_INSTALLATION_TYPES= overwrite pkgviews
PERL5_REQD+= 5.6.0
EXTRACT_ONLY= # empty
NO_CHECKSUM= yes
NO_CONFIGURE= yes
WRKSRC= ${WRKDIR}
USE_BUILDLINK3= yes
USE_LANGUAGES= # empty
MAKE_ENV= PKGSRCDIR=${_PKGSRCDIR:Q}
.include "../../mk/bsd.prefs.mk"
BUILD_DEFS+= MANINSTALL
.if ${OPSYS} == "SunOS"
DEPENDS+= diffutils-[0-9]*:../../devel/diffutils
DIFF?= gdiff
MANINSTALL=
.else
DIFF?= diff
.endif
INSTALLATION_DIRS= bin
.if !empty(MANINSTALL:Mcatinstall)
INSTALLATION_DIRS+= man/cat1
.endif
.if !empty(MANINSTALL:Mmaninstall)
INSTALLATION_DIRS+= man/man1
.endif
do-build:
.for FILE in mkpatches patchdiff
${SED} -e 's|@PREFIX@|${PREFIX}|g' \
-e 's|@PERL5@|${PERL5}|g' \
-e 's|@MAKE@|${MAKE}|g' \
< ${FILESDIR}/${FILE}.pl \
> ${WRKSRC}/${FILE}
.endfor
${SED} -e 's|@DIFF@|${DIFF}|g' \
-e 's|@SH@|${SH}|g' \
< ${FILESDIR}/pkgdiff \
> ${WRKSRC}/pkgdiff
${CP} ${FILESDIR}/pkgvi ${WRKSRC}
.if !empty(MANINSTALL:Mcatinstall)
. for FILE in mkpatches patchdiff pkgdiff pkgvi
. if ${OPSYS} == "SunOS" || ${OPSYS} == "AIX"
nroff -man ${FILESDIR}/${FILE}.1 >${WRKSRC}/${FILE}.0
. else
${CP} ${FILESDIR}/${FILE}.0 ${WRKSRC}/${FILE}.0
. endif
. endfor
.endif
do-install:
.for FILE in mkpatches patchdiff pkgdiff pkgvi
${INSTALL_SCRIPT} ${WRKSRC}/${FILE} ${PREFIX}/bin
. if !empty(MANINSTALL:Mcatinstall)
${INSTALL_MAN} ${WRKSRC}/${FILE}.0 ${PREFIX}/man/cat1
. endif
. if !empty(MANINSTALL:Mmaninstall)
${INSTALL_MAN} ${FILESDIR}/${FILE}.1 ${PREFIX}/man/man1
. endif
.endfor
.include "../../lang/perl5/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
|