summaryrefslogtreecommitdiff
path: root/misc/screen/Makefile
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2006-04-05 23:06:33 +0000
committerjlam <jlam@pkgsrc.org>2006-04-05 23:06:33 +0000
commit36c3fdbed92a6fa0658a6403ae8ea25c68e60e00 (patch)
treec1423d542cbbaa7a87095e5da345f48a576b6b9e /misc/screen/Makefile
parenta4cbc72f584185583e33b49017522a326a053ef4 (diff)
downloadpkgsrc-36c3fdbed92a6fa0658a6403ae8ea25c68e60e00.tar.gz
Unify PLISTs between Solaris and everyone else. Also drop the removal
of screen.old... that just shouldn't happen. Bump the PKGREVISION.
Diffstat (limited to 'misc/screen/Makefile')
-rw-r--r--misc/screen/Makefile16
1 files changed, 12 insertions, 4 deletions
diff --git a/misc/screen/Makefile b/misc/screen/Makefile
index 03f819d0d7b..f17849aad44 100644
--- a/misc/screen/Makefile
+++ b/misc/screen/Makefile
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.66 2006/04/05 23:01:16 jlam Exp $
+# $NetBSD: Makefile,v 1.67 2006/04/05 23:06:33 jlam Exp $
DISTNAME= screen-4.0.2
-PKGREVISION= 4
+PKGREVISION= 5
CATEGORIES= misc shells
MASTER_SITES= ftp://ftp.uni-erlangen.de/pub/utilities/screen/ \
${MASTER_SITE_GNU:=screen/}
@@ -31,16 +31,24 @@ SUBST_SED.paths+= -e 's,@PKG_SYSCONFDIR@,${PKG_SYSCONFDIR},g'
SUBST_SED.paths+= -e 's,@EXAMPLES@,${PREFIX}/share/examples/screen,g'
SUBST_STAGE.paths= post-patch
+.if (${OPSYS} == "SunOS") && exists(/usr/5bin/tic)
+PLIST_SUBST+= SCREEN_TERMINFO=
+post-install: screen-terminfo
+.else
+PLIST_SUBST+= SCREEN_TERMINFO="@comment "
+.endif
+
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/screen
${INSTALL_DATA} ${WRKSRC}/etc/etcscreenrc \
${PREFIX}/share/examples/screen/etcscreenrc
${INSTALL_DATA} ${WRKSRC}/etc/screenrc \
${PREFIX}/share/examples/screen/screenrc
-.if ${OPSYS} == "SunOS"
+
+.PHONY: screen-terminfo
+screen-terminfo:
cd ${WRKSRC}/terminfo && \
${SETENV} TERMINFO=${PREFIX}/share/lib/terminfo \
/usr/5bin/tic screeninfo.src
-.endif
.include "../../mk/bsd.pkg.mk"