summaryrefslogtreecommitdiff
path: root/print/foo2zjs
diff options
context:
space:
mode:
Diffstat (limited to 'print/foo2zjs')
-rw-r--r--print/foo2zjs/DESCR12
-rw-r--r--print/foo2zjs/Makefile39
-rw-r--r--print/foo2zjs/PLIST141
-rw-r--r--print/foo2zjs/distinfo7
-rw-r--r--print/foo2zjs/patches/patch-Makefile26
-rw-r--r--print/foo2zjs/patches/patch-icc2ps_Makefile18
6 files changed, 243 insertions, 0 deletions
diff --git a/print/foo2zjs/DESCR b/print/foo2zjs/DESCR
new file mode 100644
index 00000000000..4781c200949
--- /dev/null
+++ b/print/foo2zjs/DESCR
@@ -0,0 +1,12 @@
+foo2zjs is an open source printer driver for printers that use the Zenographics
+ZjStream wire protocol for their print data, such as the Minolta/QMS magicolor
+2300 DL or Konica Minolta magicolor 2430 DL or HP LaserJet 1020 or HP LaserJet
+Pro P1102 or HP LaserJet Pro P1102w or HP LaserJet Pro CP1025nw. These printers
+are often erroneously referred to as winprinters or GDI printers. However,
+Microsoft GDI only mandates the API between an application and the printer
+driver, not the protocol on the wire between the printer driver and the printer.
+In fact, ZjStream printers are raster printers which happen to use a very
+efficient wire protocol which was developed by Zenographics and licensed by
+most major printer manufacturers for at least some of their product lines.
+ZjStream is just one of many wire protocols that are in use today, such as
+Postscript, PCL, Epson, etc.
diff --git a/print/foo2zjs/Makefile b/print/foo2zjs/Makefile
new file mode 100644
index 00000000000..05533955f3f
--- /dev/null
+++ b/print/foo2zjs/Makefile
@@ -0,0 +1,39 @@
+# $NetBSD: Makefile,v 1.1 2012/07/25 17:15:45 imil Exp $
+#
+
+DISTNAME= foo2zjs
+PKGNAME= ${DISTNAME}-20120516
+CATEGORIES= print
+MASTER_SITES= http://foo2zjs.rkkda.com/
+
+MAINTAINER= imil@NetBSD.org
+HOMEPAGE= http://foo2zjs.rkkda.com/
+COMMENT= Printer driver for Zenographics ZjStream wire protocol
+LICENSE= gnu-gpl-v2
+
+PKG_DESTDIR_SUPPORT= user-destdir
+
+USE_TOOLS+= gmake
+
+INSTALLATION_DIRS+= bin ${PKGMANDIR}/man1
+INSTALLATION_DIRS+= share/foo2zjs share/foomatic/ppd/foo2zjs
+
+DEPENDS+= foomatic-filters-cups>=3.0:../../print/foomatic-filters-cups
+
+SUBST_CLASSES+= paths
+SUBST_MESSAGE.paths= Fix PREFIX.
+SUBST_FILES.paths= Makefile icc2ps/Makefile
+SUBST_SED.paths= -e "s,@PREFIX@,${DESTDIR}${PREFIX},"
+SUBST_SED.paths+= -e "s,@PKGMANDIR@,${DESTDIR}${PREFIX}/${PKGMANDIR},"
+SUBST_STAGE.paths= post-patch
+
+do-build:
+ cd ${WRKSRC} && ${GMAKE} ${PROGS}
+
+do-install:
+ cd ${WRKSRC} && ${GMAKE} install-prog install-man
+ # cheaper than upstream's "portable" Makefile
+ ${INSTALL_DATA} ${WRKSRC}/PPD/*.ppd \
+ ${DESTDIR}${PREFIX}/share/foomatic/ppd/foo2zjs
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/print/foo2zjs/PLIST b/print/foo2zjs/PLIST
new file mode 100644
index 00000000000..a25cbf0dbab
--- /dev/null
+++ b/print/foo2zjs/PLIST
@@ -0,0 +1,141 @@
+@comment $NetBSD: PLIST,v 1.1 2012/07/25 17:15:45 imil Exp $
+bin/arm2hpdl
+bin/foo2hiperc
+bin/foo2hiperc-wrapper
+bin/foo2hp
+bin/foo2hp2600-wrapper
+bin/foo2lava
+bin/foo2lava-wrapper
+bin/foo2oak
+bin/foo2oak-wrapper
+bin/foo2qpdl
+bin/foo2qpdl-wrapper
+bin/foo2slx
+bin/foo2slx-wrapper
+bin/foo2xqx
+bin/foo2xqx-wrapper
+bin/foo2zjs
+bin/foo2zjs-pstops
+bin/foo2zjs-wrapper
+bin/gipddecode
+bin/hbpldecode
+bin/hipercdecode
+bin/lavadecode
+bin/oakdecode
+bin/opldecode
+bin/printer-profile
+bin/qpdldecode
+bin/slxdecode
+bin/xqxdecode
+bin/zjsdecode
+man/man1/arm2hpdl.1
+man/man1/foo2hiperc-wrapper.1
+man/man1/foo2hiperc.1
+man/man1/foo2hp.1
+man/man1/foo2hp2600-wrapper.1
+man/man1/foo2lava-wrapper.1
+man/man1/foo2lava.1
+man/man1/foo2oak-wrapper.1
+man/man1/foo2oak.1
+man/man1/foo2qpdl-wrapper.1
+man/man1/foo2qpdl.1
+man/man1/foo2slx-wrapper.1
+man/man1/foo2slx.1
+man/man1/foo2xqx-wrapper.1
+man/man1/foo2xqx.1
+man/man1/foo2zjs-icc2ps.1
+man/man1/foo2zjs-pstops.1
+man/man1/foo2zjs-wrapper.1
+man/man1/foo2zjs.1
+man/man1/gipddecode.1
+man/man1/hbpldecode.1
+man/man1/hipercdecode.1
+man/man1/lavadecode.1
+man/man1/oakdecode.1
+man/man1/opldecode.1
+man/man1/printer-profile.1
+man/man1/qpdldecode.1
+man/man1/slxdecode.1
+man/man1/usb_printerid.1
+man/man1/xqxdecode.1
+man/man1/zjsdecode.1
+share/foo2zjs/gamma-lookup.ps
+share/foo2zjs/gamma.ps
+share/foomatic/ppd/foo2zjs/Generic-OAKT_Printer.ppd
+share/foomatic/ppd/foo2zjs/Generic-ZjStream_Printer.ppd
+share/foomatic/ppd/foo2zjs/HP-Color_LaserJet_1500.ppd
+share/foomatic/ppd/foo2zjs/HP-Color_LaserJet_1600.ppd
+share/foomatic/ppd/foo2zjs/HP-Color_LaserJet_2600n.ppd
+share/foomatic/ppd/foo2zjs/HP-Color_LaserJet_CP1215.ppd
+share/foomatic/ppd/foo2zjs/HP-LaserJet_1000.ppd
+share/foomatic/ppd/foo2zjs/HP-LaserJet_1005.ppd
+share/foomatic/ppd/foo2zjs/HP-LaserJet_1018.ppd
+share/foomatic/ppd/foo2zjs/HP-LaserJet_1020.ppd
+share/foomatic/ppd/foo2zjs/HP-LaserJet_1022.ppd
+share/foomatic/ppd/foo2zjs/HP-LaserJet_1022n.ppd
+share/foomatic/ppd/foo2zjs/HP-LaserJet_1022nw.ppd
+share/foomatic/ppd/foo2zjs/HP-LaserJet_M1005_MFP.ppd
+share/foomatic/ppd/foo2zjs/HP-LaserJet_M1120_MFP.ppd
+share/foomatic/ppd/foo2zjs/HP-LaserJet_M1319_MFP.ppd
+share/foomatic/ppd/foo2zjs/HP-LaserJet_P1005.ppd
+share/foomatic/ppd/foo2zjs/HP-LaserJet_P1006.ppd
+share/foomatic/ppd/foo2zjs/HP-LaserJet_P1007.ppd
+share/foomatic/ppd/foo2zjs/HP-LaserJet_P1008.ppd
+share/foomatic/ppd/foo2zjs/HP-LaserJet_P1505.ppd
+share/foomatic/ppd/foo2zjs/HP-LaserJet_P1505n.ppd
+share/foomatic/ppd/foo2zjs/HP-LaserJet_P2014.ppd
+share/foomatic/ppd/foo2zjs/HP-LaserJet_P2014n.ppd
+share/foomatic/ppd/foo2zjs/HP-LaserJet_P2035.ppd
+share/foomatic/ppd/foo2zjs/HP-LaserJet_P2035n.ppd
+share/foomatic/ppd/foo2zjs/HP-LaserJet_Pro_CP1025nw.ppd
+share/foomatic/ppd/foo2zjs/HP-LaserJet_Pro_P1102.ppd
+share/foomatic/ppd/foo2zjs/HP-LaserJet_Pro_P1102w.ppd
+share/foomatic/ppd/foo2zjs/HP-LaserJet_Pro_P1566.ppd
+share/foomatic/ppd/foo2zjs/HP-LaserJet_Pro_P1606dn.ppd
+share/foomatic/ppd/foo2zjs/KONICA_MINOLTA-magicolor_1600W.ppd
+share/foomatic/ppd/foo2zjs/KONICA_MINOLTA-magicolor_1680MF.ppd
+share/foomatic/ppd/foo2zjs/KONICA_MINOLTA-magicolor_1690MF.ppd
+share/foomatic/ppd/foo2zjs/KONICA_MINOLTA-magicolor_2430_DL.ppd
+share/foomatic/ppd/foo2zjs/KONICA_MINOLTA-magicolor_2480_MF.ppd
+share/foomatic/ppd/foo2zjs/KONICA_MINOLTA-magicolor_2490_MF.ppd
+share/foomatic/ppd/foo2zjs/KONICA_MINOLTA-magicolor_2530_DL.ppd
+share/foomatic/ppd/foo2zjs/KONICA_MINOLTA-magicolor_4690MF.ppd
+share/foomatic/ppd/foo2zjs/Kyocera-KM-1635.ppd
+share/foomatic/ppd/foo2zjs/Kyocera-KM-2035.ppd
+share/foomatic/ppd/foo2zjs/Lexmark-C500.ppd
+share/foomatic/ppd/foo2zjs/Minolta-Color_PageWorks_Pro_L.ppd
+share/foomatic/ppd/foo2zjs/Minolta-magicolor_2200_DL.ppd
+share/foomatic/ppd/foo2zjs/Minolta-magicolor_2300_DL.ppd
+share/foomatic/ppd/foo2zjs/Minolta-magicolor_2430_DL.ppd
+share/foomatic/ppd/foo2zjs/Oki-C110.ppd
+share/foomatic/ppd/foo2zjs/Oki-C3100.ppd
+share/foomatic/ppd/foo2zjs/Oki-C310dn.ppd
+share/foomatic/ppd/foo2zjs/Oki-C3200.ppd
+share/foomatic/ppd/foo2zjs/Oki-C3300.ppd
+share/foomatic/ppd/foo2zjs/Oki-C3400.ppd
+share/foomatic/ppd/foo2zjs/Oki-C3530_MFP.ppd
+share/foomatic/ppd/foo2zjs/Oki-C5100.ppd
+share/foomatic/ppd/foo2zjs/Oki-C5200.ppd
+share/foomatic/ppd/foo2zjs/Oki-C5500.ppd
+share/foomatic/ppd/foo2zjs/Oki-C5600.ppd
+share/foomatic/ppd/foo2zjs/Oki-C5650.ppd
+share/foomatic/ppd/foo2zjs/Oki-C5800.ppd
+share/foomatic/ppd/foo2zjs/Olivetti-d-Color_P160W.ppd
+share/foomatic/ppd/foo2zjs/Samsung-CLP-300.ppd
+share/foomatic/ppd/foo2zjs/Samsung-CLP-310.ppd
+share/foomatic/ppd/foo2zjs/Samsung-CLP-315.ppd
+share/foomatic/ppd/foo2zjs/Samsung-CLP-325.ppd
+share/foomatic/ppd/foo2zjs/Samsung-CLP-600.ppd
+share/foomatic/ppd/foo2zjs/Samsung-CLP-610.ppd
+share/foomatic/ppd/foo2zjs/Samsung-CLP-620.ppd
+share/foomatic/ppd/foo2zjs/Samsung-CLX-2160.ppd
+share/foomatic/ppd/foo2zjs/Samsung-CLX-3160.ppd
+share/foomatic/ppd/foo2zjs/Samsung-CLX-3175.ppd
+share/foomatic/ppd/foo2zjs/Xerox-Phaser_6110.ppd
+share/foomatic/ppd/foo2zjs/Xerox-Phaser_6115MFP.ppd
+share/foomatic/ppd/foo2zjs/Xerox-Phaser_6121MFP.ppd
+@pkgdir share/foo2xqx
+@pkgdir share/foo2oak
+@pkgdir share/foo2lava
+@pkgdir share/foo2hp
+@pkgdir share/foo2hiperc
diff --git a/print/foo2zjs/distinfo b/print/foo2zjs/distinfo
new file mode 100644
index 00000000000..0a86a38a764
--- /dev/null
+++ b/print/foo2zjs/distinfo
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.1 2012/07/25 17:15:45 imil Exp $
+
+SHA1 (foo2zjs.tar.gz) = c1a3aeb88cca8b284685c3457a7cc33d78319147
+RMD160 (foo2zjs.tar.gz) = f24945860e41fda61342a9b867123202ecf82179
+Size (foo2zjs.tar.gz) = 1644122 bytes
+SHA1 (patch-Makefile) = f12220eb3b77bafd63386ed7a1018dbacb9ae821
+SHA1 (patch-icc2ps_Makefile) = 14dded40d85dcf75428277621b766963be837c12
diff --git a/print/foo2zjs/patches/patch-Makefile b/print/foo2zjs/patches/patch-Makefile
new file mode 100644
index 00000000000..1abf8136b42
--- /dev/null
+++ b/print/foo2zjs/patches/patch-Makefile
@@ -0,0 +1,26 @@
+$NetBSD: patch-Makefile,v 1.1 2012/07/25 17:15:45 imil Exp $
+
+Fix PREFIX path
+
+--- Makefile.orig 2012-06-01 23:10:31.000000000 +0000
++++ Makefile
+@@ -17,9 +17,7 @@ SYSNAME := $(shell uname -n)
+ VERSION=0.0
+
+ # Installation prefix...
+-PREFIX=/usr/local
+-PREFIX=/usr
+-PREFIX=$(DESTDIR)/usr
++PREFIX=@PREFIX@
+
+ # Pathnames for this package...
+ BIN=$(PREFIX)/bin
+@@ -31,7 +29,7 @@ SHARELAVA=$(PREFIX)/share/foo2lava
+ SHAREQPDL=$(PREFIX)/share/foo2qpdl
+ SHARESLX=$(PREFIX)/share/foo2slx
+ SHAREHC=$(PREFIX)/share/foo2hiperc
+-MANDIR=$(PREFIX)/share/man
++MANDIR=@PKGMANDIR@
+ DOCDIR=$(PREFIX)/share/doc/foo2zjs/
+ INSTALL=install
+ ROOT=root
diff --git a/print/foo2zjs/patches/patch-icc2ps_Makefile b/print/foo2zjs/patches/patch-icc2ps_Makefile
new file mode 100644
index 00000000000..ad65d40a5b4
--- /dev/null
+++ b/print/foo2zjs/patches/patch-icc2ps_Makefile
@@ -0,0 +1,18 @@
+$NetBSD: patch-icc2ps_Makefile,v 1.1 2012/07/25 17:15:45 imil Exp $
+
+Fix PREFIX path
+
+--- icc2ps/Makefile.orig 2010-11-27 10:04:56.000000000 +0000
++++ icc2ps/Makefile
+@@ -1,9 +1,8 @@
+ UNAME := $(shell uname)
+
+-PREFIX= /usr
+-PREFIX= $(DESTDIR)/usr
++PREFIX= @PREFIX@
+ BIN= $(PREFIX)/bin
+-MANDIR=$(PREFIX)/share/man
++MANDIR= @PKGMANDIR@
+
+ SRC= icc2ps.c xgetopt.c
+ LIB= cmscam97.c cmscnvrt.c cmserr.c cmsgamma.c cmsgmt.c cmsintrp.c cmsio1.c \