summaryrefslogtreecommitdiff
path: root/misc/kp/Makefile
blob: a7939e4983749746d7cefe9e9ce6350af76428ed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# $NetBSD: Makefile,v 1.29 2012/10/08 09:57:28 asau Exp $

DISTNAME=	kp-0.96
PKGREVISION=	1
CATEGORIES=	misc tk
MASTER_SITES=	ftp://stampede.cs.berkeley.edu/pub/kp/

MAINTAINER=	pkgsrc-users@NetBSD.org
COMMENT=	The Keyboard Practicer, touch-type training program

DEPENDS+=	tk>=8.3.2:../../x11/tk

INSTALL_MAKE_FLAGS+=	PREFIX=${DESTDIR}${PREFIX} \
			KPMANDIR=${DESTDIR}${PREFIX}/${PKGMANDIR}/man1

pre-configure:
	for f in `${FIND} ${WRKDIR}/. -type f -print \
		| ${XARGS} ${GREP} -l '/usr/local'`; do \
		${SED} -e 's:/usr/local:'${PREFIX}':g' < $$f \
			> $$f.pdone && ${MV} $$f.pdone $$f; \
	done

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