summaryrefslogtreecommitdiff
path: root/devel/ncurses
diff options
context:
space:
mode:
authorrillig <rillig>2006-07-02 10:00:08 +0000
committerrillig <rillig>2006-07-02 10:00:08 +0000
commitdff9df1f1f9dd4831de701fca627563aaaf41072 (patch)
tree8e897c842db5e9d0b841f8b8d9f00a8359346fb8 /devel/ncurses
parent3182cde2364179b895eef3111cb2f265471c82e4 (diff)
downloadpkgsrc-dff9df1f1f9dd4831de701fca627563aaaf41072.tar.gz
Switched to the SUBST framework.
Diffstat (limited to 'devel/ncurses')
-rw-r--r--devel/ncurses/Makefile18
1 files changed, 11 insertions, 7 deletions
diff --git a/devel/ncurses/Makefile b/devel/ncurses/Makefile
index 68f5fd9457b..dbc4384e4ab 100644
--- a/devel/ncurses/Makefile
+++ b/devel/ncurses/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.70 2006/03/14 16:00:40 jlam Exp $
+# $NetBSD: Makefile,v 1.71 2006/07/02 10:00:08 rillig Exp $
DISTNAME= ncurses-${NC_VERS}
NC_VERS= 5.5
@@ -46,6 +46,16 @@ CONFIGURE_ARGS+= --with-terminfo-dirs=${PREFIX}/${TERMINFODIR}
INSTALLATION_DIRS= share/examples
+.if ${OPSYS} == "SunOS"
+SUBST_CLASSES+= ti
+SUBST_STAGE.ti= post-configure
+SUBST_MESSAGE.ti= Removing screen entries from the terminfo database.
+SUBST_FILES.ti= ${TERMINFO_SRC}
+SUBST_SED.ti= -e '/^screen|/,/^$$/d'
+SUBST_SED.ti+= -e '/^screen-w|/,/^$$/d'
+SUBST_SED.ti+= -e '/^screen.teraterm|/,/^$$/d'
+.endif
+
post-configure:
cd ${WRKSRC}/man; \
for f in *.1m; do \
@@ -54,12 +64,6 @@ post-configure:
for f in *.3x; do \
${MV} -f $${f} `${BASENAME} $${f} .3x`.3; \
done
-.if ${OPSYS} == "SunOS"
- ${MV} ${TERMINFO_SRC} ${TERMINFO_SRC}.old
- ${SED} -e "/^screen|/,/^$$/d" -e "/^screen-w|/,/^$$/d" \
- -e "/^screen.teraterm|/,/^$$/d" \
- <${TERMINFO_SRC}.old >${TERMINFO_SRC}
-.endif
post-install:
${INSTALL_DATA} ${WRKSRC}/c++/demo.cc \