diff options
-rw-r--r-- | print/magicfilter/Makefile | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/print/magicfilter/Makefile b/print/magicfilter/Makefile index 8574c0240c2..d6e297cb4c5 100644 --- a/print/magicfilter/Makefile +++ b/print/magicfilter/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.9 1998/11/10 18:34:28 tron Exp $ +# $NetBSD: Makefile,v 1.10 1998/11/11 00:28:45 tron Exp $ DISTNAME= magicfilter-1.2 CATEGORIES= print @@ -25,16 +25,18 @@ FILTER_DIR= libexec/magicfilter post-install: @${CP} ${PKGDIR}/PLIST ${PLIST_SRC} @${MKDIR} ${PREFIX}/${FILTER_DIR} - @(cd ${WRKSRC}/filters; \ - for FILTER in *-filter; do \ - TARGET=${PREFIX}/${FILTER_DIR}/$$FILTER; \ - ${ECHO} "Installing $$FILTER as $$TARGET"; \ - ${SED} 's/-sOutputFile=-/-sOutputFile=- -sPAPERSIZE=${PAPERSIZE}/' \ - <$$FILTER >${PREFIX}/${FILTER_DIR}/$$FILTER; \ - chown ${BINOWN}:${BINGRP} $$TARGET; \ - chmod ${BINMODE} $$TARGET; \ - ${ECHO} ${FILTER_DIR}/$$FILTER >>${PLIST_SRC}; \ + @(cd ${WRKSRC}/filters; \ + for FILTER in *-filter; do \ + TARGET=${PREFIX}/${FILTER_DIR}/$$FILTER; \ + ${ECHO} "Installing $$FILTER as $$TARGET"; \ + ${SED} 's/-sOutputFile=-/-sOutputFile=- -sPAPERSIZE=${PSIZE}/' \ + <$$FILTER >${PREFIX}/${FILTER_DIR}/$$FILTER; \ + chown ${BINOWN}:${BINGRP} $$TARGET; \ + chmod ${BINMODE} $$TARGET; \ + ${ECHO} ${FILTER_DIR}/$$FILTER >>${PLIST_SRC}; \ done) @${ECHO} "@dirrm ${FILTER_DIR}" >>${PLIST_SRC} .include "../../mk/bsd.pkg.mk" + +PSIZE!= echo ${PAPERSIZE} | tr '[A-Z]' '[a-z]' |