From 0a608f7b9e663cd8cc72ad78b3100ec8515019da Mon Sep 17 00:00:00 2001 From: joerg Date: Mon, 2 Jan 2006 23:15:49 +0000 Subject: Fix papersize and provide the list of replacements needed. --- print/papersize/Makefile | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) (limited to 'print/papersize') 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: -- cgit v1.2.3