blob: f5d47d5b7ab5f6f13c944d6221941b7fb1fc3782 (
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
|
# $NetBSD: Makefile,v 1.4 2002/02/11 12:47:17 seb Exp $
DISTNAME= pkgcvsupdate-0.3
CATEGORIES= pkgtools devel
MASTER_SITES= # empty
DISTFILES= # empty
MAINTAINER= seb@netbsd.org
HOMEPAGE= ftp://ftp.netbsd.org/pub/NetBSD/packages/pkgsrc/Packages.txt
COMMENT= Tool to ease updating package source files from CVS
EXTRACT_ONLY= # empty
WRKSRC= ${WRKDIR}
NO_CHECKSUM= yes
NO_PATCH= yes
NO_CONFIGURE= yes
BROKEN= "This version of pkgcvsupdate does not work in some situations, wait for a new one"
.include "../../mk/bsd.prefs.mk"
.if ${OPSYS} == "SunOS"
BUILD_DEPENDS+= groff-[0-9]*:../../textproc/groff
NROFF= gnroff
DIFF?= gdiff
.else
NROFF= nroff
DIFF?= diff
.endif
do-build:
${SED} \
-e 's|@AWK@|${AWK}|g' \
-e 's|@BASENAME@|${BASENAME}|g' \
-e 's|@DIRNAME@|${DIRNAME}|g' \
-e 's|@GREP@|${GREP}|g' \
-e 's|@LS@|${LS}|g' \
-e 's|@MAKE@|${MAKE}|g' \
-e 's|@SED@|${SED}|g' \
-e 's|@TEST@|${TEST}|g' \
< ${FILESDIR}/pkgcvsupdate.sh \
> ${WRKSRC}/pkgcvsupdate
${NROFF} -mandoc ${FILESDIR}/pkgcvsupdate.1 >${WRKSRC}/pkgcvsupdate.0
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/pkgcvsupdate ${DESTDIR}${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/pkgcvsupdate.0 ${DESTDIR}${PREFIX}/man/cat1
${INSTALL_MAN} ${FILESDIR}/pkgcvsupdate.1 ${DESTDIR}${PREFIX}/man/man1
.include "../../mk/bsd.pkg.mk"
|