pkgsrc/misc/ipbt/Makefile
jlam 39843c2c61 Mechanical changes to add DESTDIR support to packages that install
their files via a custom do-install target.
2008-03-04 19:21:10 +00:00

34 lines
986 B
Makefile

# $NetBSD: Makefile,v 1.2 2008/03/04 19:21:11 jlam Exp $
#
DISTNAME= ipbt-r7471
PKGNAME= ipbt-7471
CATEGORIES= misc
MASTER_SITES= http://www.chiark.greenend.org.uk/~sgtatham/ipbt/
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.chiark.greenend.org.uk/~sgtatham/ipbt/
COMMENT= High-tech ttyrec player
PKG_DESTDIR_SUPPORT= user-destdir
USE_TOOLS+= perl
BUILD_TARGET= ipbt
INCOMPAT_CURSES=NetBSD-*-*
post-build:
${SED} -e "s,/usr/bin/perl,${PERL5}," \
${WRKSRC}/ttydump > ${WRKSRC}/ttydump.path
${SED} -e "s,/usr/bin/perl,${PERL5}," \
${WRKSRC}/ttygrep > ${WRKSRC}/ttygrep.path
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/ipbt ${DESTDIR}${PREFIX}/bin/ipbt
${INSTALL_MAN} ${WRKSRC}/ipbt.1 \
${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/ipbt.1
${INSTALL_SCRIPT} ${WRKSRC}/ttydump.path ${DESTDIR}${PREFIX}/bin/ttydump
${INSTALL_SCRIPT} ${WRKSRC}/ttygrep.path ${DESTDIR}${PREFIX}/bin/ttygrep
.include "../../devel/ncurses/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"