summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjoerg <joerg>2006-01-19 02:01:18 +0000
committerjoerg <joerg>2006-01-19 02:01:18 +0000
commitded0d1fc03a2f60e1bc90d362cf2754459c44fe8 (patch)
treef6c79fe30919a34ac9f147b08da4d6a1b1377ae7
parent207ea6c03938d7b089f80c5ba54f2e98f0ac1c9f (diff)
downloadpkgsrc-ded0d1fc03a2f60e1bc90d362cf2754459c44fe8.tar.gz
Use SUBST.
-rw-r--r--misc/screen/Makefile14
1 files changed, 6 insertions, 8 deletions
diff --git a/misc/screen/Makefile b/misc/screen/Makefile
index abbdf43c061..9cc33e51cd0 100644
--- a/misc/screen/Makefile
+++ b/misc/screen/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.64 2005/12/29 06:21:55 jlam Exp $
+# $NetBSD: Makefile,v 1.65 2006/01/19 02:01:18 joerg Exp $
DISTNAME= screen-4.0.2
PKGREVISION= 4
@@ -16,7 +16,6 @@ NOT_FOR_PLATFORM= Interix-*-* # user auth and username size fixes needed
INFO_FILES= screen.info
PLIST_SUBST+= DISTNAME=${DISTNAME:Q}
-FILES_SUBST+= EXAMPLES=${PREFIX:Q}/share/examples/screen
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --with-sys-screenrc=${PKG_SYSCONFDIR}/screenrc
@@ -26,12 +25,11 @@ PKG_SHELL= bin/screen
.include "../../mk/bsd.prefs.mk"
-post-patch:
- @for file in etc/etcscreenrc doc/screen.1; do \
- ${MV} ${WRKSRC}/$$file ${WRKSRC}/$$file.orig; \
- ${SED} ${FILES_SUBST_SED} \
- ${WRKSRC}/$$file.orig > ${WRKSRC}/$$file; \
- done
+SUBST_CLASSES+= paths
+SUBST_FILES.paths= etc/etcscreenrc doc/screen.1
+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
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/screen