summaryrefslogtreecommitdiff
path: root/misc/dialog/Makefile
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2001-06-19 15:53:11 +0000
committerjlam <jlam@pkgsrc.org>2001-06-19 15:53:11 +0000
commitdbfddb7cdca0d81e70f167223a99442a80c490e9 (patch)
tree0c72d729fdfbdf7cedfe968fd52ceff72898fe2b /misc/dialog/Makefile
parent4015e855b6aa92668691cf854146535e16273358 (diff)
downloadpkgsrc-dbfddb7cdca0d81e70f167223a99442a80c490e9.tar.gz
Convert to use buildlink.mk files and mark as USE_BUILDLINK_ONLY. By using
ncurses/buildlink.mk, we can refer to the ncurses header as ncurses.h and the ncurses lib as libncurses.
Diffstat (limited to 'misc/dialog/Makefile')
-rw-r--r--misc/dialog/Makefile35
1 files changed, 17 insertions, 18 deletions
diff --git a/misc/dialog/Makefile b/misc/dialog/Makefile
index 3fd8915143f..d048d3632cb 100644
--- a/misc/dialog/Makefile
+++ b/misc/dialog/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.8 2001/02/17 18:08:58 wiz Exp $
+# $NetBSD: Makefile,v 1.9 2001/06/19 15:53:11 jlam Exp $
#
DISTNAME= dialog-0.6z
@@ -8,24 +8,23 @@ MASTER_SITES= ${MASTER_SITE_SUNSITE:=utils/shell/}
MAINTAINER= jlam@netbsd.org
COMMENT= Display dialog boxes from shell scripts
-NO_CONFIGURE= # defined
-USE_GMAKE= # defined
-USE_CURSES= # defined
+USE_BUILDLINK_ONLY= # defined
+USE_GMAKE= # defined
+#USE_CURSES= # undefined
-post-install:
- ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/dialog
-.for file in checklist guage infobox inputbox menubox msgbox radiolist textbox yesno
- ${SED} "s,\.\./dialog,${PREFIX}/bin/dialog,g" \
- ${WRKSRC}/samples/${file} > ${WRKSRC}/samples/${file}.tmp
- ${INSTALL_SCRIPT} ${WRKSRC}/samples/${file}.tmp \
- ${PREFIX}/share/examples/dialog/${file}
- ${RM} ${WRKSRC}/samples/${file}.tmp
-.endfor
-
-.include "../../mk/bsd.prefs.mk"
+EGDIR= ${PREFIX}/share/examples/dialog
+EGFILES= checklist guage infobox inputbox menubox msgbox
+EGFILES+= radiolist textbox yesno
-.if defined(NEED_NCURSES) && ${NEED_NCURSES} == "YES"
-MAKE_ENV+= HAVE_TRUE_NCURSES=true
-.endif
+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/buildlink.mk"
.include "../../mk/bsd.pkg.mk"