summaryrefslogtreecommitdiff
path: root/print/ghostscript-gpl/files
diff options
context:
space:
mode:
authorMichael Nottebrock <lofi@FreeBSD.org>2007-03-28 16:22:09 +0000
committerMichael Nottebrock <lofi@FreeBSD.org>2007-03-28 16:22:09 +0000
commit1688d058dee4ffcbf8615c7218a308df660f63b4 (patch)
tree993cf92d88a9f54ee01da81da35284c8eda29d77 /print/ghostscript-gpl/files
parentUpdate to 0.9989 (diff)
Add hl1250 driver, which adds support for the Brother HL-1250 and
compatible printers (for a comprehensive list see http://www.linuxprinting.org/show_printer.cgi?recnum=Brother-HL-1250).
Notes
Notes: svn path=/head/; revision=188670
Diffstat (limited to 'print/ghostscript-gpl/files')
-rw-r--r--print/ghostscript-gpl/files/gdevhl12-hl1250.mak16
-rw-r--r--print/ghostscript-gpl/files/patch-src:gdevhl12.c11
2 files changed, 27 insertions, 0 deletions
diff --git a/print/ghostscript-gpl/files/gdevhl12-hl1250.mak b/print/ghostscript-gpl/files/gdevhl12-hl1250.mak
new file mode 100644
index 000000000000..8e1421ad1f03
--- /dev/null
+++ b/print/ghostscript-gpl/files/gdevhl12-hl1250.mak
@@ -0,0 +1,16 @@
+### -------------------- The Brother HL-1250 printer -------------------- ###
+### This printer is ljet4-compatible, plus support for source tray ###
+### selection and special 1200x600 dpi mode. ###
+
+hl1250_=$(GLOBJ)gdevhl12.$(OBJ) $(HPDLJM)
+$(DD)hl1250.dev : $(hl1250_) $(DD)page.dev
+ $(SETPDEV) $(DD)hl1250 $(hl1250_)
+
+$(DD)hl1240.dev : $(hl1250_) $(DD)page.dev
+ $(SETPDEV) $(DD)hl1240 $(hl1250_)
+
+# Author: Marek Michalkiewicz <marekm@linux.org.pl>
+# Printer: Brother HL-1250 (may work with some other models too)
+$(GLOBJ)gdevhl12.$(OBJ) : $(GLSRC)gdevhl12.c $(PDEVH) $(gdevdljm_h)
+ $(GLCC) $(GLO_)gdevhl12.$(OBJ) $(C_) $(GLSRC)gdevhl12.c
+
diff --git a/print/ghostscript-gpl/files/patch-src:gdevhl12.c b/print/ghostscript-gpl/files/patch-src:gdevhl12.c
new file mode 100644
index 000000000000..45c0472a983d
--- /dev/null
+++ b/print/ghostscript-gpl/files/patch-src:gdevhl12.c
@@ -0,0 +1,11 @@
+--- src/gdevhl12.c.orig Wed Mar 28 14:10:35 2007
++++ src/gdevhl12.c Wed Mar 28 14:13:21 2007
+@@ -472,7 +472,7 @@
+ for (y = ytop; y < ybottom; y++) {
+ if (hl1250_compress_line(s, y))
+ continue;
+-#if 1
++#if 0
+ /* XXX - please report if you ever see this, then change to #if 0 */
+ fprintf(stderr,
+ "hl1250: compression failed (y=%u), doing 1200x300 dpi\n",