2008-06-12 04:14:13 +02:00
|
|
|
# $NetBSD: Makefile,v 1.19 2008/06/12 02:14:47 joerg Exp $
|
2002-12-04 12:56:35 +01:00
|
|
|
#
|
|
|
|
|
2006-04-11 04:28:09 +02:00
|
|
|
DISTNAME= pv-0.9.6
|
2002-12-04 12:56:35 +01:00
|
|
|
CATEGORIES= sysutils
|
|
|
|
MASTER_SITES= http://www.ivarch.com/programs/sources/
|
2003-01-22 22:35:49 +01:00
|
|
|
MASTER_SITES+= ${MASTER_SITE_SOURCEFORGE:=pipeviewer/}
|
2002-12-04 12:56:35 +01:00
|
|
|
|
2006-03-04 22:28:51 +01:00
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
2002-12-04 12:56:35 +01:00
|
|
|
HOMEPAGE= http://www.ivarch.com/programs/pv.shtml
|
|
|
|
COMMENT= Monitor the progress of data through a pipeline
|
|
|
|
|
2008-06-12 04:14:13 +02:00
|
|
|
PKG_DESTDIR_SUPPORT= user-destdir
|
|
|
|
|
2002-12-04 12:56:35 +01:00
|
|
|
GNU_CONFIGURE= yes
|
2006-04-13 20:23:29 +02:00
|
|
|
USE_TOOLS+= gmake msgfmt
|
2003-01-10 08:49:51 +01:00
|
|
|
USE_PKGLOCALEDIR= yes
|
2006-04-07 21:54:16 +02:00
|
|
|
INFO_FILES= # PLIST
|
2002-12-04 12:56:35 +01:00
|
|
|
|
2006-04-11 04:28:09 +02:00
|
|
|
# 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.
|
2002-12-04 12:56:35 +01:00
|
|
|
post-install:
|
2006-04-11 04:28:09 +02:00
|
|
|
dir=${DOCDIR:S/^${PREFIX}\///:Q}; cd ${WRKSRC}/doc; \
|
|
|
|
${GREP} "^$$dir/" ${PKGDIR}/PLIST | ${SED} "s|^$$dir/||" | \
|
|
|
|
while read file; do \
|
|
|
|
test ! -f "$$file" || \
|
2008-06-12 04:14:13 +02:00
|
|
|
${INSTALL_DATA} "$$file" ${DESTDIR}${PREFIX}/$$dir; \
|
2006-04-11 04:28:09 +02:00
|
|
|
done
|
2008-06-12 04:14:13 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/README ${DESTDIR}${DOCDIR}
|
2002-12-04 12:56:35 +01:00
|
|
|
|
2004-04-19 01:08:09 +02:00
|
|
|
.include "../../devel/gettext-lib/buildlink3.mk"
|
2002-12-04 12:56:35 +01:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|