summaryrefslogtreecommitdiff
path: root/sysutils/pv/Makefile
blob: d34e5538d6008bbd293d5a7c6dd7b30b70e28240 (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
# $NetBSD: Makefile,v 1.17 2006/04/11 02:28:09 jlam Exp $
#

DISTNAME=		pv-0.9.6
CATEGORIES=		sysutils
MASTER_SITES=		http://www.ivarch.com/programs/sources/
MASTER_SITES+=		${MASTER_SITE_SOURCEFORGE:=pipeviewer/}

MAINTAINER=		pkgsrc-users@NetBSD.org
HOMEPAGE=		http://www.ivarch.com/programs/pv.shtml
COMMENT=		Monitor the progress of data through a pipeline

BUILD_USES_MSGFMT=	yes

GNU_CONFIGURE=		yes
USE_TOOLS+=		gmake
USE_PKGLOCALEDIR=	yes
INFO_FILES=		# PLIST

# Don't gzip the installed info file and man pages.
CONFIGURE_ENV+=		DO_GZIP=${TOOLS_CMD.true}

DOCDIR=			${PREFIX}/share/doc/pv
INSTALLATION_DIRS=	${DOCDIR}

# Grab list of files to install from the PLIST.
post-install:
	dir=${DOCDIR:S/^${PREFIX}\///:Q}; cd ${WRKSRC}/doc;		\
	${GREP} "^$$dir/" ${PKGDIR}/PLIST | ${SED} "s|^$$dir/||" |	\
	while read file; do						\
		test ! -f "$$file" ||					\
			${INSTALL_DATA} "$$file" ${PREFIX}/$$dir;	\
	done
	${INSTALL_DATA} ${WRKSRC}/README ${DOCDIR}

.include "../../devel/gettext-lib/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"