diff options
-rw-r--r-- | print/pips800/Makefile | 5 | ||||
-rw-r--r-- | print/pips800/files/filter.rev_1.2 | 17 |
2 files changed, 21 insertions, 1 deletions
diff --git a/print/pips800/Makefile b/print/pips800/Makefile index 9c2b12e9aa03..22fca2266bcd 100644 --- a/print/pips800/Makefile +++ b/print/pips800/Makefile @@ -23,11 +23,14 @@ NO_WRKSUBDIR= yes PLIST_SUB= BASE_NAME=${BASE_NAME} PRTYPE=${PRTYPE} LIB_DIR_FILE=usr/lib/${LIB_FILE} LIB_README=${LIB_NAME} MD5_FILE= ${.CURDIR}/distinfo .if (${PORTVERSION} == 1.2) +PORTREVISION= 1 LIB_FILE= libPrt${PRTYPE}.so LIB_NAME= "@comment Readme of the Lib for only 1.3 or later" +FILTER= ${FILESDIR}/filter.rev_1.2 .else LIB_FILE= libpm${PRTYPE}c.so LIB_NAME= share/doc/${BASE_NAME}/libpm${PRTYPE}c.readme +FILTER= ${FILESDIR}/filter.rev .endif BASE_NAME= pips${PRTYPE} PAPERSIZE?= a4 @@ -47,7 +50,7 @@ do-build: ${SED} -e 's,/usr/local/EPKowa/PM800C/gsconfig800,${PREFIX}/libexec/pips${PRTYPE}/gsconfig${PRTYPE},' \ -e 's,/usr/local/bin/pips800,${PREFIX}/bin/pips${PRTYPE},' \ -e 's,:/usr/local/bin$$,:${PREFIX}/bin,' \ - ${FILESDIR}/filter.rev > ${WRKDIR}/filter${PRTYPE}.rev + ${FILTER} > ${WRKDIR}/filter${PRTYPE}.rev do-install: ${MKDIR} ${PREFIX}/libexec/${BASE_NAME} diff --git a/print/pips800/files/filter.rev_1.2 b/print/pips800/files/filter.rev_1.2 new file mode 100644 index 000000000000..028eb3205669 --- /dev/null +++ b/print/pips800/files/filter.rev_1.2 @@ -0,0 +1,17 @@ +#!/bin/sh + +PATH=${PATH}:/usr/bin:/usr/local/bin + +GSCONF=/usr/local/EPKowa/PM800C/gsconfig800 +PIPS=/usr/local/bin/pips800 + +TMP=/tmp/pips.$$ + +trap "rm -rf $TMP; exit" 0 2 3 4 6 7 8 10 11 12 13 15 +psselect -r > $TMP + +# To support printing via USB port for pips{760,770,800,820_3300} +perl -e 'print "\000\000\000\033\001\@EJL\ 1284.4\n\@EJL \n\033\@"' + +${GSCONF} < $TMP | ${PIPS} -ui C +rm -rf $TMP |