diff options
author | taoka <taoka@FreeBSD.org> | 2000-12-14 23:29:52 +0800 |
---|---|---|
committer | taoka <taoka@FreeBSD.org> | 2000-12-14 23:29:52 +0800 |
commit | a42b7243f8863c9868699436ac82d8d41435b331 (patch) | |
tree | 558348a9a86326a9a5ac7276328ca6aba4f4b186 /print/pips800 | |
parent | 71659045cb84338d7fad4741bbcb096a9299cbbd (diff) | |
download | freebsd-ports-gnome-a42b7243f8863c9868699436ac82d8d41435b331.tar.gz freebsd-ports-gnome-a42b7243f8863c9868699436ac82d8d41435b331.tar.zst freebsd-ports-gnome-a42b7243f8863c9868699436ac82d8d41435b331.zip |
To support printing via USB port for pips{760,770,800,820_3300}
Diffstat (limited to 'print/pips800')
-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 |