aboutsummaryrefslogtreecommitdiffstats
path: root/print/epson-inkjet-printer-escpr/files
diff options
context:
space:
mode:
authorhrs <hrs@FreeBSD.org>2015-11-12 11:29:10 +0800
committerhrs <hrs@FreeBSD.org>2015-11-12 11:29:10 +0800
commitb99903fb8e06446642bc16ce99ee2e31feaaea54 (patch)
treed6759481507afac2dc0dee83efdb57d8ff2b9068 /print/epson-inkjet-printer-escpr/files
parentcf8bf357d57dd521e39f2bb310b460657b3359fe (diff)
downloadfreebsd-ports-gnome-b99903fb8e06446642bc16ce99ee2e31feaaea54.tar.gz
freebsd-ports-gnome-b99903fb8e06446642bc16ce99ee2e31feaaea54.tar.zst
freebsd-ports-gnome-b99903fb8e06446642bc16ce99ee2e31feaaea54.zip
Update to 1.6.1 and add patches to fix issues reported
in PR 203637. Submitted by: Tatsuki Makino (maintainer) PR: 204250
Diffstat (limited to 'print/epson-inkjet-printer-escpr/files')
-rw-r--r--print/epson-inkjet-printer-escpr/files/patch-configure.ac2
-rw-r--r--print/epson-inkjet-printer-escpr/files/patch-lib-epson-escpr-api-private.h2
-rw-r--r--print/epson-inkjet-printer-escpr/files/patch-lib_epson-usb.c11
-rw-r--r--print/epson-inkjet-printer-escpr/files/patch-src-filter.c95
-rw-r--r--print/epson-inkjet-printer-escpr/files/pkg-message.in22
5 files changed, 129 insertions, 3 deletions
diff --git a/print/epson-inkjet-printer-escpr/files/patch-configure.ac b/print/epson-inkjet-printer-escpr/files/patch-configure.ac
index 5e91f7ba7f67..b7d6cef81f99 100644
--- a/print/epson-inkjet-printer-escpr/files/patch-configure.ac
+++ b/print/epson-inkjet-printer-escpr/files/patch-configure.ac
@@ -1,4 +1,4 @@
---- configure.ac.orig 2015-08-31 23:48:56 UTC
+--- configure.ac.orig 2015-10-23 06:30:33 UTC
+++ configure.ac
@@ -58,9 +58,9 @@ AC_ARG_WITH([cupsfilterdir],
if test "xno" = "x${with_cupsfilterdir}"; then
diff --git a/print/epson-inkjet-printer-escpr/files/patch-lib-epson-escpr-api-private.h b/print/epson-inkjet-printer-escpr/files/patch-lib-epson-escpr-api-private.h
index 89b1a717c684..804f5803b492 100644
--- a/print/epson-inkjet-printer-escpr/files/patch-lib-epson-escpr-api-private.h
+++ b/print/epson-inkjet-printer-escpr/files/patch-lib-epson-escpr-api-private.h
@@ -1,4 +1,4 @@
---- lib/epson-escpr-api-private.h.orig 2015-10-01 04:30:19 UTC
+--- lib/epson-escpr-api-private.h.orig 1970-01-01 00:00:00 UTC
+++ lib/epson-escpr-api-private.h
@@ -0,0 +1,3 @@
+EPS_ERR_CODE SetupJobAttrib(const EPS_JOB_ATTRIB*);
diff --git a/print/epson-inkjet-printer-escpr/files/patch-lib_epson-usb.c b/print/epson-inkjet-printer-escpr/files/patch-lib_epson-usb.c
new file mode 100644
index 000000000000..75933a97f197
--- /dev/null
+++ b/print/epson-inkjet-printer-escpr/files/patch-lib_epson-usb.c
@@ -0,0 +1,11 @@
+--- lib/epson-usb.c.orig 2014-08-19 02:29:44 UTC
++++ lib/epson-usb.c
+@@ -2325,7 +2325,7 @@ static EPS_ERR_CODE GetSerialNumber (
+ EPS_RETURN( ret );
+ }
+
+- tmpBuff = (EPS_INT8*)EPS_ALLOC(tmpBuffSize);
++ tmpBuff = (EPS_UINT8*)EPS_ALLOC(tmpBuffSize);
+ if (tmpBuff == NULL) {
+ EPS_RETURN( EPS_ERR_MEMORY_ALLOCATION );
+ }
diff --git a/print/epson-inkjet-printer-escpr/files/patch-src-filter.c b/print/epson-inkjet-printer-escpr/files/patch-src-filter.c
index d2735b472576..6960eaf68a3c 100644
--- a/print/epson-inkjet-printer-escpr/files/patch-src-filter.c
+++ b/print/epson-inkjet-printer-escpr/files/patch-src-filter.c
@@ -1,10 +1,103 @@
--- src/filter.c.orig 2015-09-02 06:47:47 UTC
+++ src/filter.c
-@@ -35,6 +35,7 @@
+@@ -35,8 +35,10 @@
#include "epson-escpr-media.h"
#include "epson-protocol.h"
#include "epson-escpr-api.h"
+#include "epson-escpr-api-private.h"
#include "epson-escpr-services.h"
#include "epson-escpr-mem.h"
++#include "epson-escpage.h"
+ #include "err.h"
+ #include "mem.h"
+@@ -45,6 +47,7 @@
+ #include "libprtX.h"
+ #include "optBase.h"
+ #include "linux_cmn.h"
++#include "xfifo.h"
+
+ #define WIDTH_BYTES(bits) (((bits) + 31) / 32 * 4)
+
+@@ -385,7 +388,7 @@ main (int argc, char *argv[])
+ }
+
+ printJob.jobStatus = EPS_STATUS_ESTABLISHED;
+- int printHeight = 0;
++ EPS_UINT32 printHeight = 0;
+ ///////////////////////////////////////////////////////////////////////////////////////////////////////////
+
+ print_area_x = printJob.printableAreaWidth;
+@@ -416,7 +419,7 @@ main (int argc, char *argv[])
+ while ((read_page_no = read (STDIN_FILENO, &page_num, 1)) > 0) // 最初に page番号を読み込み
+ {
+ long x_count, y_count;
+- int band_line_count;
++ EPS_UINT32 band_line_count;
+ y_count = 0;
+ band_line_count = 0;
+
+@@ -504,7 +507,11 @@ main (int argc, char *argv[])
+ pagebuf+= bandBmp.widthBytes;
+ posbuf+=bandBmp.widthBytes;
+
++ if (band_line_count > printHeight) {
+ band_line_count -= printHeight;
++ } else {
++ band_line_count = 0;
++ }
+ bandBmp.bits += band_line_count;
+
+ }
+@@ -515,13 +522,17 @@ main (int argc, char *argv[])
+ memcpy(pagebuf, bandBmp.bits, bandBmp.widthBytes);
+ pagebuf+= bandBmp.widthBytes;
+ posbuf+= bandBmp.widthBytes;
++ if (band_line_count > printHeight) {
+ band_line_count -= printHeight;
++ } else {
++ band_line_count = 0;
++ }
+ bandBmp.bits += band_line_count;
+ }
+
+ int revert = 0;
+ int pos = posbuf - bandBmp.widthBytes ;
+- char *rever_buf = malloc(bandBmp.widthBytes + 1000);
++ EPS_UINT8 *rever_buf = (EPS_UINT8 *)malloc(bandBmp.widthBytes + 1000);
+ for (revert = print_area_y; revert > 0; revert--)
+ {
+ if (3 != byte_par_pixel)
+@@ -665,7 +676,11 @@ main (int argc, char *argv[])
+ #endif
+ debug_msg("printHeight = %d\n", printHeight);
+ debug_msg("widthByte = %d\n", bandBmp.widthBytes);
++ if (band_line_count > printHeight) {
+ band_line_count -= printHeight;
++ } else {
++ band_line_count = 0;
++ }
+ bandBmp.bits += band_line_count;
+ }
+
+@@ -687,7 +702,11 @@ main (int argc, char *argv[])
+ fprintf(fp, "\n");
+ fclose(fp);
+ #endif
++ if (band_line_count > printHeight) {
+ band_line_count -= printHeight;
++ } else {
++ band_line_count = 0;
++ }
+ bandBmp.bits += band_line_count;
+ }
+
+@@ -886,7 +905,7 @@ EPS_INT32 print_spool_fnc(void* hParam,
+
+ // fwrite (pBuf, cbBuf, 1, outfp);
+
+- XFIFOWrite(context, pBuf, cbBuf);
++ XFIFOWrite(context, (char *)pBuf, cbBuf);
+
+ return 1;
+ }
diff --git a/print/epson-inkjet-printer-escpr/files/pkg-message.in b/print/epson-inkjet-printer-escpr/files/pkg-message.in
new file mode 100644
index 000000000000..88036303679e
--- /dev/null
+++ b/print/epson-inkjet-printer-escpr/files/pkg-message.in
@@ -0,0 +1,22 @@
+
+Examples to add printer for EP-803AW
+
+# The printer connected with USB cable (using ulpt0)
+
+chown :cups /dev/ulpt0
+chmod g+rw /dev/ulpt0
+lpadmin -p EPSON_EP-803AW -m "`lpinfo --make-and-model 'EPSON EP-803A' -m | cut -f 1 -d ' '`" -v 'usb:/dev/ulpt0' -D 'EPSON EP-803AW (ulpt0)' -E
+
+# The printer connected with USB cable (using unlpt0)
+
+chown :cups /dev/unlpt0
+chmod g+rw /dev/unlpt0
+lpadmin -p EPSON_EP-803AW -m "`lpinfo --make-and-model 'EPSON EP-803A' -m | cut -f 1 -d ' '`" -v 'usb:/dev/unlpt0' -D 'EPSON EP-803AW (unlpt0)' -E
+
+# The printer joined network (using LPD port)
+
+lpadmin -p EPSON_EP-803AW -m "`lpinfo --make-and-model 'EPSON EP-803A' -m | cut -f 1 -d ' '`" -v 'lpd://192.0.2.100:515/PASSTHRU' -D 'EPSON EP-803AW (LPR)' -E
+
+# The printer joined network (using port 9100)
+
+lpadmin -p EPSON_EP-803AW -m "`lpinfo --make-and-model 'EPSON EP-803A' -m | cut -f 1 -d ' '`" -v 'socket://192.0.2.100:9100' -D 'EPSON EP-803AW (RAW)' -E