diff options
author | joerg <joerg@pkgsrc.org> | 2006-01-02 23:15:49 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2006-01-02 23:15:49 +0000 |
commit | c20b5ed9fd87c2538f98f82acac096c3aa84f176 (patch) | |
tree | 8cf5a58f7a789df91359220900cb943adf39f89a /print/papersize | |
parent | 8515e1d83a8623e15ceefe7b10573a353af9d007 (diff) | |
download | pkgsrc-c20b5ed9fd87c2538f98f82acac096c3aa84f176.tar.gz |
Fix papersize and provide the list of replacements needed.
Diffstat (limited to 'print/papersize')
-rw-r--r-- | print/papersize/Makefile | 22 |
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: |