pkgsrc/misc/dialog/Makefile

31 lines
865 B
Makefile

# $NetBSD: Makefile,v 1.23 2004/03/23 04:41:01 jlam Exp $
DISTNAME= dialog-0.6z
PKGREVISION= 2
CATEGORIES= misc
MASTER_SITES= ${MASTER_SITE_SUNSITE:=utils/shell/}
MAINTAINER= jlam@NetBSD.org
COMMENT= Display dialog boxes from shell scripts
USE_BUILDLINK3= yes
USE_GNU_TOOLS+= make
INCOMPAT_CURSES= NetBSD-1.5* NetBSD-1.6[-_.]* NetBSD-1.6[A-P]-*
EGDIR= ${PREFIX}/share/examples/dialog
EGFILES= checklist guage infobox inputbox menubox msgbox
EGFILES+= radiolist textbox yesno
post-install:
${INSTALL_DATA_DIR} ${EGDIR}
cd ${WRKSRC}/samples; for file in ${EGFILES}; do \
${MV} $${file} $${file}.tmp; \
${SED} "s|\.\./dialog|${PREFIX}/bin/dialog|g" \
$${file}.tmp > $${file}; \
${RM} $${file}.tmp; \
${INSTALL_SCRIPT} $${file} ${EGDIR}; \
done
.include "../../devel/ncurses/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"