aboutsummaryrefslogtreecommitdiffstats
path: root/print
diff options
context:
space:
mode:
authorlofi <lofi@FreeBSD.org>2007-03-28 22:08:01 +0800
committerlofi <lofi@FreeBSD.org>2007-03-28 22:08:01 +0800
commitae22116563791e7cfb3ae76b0209183c57193d0d (patch)
treed32a58f5d5daae446a996807113715a44087dcec /print
parent5bef4767382c22701e969e99bd449db758bb8e49 (diff)
downloadfreebsd-ports-graphics-ae22116563791e7cfb3ae76b0209183c57193d0d.tar.gz
freebsd-ports-graphics-ae22116563791e7cfb3ae76b0209183c57193d0d.tar.zst
freebsd-ports-graphics-ae22116563791e7cfb3ae76b0209183c57193d0d.zip
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).
Diffstat (limited to 'print')
-rw-r--r--print/ghostscript-afpl/Makefile16
-rw-r--r--print/ghostscript-afpl/Makefile.inc2
-rw-r--r--print/ghostscript-afpl/distinfo6
-rw-r--r--print/ghostscript-afpl/files/gdevhl12-hl1250.mak16
-rw-r--r--print/ghostscript-afpl/files/patch-src:gdevhl12.c11
-rw-r--r--print/ghostscript-afpl/scripts/configure3
6 files changed, 51 insertions, 3 deletions
diff --git a/print/ghostscript-afpl/Makefile b/print/ghostscript-afpl/Makefile
index 937e3911bfd..c49faaeb5dd 100644
--- a/print/ghostscript-afpl/Makefile
+++ b/print/ghostscript-afpl/Makefile
@@ -22,6 +22,7 @@ MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:S/$/:gs_srcs,bjc250/} \
http://www.linuxprinting.org/download/printing/samsung-gdi/:gdi \
http://www.linuxprinting.org/download/printing/:lxm3200 \
http://homepage.powerup.com.au/~pbwest/lexmark/:lx5000 \
+ http://www.openprinting.org/download/printing/ghostscript-8.x/drivers/hl1250/:hl1250 \
ftp://mirror.cs.wisc.edu/pub/mirrors/ghost/AFPL/gs${GS_VERSION:S/.//}/:gs_srcs
MASTER_SITE_SUBDIR= ghostscript/:gs_srcs,ports_jp_gs \
bjc250gs/:bjc250 \
@@ -43,7 +44,8 @@ DISTFILES= ${GS_SRCS}:gs_srcs \
${GDI_SRCS}:gdi \
${LXM3200_SRCS}:lxm3200 \
${LX5000_SRCS}:lx5000 \
- ${LEX7000_SRCS}:lx5000
+ ${LEX7000_SRCS}:lx5000 \
+ ${HL1250_SRCS}:hl1250
DIST_SUBDIR= ghostscript
EXTRACT_ONLY= ${GS_SRCS}
@@ -210,6 +212,10 @@ LX5000_SRCS= gdevlx50.c
LEX7000= lex7000
LEX7000_SRCS= gs6.0.lexmark7000.patch
+# HL1250 - additional driver for Brother HL-1050/1070/1250/1270N/1030/1240
+HL1250= hl1250
+HL1250_SRCS= gdevhl12.c
+
# contributed uniprint profiles
CONTRIB_UPP= lqx70ch.upp lqx70cl.upp lqx70cm.upp \
stc740ih.upp stc740p.upp stc740pl.upp
@@ -291,6 +297,10 @@ post-extract:
${CAT} ${DISTDIR}/${DIST_SUBDIR}/${LEX7000_SRCS} | \
${PATCH} -d ${WRKSRC}/${LEX7000} -f -s -N -E -p1 \
2>/dev/null || ${TRUE}
+# for HL1250 driver
+ ${ECHO_MSG} ">>> extracting ${HL1250_SRCS} ..."
+ ${MKDIR} ${WRKSRC}/${HL1250}
+ ${CP} ${DISTDIR}/${DIST_SUBDIR}/${HL1250_SRCS} ${WRKSRC}/src
post-patch:
${REINPLACE_CMD} -e 's|^DEVICE_DEVS|#DEVICE_DEVS|g' \
@@ -364,6 +374,10 @@ pre-configure:
${ECHO_MSG} ">>> adding ${LEX7000} driver to contrib.mak ..."
${CAT} ${FILESDIR}/lex7000.contrib.mak \
>> ${WRKSRC}/src/contrib.mak
+# for HL1250 driver
+ ${ECHO_MSG} ">>> adding ${HL1250} driver to contrib.mak ..."
+ ${CAT} ${FILESDIR}/gdevhl12-hl1250.mak \
+ >> ${WRKSRC}/src/contrib.mak
pre-build:
${ECHO_MSG} ">>> in pre-build ..."
diff --git a/print/ghostscript-afpl/Makefile.inc b/print/ghostscript-afpl/Makefile.inc
index 1d2f1aec7b8..96a9c65d318 100644
--- a/print/ghostscript-afpl/Makefile.inc
+++ b/print/ghostscript-afpl/Makefile.inc
@@ -1,5 +1,5 @@
# $FreeBSD$
GS_VERSION= 8.54
-GS_REVISION= 1
+GS_REVISION= 2
GS_EPOCH= 1
diff --git a/print/ghostscript-afpl/distinfo b/print/ghostscript-afpl/distinfo
index a18660d441d..cbbf5cb63e4 100644
--- a/print/ghostscript-afpl/distinfo
+++ b/print/ghostscript-afpl/distinfo
@@ -46,3 +46,9 @@ SIZE (ghostscript/gdevlx50.c) = 99428
MD5 (ghostscript/gs6.0.lexmark7000.patch) = fd5018c18351bf64805fe5727be196de
SHA256 (ghostscript/gs6.0.lexmark7000.patch) = 509dfc02436639ce6b9f98465ec306dd2e7f9342feded043c78b0c9cf44021df
SIZE (ghostscript/gs6.0.lexmark7000.patch) = 27361
+MD5 (ghostscript/gdevhl12.c) = 277c5ddac9c6fb0e2897e95265eb1ff1
+SHA256 (ghostscript/gdevhl12.c) = 0abaa60cbe950b9c923753a687181b775910ecff0848917641e281737f03527a
+SIZE (ghostscript/gdevhl12.c) = 22001
+MD5 (ghostscript/gdevhl12-hl1250.mak) = e5838642567ec2da6660ef2d6a602cff
+SHA256 (ghostscript/gdevhl12-hl1250.mak) = 1acde11d9ebd11a590e33b76ec3a1ead12ab775e42b0ebb52d685310380ff7a8
+SIZE (ghostscript/gdevhl12-hl1250.mak) = 678
diff --git a/print/ghostscript-afpl/files/gdevhl12-hl1250.mak b/print/ghostscript-afpl/files/gdevhl12-hl1250.mak
new file mode 100644
index 00000000000..8e1421ad1f0
--- /dev/null
+++ b/print/ghostscript-afpl/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-afpl/files/patch-src:gdevhl12.c b/print/ghostscript-afpl/files/patch-src:gdevhl12.c
new file mode 100644
index 00000000000..45c0472a983
--- /dev/null
+++ b/print/ghostscript-afpl/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",
diff --git a/print/ghostscript-afpl/scripts/configure b/print/ghostscript-afpl/scripts/configure
index 1b6cb2e9180..8a3f778600e 100644
--- a/print/ghostscript-afpl/scripts/configure
+++ b/print/ghostscript-afpl/scripts/configure
@@ -24,7 +24,7 @@ else
$svgalibdevs \
md2k md5k \
md50Mono md50Eco md1xMono \
- appledmp iwhi iwlo iwlq hl7x0 bj10e \
+ appledmp iwhi iwlo iwlq hl7x0 hl1250 bj10e \
bj10v bj10vh bj200 bjc600 bjc800 \
bjccmyk bjccolor bjcgray bjcmono \
lbp8 \
@@ -118,6 +118,7 @@ Have fun with this new configuration style ! -andreas \n\n\
"iwlo" "Apple Imagewriter, low-resolution mode" "$status_iwlo" \
"iwlq" "Apple Imagewriter LQ in 320 x 216 dpi mode" "$status_iwlq" \
"hl7x0" "Brother HL720 and HL730 (HL760=PCL), MFC6550MC Fax Machine" "$status_hl7x0" \
+ "hl1250" "Brother HL-1030/1050/1070/1250/1270N/14x0" "$status_hl1250" \
"bj10e" "Canon BubbleJet BJ-10e" "$status_bj10e" \
"bj10v" "Canon BubbleJet BJ-10v [BJ10V]" "$status_bj10v" \
"bj10vh" "Canon BubbleJet BJ-10v, high-mergin [BJ10V]" "$status_bj10vh" \