To support printing via USB port for pips{760,770,800,820_3300}
This commit is contained in:
parent
a1edb7c7c9
commit
9b69aeb189
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=35978
2 changed files with 21 additions and 1 deletions
|
@ -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}
|
||||
|
|
17
print/pips800/files/filter.rev_1.2
Normal file
17
print/pips800/files/filter.rev_1.2
Normal file
|
@ -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
|
Loading…
Reference in a new issue