summaryrefslogtreecommitdiffstats
path: root/print
diff options
context:
space:
mode:
authortaoka <taoka@FreeBSD.org>2000-12-14 15:29:52 +0000
committertaoka <taoka@FreeBSD.org>2000-12-14 15:29:52 +0000
commita42b7243f8863c9868699436ac82d8d41435b331 (patch)
tree558348a9a86326a9a5ac7276328ca6aba4f4b186 /print
parent71659045cb84338d7fad4741bbcb096a9299cbbd (diff)
downloadFreeBSD-ports-a42b7243f8863c9868699436ac82d8d41435b331.zip
FreeBSD-ports-a42b7243f8863c9868699436ac82d8d41435b331.tar.gz
To support printing via USB port for pips{760,770,800,820_3300}
Diffstat (limited to 'print')
-rw-r--r--print/pips800/Makefile5
-rw-r--r--print/pips800/files/filter.rev_1.217
2 files changed, 21 insertions, 1 deletions
diff --git a/print/pips800/Makefile b/print/pips800/Makefile
index 9c2b12e..22fca22 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 0000000..028eb32
--- /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
OpenPOWER on IntegriCloud