summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--print/papersize/Makefile22
1 files changed, 19 insertions, 3 deletions
diff --git a/print/papersize/Makefile b/print/papersize/Makefile
index 7a7ded0a74d..ac6e02f3266 100644
--- a/print/papersize/Makefile
+++ b/print/papersize/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.22 2005/12/29 06:22:07 jlam Exp $
+# $NetBSD: Makefile,v 1.23 2006/01/02 23:15:49 joerg Exp $
#
DISTNAME= papersize-1.0.8
@@ -17,10 +17,26 @@ NO_CONFIGURE= yes
INSTALLATION_DIRS= bin ${PKGMANDIR}/man1
+SUBST_CLASSES+= paths
+SUBST_STAGE.paths= post-build
+SUBST_FILES.paths= getpapersize setpapersize
+
+SUBST_SED.paths= -e 's,@SH@,${SH},'
+SUBST_SED.paths+= -e 's,@PKG_SYSCONFDIR@,${PKG_SYSCONFDIR},'
+SUBST_SED.paths+= -e 's,@X11BASE@,${X11BASE},'
+SUBST_SED.paths+= -e 's,@ECHO@,${ECHO},'
+SUBST_SED.paths+= -e 's,@AWK@,${AWK},'
+SUBST_SED.paths+= -e 's,@LOCALBASE@,${LOCALBASE},'
+SUBST_SED.paths+= -e 's,@SED@,${SED},'
+SUBST_SED.paths+= -e 's,@GREP@,${GREP},'
+SUBST_SED.paths+= -e 's,@MV@,${MV},'
+SUBST_SED.paths+= -e 's,@TR@,${TR},'
+SUBST_SED.paths+= -e 's,@RM@,${RM},'
+SUBST_SED.paths+= -e 's,@CHMOD@,${CHMOD},'
+
do-build:
@for f in setpapersize getpapersize; do \
- ${SED} ${FILES_SUBST_SED} \
- ${FILESDIR}/$$f > ${WRKSRC}/$$f; \
+ ${CP} ${FILESDIR}/$$f ${WRKSRC}/$$f; \
done
do-install: