mirror of
https://git.FreeBSD.org/ports.git
synced 2025-02-05 11:35:01 +00:00
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).
This commit is contained in:
parent
3eb8c27b82
commit
1688d058de
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=188670
@ -23,6 +23,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/samsung-gdi/:gdi \
|
||||||
http://www.linuxprinting.org/download/printing/:lxm3200 \
|
http://www.linuxprinting.org/download/printing/:lxm3200 \
|
||||||
http://homepage.powerup.com.au/~pbwest/lexmark/:lx5000 \
|
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/GPL/gs${GS_VERSION:S/.//}/:gs_srcs
|
ftp://mirror.cs.wisc.edu/pub/mirrors/ghost/GPL/gs${GS_VERSION:S/.//}/:gs_srcs
|
||||||
MASTER_SITE_SUBDIR= ghostscript/:gs_srcs,ports_jp_gs \
|
MASTER_SITE_SUBDIR= ghostscript/:gs_srcs,ports_jp_gs \
|
||||||
bjc250gs/:bjc250 \
|
bjc250gs/:bjc250 \
|
||||||
@ -46,7 +47,8 @@ DISTFILES= ${GS_SRCS}:gs_srcs \
|
|||||||
${GDI_SRCS}:gdi \
|
${GDI_SRCS}:gdi \
|
||||||
${LXM3200_SRCS}:lxm3200 \
|
${LXM3200_SRCS}:lxm3200 \
|
||||||
${LX5000_SRCS}:lx5000 \
|
${LX5000_SRCS}:lx5000 \
|
||||||
${LEX7000_SRCS}:lx5000
|
${LEX7000_SRCS}:lx5000 \
|
||||||
|
${HL1250_SRCS}:hl1250
|
||||||
DIST_SUBDIR= ghostscript
|
DIST_SUBDIR= ghostscript
|
||||||
EXTRACT_ONLY= ${GS_SRCS}
|
EXTRACT_ONLY= ${GS_SRCS}
|
||||||
|
|
||||||
@ -226,6 +228,10 @@ LX5000_SRCS= gdevlx50.c
|
|||||||
LEX7000= lex7000
|
LEX7000= lex7000
|
||||||
LEX7000_SRCS= gs6.0.lexmark7000.patch
|
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
|
# contributed uniprint profiles
|
||||||
CONTRIB_UPP= lqx70ch.upp lqx70cl.upp lqx70cm.upp \
|
CONTRIB_UPP= lqx70ch.upp lqx70cl.upp lqx70cm.upp \
|
||||||
stc740ih.upp stc740p.upp stc740pl.upp
|
stc740ih.upp stc740p.upp stc740pl.upp
|
||||||
@ -317,6 +323,11 @@ post-extract:
|
|||||||
${PATCH} -d ${WRKSRC}/${LEX7000} -f -s -N -E -p1 \
|
${PATCH} -d ${WRKSRC}/${LEX7000} -f -s -N -E -p1 \
|
||||||
2>/dev/null || ${TRUE}
|
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:
|
post-patch:
|
||||||
${REINPLACE_CMD} -e 's|^DEVICE_DEVS|#DEVICE_DEVS|g' \
|
${REINPLACE_CMD} -e 's|^DEVICE_DEVS|#DEVICE_DEVS|g' \
|
||||||
${WRKSRC}/src/unix-gcc.mak
|
${WRKSRC}/src/unix-gcc.mak
|
||||||
@ -402,6 +413,11 @@ pre-configure:
|
|||||||
${CAT} ${FILESDIR}/lex7000.contrib.mak \
|
${CAT} ${FILESDIR}/lex7000.contrib.mak \
|
||||||
>> ${WRKSRC}/src/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
|
||||||
|
|
||||||
post-configure:
|
post-configure:
|
||||||
${ECHO_MSG} ">>> in post-configure ..."
|
${ECHO_MSG} ">>> in post-configure ..."
|
||||||
cd ${WRKSRC}/jasper ; \
|
cd ${WRKSRC}/jasper ; \
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
# $FreeBSD$
|
# $FreeBSD$
|
||||||
|
|
||||||
GS_VERSION= 8.56
|
GS_VERSION= 8.56
|
||||||
GS_REVISION= 0
|
GS_REVISION= 1
|
||||||
GS_EPOCH= 0
|
GS_EPOCH= 0
|
||||||
|
@ -52,3 +52,6 @@ SIZE (ghostscript/gdevlx50.c) = 99428
|
|||||||
MD5 (ghostscript/gs6.0.lexmark7000.patch) = fd5018c18351bf64805fe5727be196de
|
MD5 (ghostscript/gs6.0.lexmark7000.patch) = fd5018c18351bf64805fe5727be196de
|
||||||
SHA256 (ghostscript/gs6.0.lexmark7000.patch) = 509dfc02436639ce6b9f98465ec306dd2e7f9342feded043c78b0c9cf44021df
|
SHA256 (ghostscript/gs6.0.lexmark7000.patch) = 509dfc02436639ce6b9f98465ec306dd2e7f9342feded043c78b0c9cf44021df
|
||||||
SIZE (ghostscript/gs6.0.lexmark7000.patch) = 27361
|
SIZE (ghostscript/gs6.0.lexmark7000.patch) = 27361
|
||||||
|
MD5 (ghostscript/gdevhl12.c) = 277c5ddac9c6fb0e2897e95265eb1ff1
|
||||||
|
SHA256 (ghostscript/gdevhl12.c) = 0abaa60cbe950b9c923753a687181b775910ecff0848917641e281737f03527a
|
||||||
|
SIZE (ghostscript/gdevhl12.c) = 22001
|
||||||
|
16
print/ghostscript-gpl/files/gdevhl12-hl1250.mak
Normal file
16
print/ghostscript-gpl/files/gdevhl12-hl1250.mak
Normal file
@ -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
|
||||||
|
|
11
print/ghostscript-gpl/files/patch-src:gdevhl12.c
Normal file
11
print/ghostscript-gpl/files/patch-src:gdevhl12.c
Normal file
@ -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",
|
3
print/ghostscript-gpl/scripts/configure
vendored
3
print/ghostscript-gpl/scripts/configure
vendored
@ -24,7 +24,7 @@ else
|
|||||||
$svgalibdevs \
|
$svgalibdevs \
|
||||||
md2k md5k \
|
md2k md5k \
|
||||||
md50Mono md50Eco md1xMono \
|
md50Mono md50Eco md1xMono \
|
||||||
appledmp iwhi iwlo iwlq hl7x0 bj10e \
|
appledmp iwhi iwlo iwlq hl7x0 hl1250 bj10e \
|
||||||
bj10v bj10vh bj200 bjc600 bjc800 \
|
bj10v bj10vh bj200 bjc600 bjc800 \
|
||||||
bjccmyk bjccolor bjcgray bjcmono \
|
bjccmyk bjccolor bjcgray bjcmono \
|
||||||
lbp8 \
|
lbp8 \
|
||||||
@ -118,6 +118,7 @@ Have fun with this new configuration style ! -andreas \n\n\
|
|||||||
"iwlo" "Apple Imagewriter, low-resolution mode" "$status_iwlo" \
|
"iwlo" "Apple Imagewriter, low-resolution mode" "$status_iwlo" \
|
||||||
"iwlq" "Apple Imagewriter LQ in 320 x 216 dpi mode" "$status_iwlq" \
|
"iwlq" "Apple Imagewriter LQ in 320 x 216 dpi mode" "$status_iwlq" \
|
||||||
"hl7x0" "Brother HL720 and HL730 (HL760=PCL), MFC6550MC Fax Machine" "$status_hl7x0" \
|
"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" \
|
"bj10e" "Canon BubbleJet BJ-10e" "$status_bj10e" \
|
||||||
"bj10v" "Canon BubbleJet BJ-10v [BJ10V]" "$status_bj10v" \
|
"bj10v" "Canon BubbleJet BJ-10v [BJ10V]" "$status_bj10v" \
|
||||||
"bj10vh" "Canon BubbleJet BJ-10v, high-mergin [BJ10V]" "$status_bj10vh" \
|
"bj10vh" "Canon BubbleJet BJ-10v, high-mergin [BJ10V]" "$status_bj10vh" \
|
||||||
|
@ -23,6 +23,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/samsung-gdi/:gdi \
|
||||||
http://www.linuxprinting.org/download/printing/:lxm3200 \
|
http://www.linuxprinting.org/download/printing/:lxm3200 \
|
||||||
http://homepage.powerup.com.au/~pbwest/lexmark/:lx5000 \
|
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/GPL/gs${GS_VERSION:S/.//}/:gs_srcs
|
ftp://mirror.cs.wisc.edu/pub/mirrors/ghost/GPL/gs${GS_VERSION:S/.//}/:gs_srcs
|
||||||
MASTER_SITE_SUBDIR= ghostscript/:gs_srcs,ports_jp_gs \
|
MASTER_SITE_SUBDIR= ghostscript/:gs_srcs,ports_jp_gs \
|
||||||
bjc250gs/:bjc250 \
|
bjc250gs/:bjc250 \
|
||||||
@ -46,7 +47,8 @@ DISTFILES= ${GS_SRCS}:gs_srcs \
|
|||||||
${GDI_SRCS}:gdi \
|
${GDI_SRCS}:gdi \
|
||||||
${LXM3200_SRCS}:lxm3200 \
|
${LXM3200_SRCS}:lxm3200 \
|
||||||
${LX5000_SRCS}:lx5000 \
|
${LX5000_SRCS}:lx5000 \
|
||||||
${LEX7000_SRCS}:lx5000
|
${LEX7000_SRCS}:lx5000 \
|
||||||
|
${HL1250_SRCS}:hl1250
|
||||||
DIST_SUBDIR= ghostscript
|
DIST_SUBDIR= ghostscript
|
||||||
EXTRACT_ONLY= ${GS_SRCS}
|
EXTRACT_ONLY= ${GS_SRCS}
|
||||||
|
|
||||||
@ -226,6 +228,10 @@ LX5000_SRCS= gdevlx50.c
|
|||||||
LEX7000= lex7000
|
LEX7000= lex7000
|
||||||
LEX7000_SRCS= gs6.0.lexmark7000.patch
|
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
|
# contributed uniprint profiles
|
||||||
CONTRIB_UPP= lqx70ch.upp lqx70cl.upp lqx70cm.upp \
|
CONTRIB_UPP= lqx70ch.upp lqx70cl.upp lqx70cm.upp \
|
||||||
stc740ih.upp stc740p.upp stc740pl.upp
|
stc740ih.upp stc740p.upp stc740pl.upp
|
||||||
@ -317,6 +323,11 @@ post-extract:
|
|||||||
${PATCH} -d ${WRKSRC}/${LEX7000} -f -s -N -E -p1 \
|
${PATCH} -d ${WRKSRC}/${LEX7000} -f -s -N -E -p1 \
|
||||||
2>/dev/null || ${TRUE}
|
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:
|
post-patch:
|
||||||
${REINPLACE_CMD} -e 's|^DEVICE_DEVS|#DEVICE_DEVS|g' \
|
${REINPLACE_CMD} -e 's|^DEVICE_DEVS|#DEVICE_DEVS|g' \
|
||||||
${WRKSRC}/src/unix-gcc.mak
|
${WRKSRC}/src/unix-gcc.mak
|
||||||
@ -402,6 +413,11 @@ pre-configure:
|
|||||||
${CAT} ${FILESDIR}/lex7000.contrib.mak \
|
${CAT} ${FILESDIR}/lex7000.contrib.mak \
|
||||||
>> ${WRKSRC}/src/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
|
||||||
|
|
||||||
post-configure:
|
post-configure:
|
||||||
${ECHO_MSG} ">>> in post-configure ..."
|
${ECHO_MSG} ">>> in post-configure ..."
|
||||||
cd ${WRKSRC}/jasper ; \
|
cd ${WRKSRC}/jasper ; \
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
# $FreeBSD$
|
# $FreeBSD$
|
||||||
|
|
||||||
GS_VERSION= 8.56
|
GS_VERSION= 8.56
|
||||||
GS_REVISION= 0
|
GS_REVISION= 1
|
||||||
GS_EPOCH= 0
|
GS_EPOCH= 0
|
||||||
|
@ -52,3 +52,6 @@ SIZE (ghostscript/gdevlx50.c) = 99428
|
|||||||
MD5 (ghostscript/gs6.0.lexmark7000.patch) = fd5018c18351bf64805fe5727be196de
|
MD5 (ghostscript/gs6.0.lexmark7000.patch) = fd5018c18351bf64805fe5727be196de
|
||||||
SHA256 (ghostscript/gs6.0.lexmark7000.patch) = 509dfc02436639ce6b9f98465ec306dd2e7f9342feded043c78b0c9cf44021df
|
SHA256 (ghostscript/gs6.0.lexmark7000.patch) = 509dfc02436639ce6b9f98465ec306dd2e7f9342feded043c78b0c9cf44021df
|
||||||
SIZE (ghostscript/gs6.0.lexmark7000.patch) = 27361
|
SIZE (ghostscript/gs6.0.lexmark7000.patch) = 27361
|
||||||
|
MD5 (ghostscript/gdevhl12.c) = 277c5ddac9c6fb0e2897e95265eb1ff1
|
||||||
|
SHA256 (ghostscript/gdevhl12.c) = 0abaa60cbe950b9c923753a687181b775910ecff0848917641e281737f03527a
|
||||||
|
SIZE (ghostscript/gdevhl12.c) = 22001
|
||||||
|
16
print/ghostscript8/files/gdevhl12-hl1250.mak
Normal file
16
print/ghostscript8/files/gdevhl12-hl1250.mak
Normal file
@ -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
|
||||||
|
|
11
print/ghostscript8/files/patch-src:gdevhl12.c
Normal file
11
print/ghostscript8/files/patch-src:gdevhl12.c
Normal file
@ -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",
|
3
print/ghostscript8/scripts/configure
vendored
3
print/ghostscript8/scripts/configure
vendored
@ -24,7 +24,7 @@ else
|
|||||||
$svgalibdevs \
|
$svgalibdevs \
|
||||||
md2k md5k \
|
md2k md5k \
|
||||||
md50Mono md50Eco md1xMono \
|
md50Mono md50Eco md1xMono \
|
||||||
appledmp iwhi iwlo iwlq hl7x0 bj10e \
|
appledmp iwhi iwlo iwlq hl7x0 hl1250 bj10e \
|
||||||
bj10v bj10vh bj200 bjc600 bjc800 \
|
bj10v bj10vh bj200 bjc600 bjc800 \
|
||||||
bjccmyk bjccolor bjcgray bjcmono \
|
bjccmyk bjccolor bjcgray bjcmono \
|
||||||
lbp8 \
|
lbp8 \
|
||||||
@ -118,6 +118,7 @@ Have fun with this new configuration style ! -andreas \n\n\
|
|||||||
"iwlo" "Apple Imagewriter, low-resolution mode" "$status_iwlo" \
|
"iwlo" "Apple Imagewriter, low-resolution mode" "$status_iwlo" \
|
||||||
"iwlq" "Apple Imagewriter LQ in 320 x 216 dpi mode" "$status_iwlq" \
|
"iwlq" "Apple Imagewriter LQ in 320 x 216 dpi mode" "$status_iwlq" \
|
||||||
"hl7x0" "Brother HL720 and HL730 (HL760=PCL), MFC6550MC Fax Machine" "$status_hl7x0" \
|
"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" \
|
"bj10e" "Canon BubbleJet BJ-10e" "$status_bj10e" \
|
||||||
"bj10v" "Canon BubbleJet BJ-10v [BJ10V]" "$status_bj10v" \
|
"bj10v" "Canon BubbleJet BJ-10v [BJ10V]" "$status_bj10v" \
|
||||||
"bj10vh" "Canon BubbleJet BJ-10v, high-mergin [BJ10V]" "$status_bj10vh" \
|
"bj10vh" "Canon BubbleJet BJ-10v, high-mergin [BJ10V]" "$status_bj10vh" \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user