aboutsummaryrefslogtreecommitdiffstats
path: root/print
diff options
context:
space:
mode:
authortaoka <taoka@FreeBSD.org>2002-05-25 10:39:50 +0800
committertaoka <taoka@FreeBSD.org>2002-05-25 10:39:50 +0800
commit192aeecfe1dc906adf7072ec997a121d29ca768c (patch)
tree44953995e1f972257b1220a5e1678ae447b1fae1 /print
parent1d591b940fb1ff2e36d682422d1b84b68c41fb4e (diff)
downloadfreebsd-ports-gnome-192aeecfe1dc906adf7072ec997a121d29ca768c.tar.gz
freebsd-ports-gnome-192aeecfe1dc906adf7072ec997a121d29ca768c.tar.zst
freebsd-ports-gnome-192aeecfe1dc906adf7072ec997a121d29ca768c.zip
Fix for pips3300
(1) add pkg-plist13 for pips3300 (2) add files/filter13.rev to support printing via USB for pips3300
Diffstat (limited to 'print')
-rw-r--r--print/pips800/Makefile15
-rw-r--r--print/pips800/files/filter13.rev15
-rw-r--r--print/pips800/pkg-plist1314
3 files changed, 39 insertions, 5 deletions
diff --git a/print/pips800/Makefile b/print/pips800/Makefile
index 1bf7326879f8..10ee49db1a27 100644
--- a/print/pips800/Makefile
+++ b/print/pips800/Makefile
@@ -74,6 +74,8 @@ DESCR= ${.CURDIR}/pkg-descr
LANGS= ja
RUN_DEPENDS+= ${LINUXBASE}/usr/share/locale/ja_JP/LC_COLLATE:${PORTSDIR}/japanese/linux_locale
PLIST= ${MASTERDIR}/pkg-plist20
+.elif ${PORTVERSION} == 1.3
+PLIST= ${MASTERDIR}/pkg-plist13
.elif ${PORTVERSION} == 1.3.1
LANGS= de es fr it ja ko nl pt zh zh_TW
RUN_DEPENDS+= ${LINUXBASE}/usr/share/locale/ja_JP/LC_COLLATE:${PORTSDIR}/japanese/linux_locale
@@ -142,14 +144,17 @@ $${GSCONF} < $$TMP | $${PIPS} -ui C,' \
${WRKDIR}/filter${PRTYPE} > ${WRKDIR}/filter${PRTYPE}.rev
.if ! defined(WITH_EKPD)
# Remake filter${PRTYPE}.rev
- ${SED} -e 's,$${GSCONF} | $${PIPS} -ui C,TMP=/tmp/pips.$$$$;\
-trap "rm -rf $$TMP; exit" 0 2 3 4 6 7 8 10 11 12 13 15;\
-psselect -r > $$TMP;\
-$${GSCONF} < $$TMP | $${PIPS} -ui C,' \
- -e 's,^GSCONF.*$$,GSCONF=${PREFIX}/libexec/pips${PRTYPE}/gsconfig${PRTYPE},' \
+.if ${PORTVERSION} == 1.3
+ ${SED} -e 's,^GSCONF.*$$,GSCONF=${PREFIX}/libexec/pips${PRTYPE}/gsconfig${PRTYPE},' \
+ -e 's,^PIPS.*$$,PIPS=${PREFIX}/bin/pips${PRTYPE},' \
+ -e 's,:/usr/local/bin$$,:${PREFIX}/bin,' \
+ ${FILESDIR}/filter13.rev > ${WRKDIR}/filter${PRTYPE}.rev
+.else
+ ${SED} -e 's,^GSCONF.*$$,GSCONF=${PREFIX}/libexec/pips${PRTYPE}/gsconfig${PRTYPE},' \
-e 's,^PIPS.*$$,PIPS=${PREFIX}/bin/pips${PRTYPE},' \
-e 's,:/usr/local/bin$$,:${PREFIX}/bin,' \
${FILESDIR}/filter.rev > ${WRKDIR}/filter${PRTYPE}.rev
+.endif
.endif #defined(WITH_EKPD)
.if ${PORTVERSION} == 2.0 || ${PORTVERSION} == 2.1
${MV} ${WRKDIR}/ekpdrc ${WRKDIR}/ekpdrc.org
diff --git a/print/pips800/files/filter13.rev b/print/pips800/files/filter13.rev
new file mode 100644
index 000000000000..7a5cdc9c487b
--- /dev/null
+++ b/print/pips800/files/filter13.rev
@@ -0,0 +1,15 @@
+#!/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 Ver. 1.3 (only pips3300)
+perl -e 'print "\000\000\000\033\001\@EJL\ 1284.4\n\@EJL \n\033\@"'
+${GSCONF} < $TMP | ${PIPS} -ui C
+rm -rf $TMP
diff --git a/print/pips800/pkg-plist13 b/print/pips800/pkg-plist13
new file mode 100644
index 000000000000..91b269e0ee2d
--- /dev/null
+++ b/print/pips800/pkg-plist13
@@ -0,0 +1,14 @@
+bin/pips%%PRTYPE%%
+libexec/%%BASE_NAME%%/filter%%PRTYPE%%
+libexec/%%BASE_NAME%%/filter%%PRTYPE%%.rev
+libexec/%%BASE_NAME%%/gsconfig%%PRTYPE%%
+libexec/%%BASE_NAME%%/setup
+libexec/%%BASE_NAME%%/scripts/en.lc
+libexec/%%BASE_NAME%%/scripts/ja.lc
+@dirrm libexec/%%BASE_NAME%%/scripts
+share/doc/%%BASE_NAME%%/readme%%PRTYPE%%
+%%LIB_README%%
+@dirrm libexec/%%BASE_NAME%%
+@dirrm share/doc/%%BASE_NAME%%
+@cwd /compat/linux
+%%LIB_DIR_FILE%%