diff options
author | joerg <joerg> | 2006-01-02 23:15:49 +0000 |
---|---|---|
committer | joerg <joerg> | 2006-01-02 23:15:49 +0000 |
commit | 55d9e897967740a15bb00896c949beb0ad8b9f6b (patch) | |
tree | 8cf5a58f7a789df91359220900cb943adf39f89a /print | |
parent | 36c114662d53a34715be07b329952217377c79e4 (diff) | |
download | pkgsrc-55d9e897967740a15bb00896c949beb0ad8b9f6b.tar.gz |
Fix papersize and provide the list of replacements needed.
Diffstat (limited to 'print')
-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: |