aboutsummaryrefslogtreecommitdiffstats
path: root/print
diff options
context:
space:
mode:
authortaoka <taoka@FreeBSD.org>2000-09-02 00:35:54 +0800
committertaoka <taoka@FreeBSD.org>2000-09-02 00:35:54 +0800
commitf68615d31c90969d85674459b452458fab96290a (patch)
tree9eb5bbd0b7793d6115edd55830621cf97a45e5be /print
parentda974e4341252c80c4c8616c6ad9b085c0a33289 (diff)
downloadfreebsd-ports-gnome-f68615d31c90969d85674459b452458fab96290a.tar.gz
freebsd-ports-gnome-f68615d31c90969d85674459b452458fab96290a.tar.zst
freebsd-ports-gnome-f68615d31c90969d85674459b452458fab96290a.zip
Photo Image Print System for Linux --- EPSON PM-800C
Diffstat (limited to 'print')
-rw-r--r--print/pips800/Makefile76
-rw-r--r--print/pips800/distinfo1
-rw-r--r--print/pips800/files/filter.rev13
-rw-r--r--print/pips800/pkg-comment1
-rw-r--r--print/pips800/pkg-descr17
-rw-r--r--print/pips800/pkg-plist10
6 files changed, 118 insertions, 0 deletions
diff --git a/print/pips800/Makefile b/print/pips800/Makefile
new file mode 100644
index 000000000000..4ea1c1059fc1
--- /dev/null
+++ b/print/pips800/Makefile
@@ -0,0 +1,76 @@
+# New ports collection makefile for: pips for EPSON PM-800C
+# Date created: 00/05/22
+# Whom: Satoshi Taoka <taoka@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= pips${PRTYPE}
+PORTVERSION= 1.2
+CATEGORIES= print linux
+MASTER_SITES?= http://www.epkowa.on.arena.ne.jp/pips/data/800/
+DISTNAME?= ${PORTNAME}-${PORTVERSION}
+EXTRACT_SUFX= .i386.tgz
+
+MAINTAINER= taoka@FreeBSD.org
+
+RUN_DEPENDS+= /compat/linux/lib/libc.so.6:${PORTSDIR}/emulators/linux_base \
+ /compat/linux/usr/lib/libgtk-1.2.so.0:${PORTSDIR}/x11-toolkits/linux-gtk \
+ pstops:${PORTSDIR}/print/psutils-${PAPERSIZE}
+
+ONLY_FOR_ARCHS= i386
+NO_WRKSUBDIR= yes
+PLIST_SUB= BASE_NAME=${BASE_NAME} PRTYPE=${PRTYPE}
+
+BASE_NAME= pips${PRTYPE}
+PAPERSIZE?= a4
+
+.include <bsd.port.pre.mk>
+MD5_FILE= ${.CURDIR}/files/md5
+PRTYPE?= 800
+
+do-build:
+ ${MV} ${WRKDIR}/filter${PRTYPE} ${WRKDIR}/filter${PRTYPE}.org
+ ${SED} -e 's,/usr/local/EPKowa/PM${PRTYPE}C/gsconfig${PRTYPE},${PREFIX}/libexec/pips${PRTYPE}/gsconfig${PRTYPE},' \
+ -e 's,/usr/bin/pips${PRTYPE},${PREFIX}/bin/pips${PRTYPE},' \
+ -e 's,:/usr/local/bin$$,:${PREFIX}/bin,' \
+ ${WRKDIR}/filter${PRTYPE}.org > ${WRKDIR}/filter${PRTYPE}
+ ${SED} -e 's,/usr/local/EPKowa/PM${PRTYPE}C/gsconfig${PRTYPE},${PREFIX}/libexec/pips${PRTYPE}/gsconfig${PRTYPE},' \
+ -e 's,/usr/bin/pips${PRTYPE},${PREFIX}/bin/pips${PRTYPE},' \
+ -e 's,:/usr/local/bin$$,:${PREFIX}/bin,' \
+ -e 's,800$$,${PRTYPE},' \
+ ${FILESDIR}/filter.rev > ${WRKDIR}/filter${PRTYPE}.rev
+
+do-install:
+ ${MKDIR} ${PREFIX}/libexec/${BASE_NAME}
+ ${INSTALL_SCRIPT} ${WRKDIR}/filter${PRTYPE} ${PREFIX}/libexec/${BASE_NAME}
+ ${INSTALL_SCRIPT} ${WRKDIR}/filter${PRTYPE}.rev ${PREFIX}/libexec/${BASE_NAME}
+# ${INSTALL_SCRIPT} ${FILESDIR}/pips_filter ${PREFIX}/libexec/${BASE_NAME}
+ ${INSTALL_DATA} ${WRKSRC}/gsconfig${PRTYPE} ${PREFIX}/libexec/${BASE_NAME}
+ chmod +x ${PREFIX}/libexec/${BASE_NAME}/gsconfig${PRTYPE}
+ ${INSTALL_DATA} ${WRKSRC}/libPrt${PRTYPE}.so /compat/linux/usr/lib/
+ -/compat/linux/sbin/ldconfig
+ ${INSTALL_DATA} ${WRKSRC}/pips${PRTYPE} ${PREFIX}/bin
+ chmod +x ${PREFIX}/bin/pips${PRTYPE}
+.if !defined(NOPORTSDOCS)
+ ${MKDIR} ${PREFIX}/share/doc/${BASE_NAME}
+ ${INSTALL_DATA} ${WRKSRC}/readme${PRTYPE} ${PREFIX}/share/doc/${BASE_NAME}
+.endif
+
+.include <bsd.port.post.mk>
+
+# target for maintainer
+_MAKE_COMMENT_DESCR:
+.if ${PRTYPE} != 800
+.for file in pkg/COMMENT pkg/DESCR
+.if ${PRTYPE} == 820_3300
+ ${SED} -e 's/PM-800C/PM-820C PM-3300C/g' \
+ -e 's/pm800c/pm820c_3300c/g' \
+ -e 's/800/${PRTYPE}/g' \
+ ${MASTERDIR}/${file} > ${.CURDIR}/${file}
+.else
+ ${SED} -e 's/800/${PRTYPE}/g' ${MASTERDIR}/${file} \
+ > ${.CURDIR}/${file}
+.endif
+.endfor
+.endif
diff --git a/print/pips800/distinfo b/print/pips800/distinfo
new file mode 100644
index 000000000000..a8d95b0cae92
--- /dev/null
+++ b/print/pips800/distinfo
@@ -0,0 +1 @@
+MD5 (pips800-1.2.i386.tgz) = 8dba11f6a2a875678654281af07cd4c1
diff --git a/print/pips800/files/filter.rev b/print/pips800/files/filter.rev
new file mode 100644
index 000000000000..3c02e05aa64c
--- /dev/null
+++ b/print/pips800/files/filter.rev
@@ -0,0 +1,13 @@
+#!/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
+${GSCONF} < $TMP | ${PIPS} -ui C
+rm -rf $TMP
diff --git a/print/pips800/pkg-comment b/print/pips800/pkg-comment
new file mode 100644
index 000000000000..47986b1204f0
--- /dev/null
+++ b/print/pips800/pkg-comment
@@ -0,0 +1 @@
+Photo Image Print System for Linux --- EPSON PM-800C
diff --git a/print/pips800/pkg-descr b/print/pips800/pkg-descr
new file mode 100644
index 000000000000..0c0c437dafd5
--- /dev/null
+++ b/print/pips800/pkg-descr
@@ -0,0 +1,17 @@
+Photo Image Print System for Linux is the Printer filter for EPSON
+PM-800C. By using this driver you can print out as high quality as you
+use Windows driver. See the below URL:
+
+WWW: http://www.epkowa.co.jp/
+
+And this port has a modified filter "filter800.rev" when you print out
+more than one page useful. For example, if you use it, you add the
+next entry into /etc/printcap.
+
+pm800c|EPSON PM-800C:\
+ :lp=/dev/lpt0:\
+ :sh:\
+ :if=/usr/local/libexec/pips800/filter800.rev:\
+ :sd=/var/spool/lpd/pm800c:\
+ :mx#0:\
+ :lf=/var/log/lpd-errs
diff --git a/print/pips800/pkg-plist b/print/pips800/pkg-plist
new file mode 100644
index 000000000000..345cfec523d2
--- /dev/null
+++ b/print/pips800/pkg-plist
@@ -0,0 +1,10 @@
+bin/pips%%PRTYPE%%
+libexec/%%BASE_NAME%%/filter%%PRTYPE%%
+libexec/%%BASE_NAME%%/filter%%PRTYPE%%.rev
+libexec/%%BASE_NAME%%/gsconfig%%PRTYPE%%
+share/doc/%%BASE_NAME%%/readme%%PRTYPE%%
+@dirrm libexec/%%BASE_NAME%%
+@dirrm share/doc/%%BASE_NAME%%
+@cwd /compat/linux
+usr/lib/libPrt%%PRTYPE%%.so
+@exec /compat/linux/sbin/ldconfig ; true