summaryrefslogtreecommitdiff
path: root/pkgtools/pkgclean/Makefile
blob: 2a8ae9a543404cf69278fb1895743a9f6719b0b3 (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
# $NetBSD: Makefile,v 1.3 2004/10/14 16:11:05 ben Exp $

DISTNAME=	pkgclean-20041014
CATEGORIES=	pkgtools
MASTER_SITES=	# empty
DISTFILES=	# empty

MAINTAINER=	peter@pointless.nl
COMMENT=	Quickly clean up all work directories in pkgsrc

PKG_INSTALLATION_TYPES=	overwrite pkgviews

NO_BUILDLINK=	yes
NO_CONFIGURE=	yes
NO_CHECKSUM=	yes

INSTALLATION_DIRS=	bin man/cat1 man/man1

NROFF=		nroff -mandoc

do-extract:
	@${CP} -Rp ${FILESDIR} ${WRKSRC}

do-build:
	${CC} ${CFLAGS} -o ${WRKSRC}/pkgclean ${WRKSRC}/pkgclean.c
	${NROFF} ${WRKSRC}/pkgclean.1 > ${WRKSRC}/pkgclean.cat1

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/pkgclean ${PREFIX}/bin/pkgclean
	${INSTALL_MAN} ${WRKSRC}/pkgclean.1 ${PREFIX}/man/man1/pkgclean.1
	${INSTALL_MAN} ${WRKSRC}/pkgclean.cat1 ${PREFIX}/man/cat1/pkgclean.0

SUBST_CLASSES=          path
SUBST_STAGE.path=       post-patch
SUBST_FILES.path=       pkgclean.c pkgclean.1
SUBST_SED.path=         -e "s,@PKGSRCDIR@,${PKGSRCDIR},g"
SUBST_MESSAGE.path=     "Adjusting pkgsrc directory."

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