summaryrefslogtreecommitdiff
path: root/print/ghostscript-gnu/files
diff options
context:
space:
mode:
Diffstat (limited to 'print/ghostscript-gnu/files')
-rw-r--r--print/ghostscript-gnu/files/lex7000.contrib.mak21
-rw-r--r--print/ghostscript-gnu/files/lx5000.contrib.mak11
-rw-r--r--print/ghostscript-gnu/files/lxm3200.contrib.mak10
-rw-r--r--print/ghostscript-gnu/files/patch-lib:gs_setpd.ps59
4 files changed, 101 insertions, 0 deletions
diff --git a/print/ghostscript-gnu/files/lex7000.contrib.mak b/print/ghostscript-gnu/files/lex7000.contrib.mak
new file mode 100644
index 000000000000..a5f1a162b785
--- /dev/null
+++ b/print/ghostscript-gnu/files/lex7000.contrib.mak
@@ -0,0 +1,21 @@
+# ------ The Lexmark 5700 and 7000 devices ------ #
+
+lex7000_=$(GLOBJ)gdevlx7.$(OBJ)
+$(DD)lex7000.dev: $(lex7000_) $(DD)page.dev
+ $(SETPDEV) $(DD)lex7000 $(lex7000_)
+
+lex5700_=$(GLOBJ)gdevlx7.$(OBJ)
+$(DD)lex5700.dev: $(lex5700_) $(DD)page.dev
+ $(SETPDEV) $(DD)lex5700 $(lex5700_)
+
+lex3200_=$(GLOBJ)gdevlx7.$(OBJ)
+$(DD)lex3200.dev: $(lex3200_) $(DD)page.dev
+ $(SETPDEV) $(DD)lex3200 $(lex3200_)
+
+lex2050_=$(GLOBJ)gdevlx7.$(OBJ)
+$(DD)lex2050.dev: $(lex2050_) $(DD)page.dev
+ $(SETPDEV) $(DD)lex2050 $(lex2050_)
+
+$(GLOBJ)gdevlx7.$(OBJ): $(GLSRC)gdevlx7.c $(PDEVH)
+ $(GLCC) $(GLO_)gdevlx7.$(OBJ) $(C_) $(GLSRC)gdevlx7.c
+
diff --git a/print/ghostscript-gnu/files/lx5000.contrib.mak b/print/ghostscript-gnu/files/lx5000.contrib.mak
new file mode 100644
index 000000000000..f22c1dbb904c
--- /dev/null
+++ b/print/ghostscript-gnu/files/lx5000.contrib.mak
@@ -0,0 +1,11 @@
+### ----------------- LexMark 5000 printer ----------------------------- ###
+### Note: this driver was contributed by users. Please contact: ###
+### Peter B. West <p.west@uq.net.au> ###
+
+lx5000_=$(GLOBJ)gdevlx50.$(OBJ)
+$(DD)lx5000.dev: $(lx5000_)
+ $(SETPDEV) $(DD)lx5000 $(lx5000_)
+
+$(GLOBJ)gdevlx50.$(OBJ): $(GLSRC)gdevlx50.c $(PDEVH)
+ $(GLCC) $(GLO_)gdevlx50.$(OBJ) $(C_) $(GLSRC)gdevlx50.c
+
diff --git a/print/ghostscript-gnu/files/lxm3200.contrib.mak b/print/ghostscript-gnu/files/lxm3200.contrib.mak
new file mode 100644
index 000000000000..c670f6de111c
--- /dev/null
+++ b/print/ghostscript-gnu/files/lxm3200.contrib.mak
@@ -0,0 +1,10 @@
+### ---------------- Lexmark 3200 device ----------------- ###
+
+lxm3200_=$(GLOBJ)gdevlx32.$(OBJ)
+
+$(DD)lxm3200.dev: $(lxm3200_) $(DD)page.dev
+ $(SETPDEV) $(DD)lxm3200 $(lxm3200_)
+
+$(GLOBJ)gdevlx32.$(OBJ): $(GLSRC)gdevlx32.c $(PDEVH) $(gsparam_h)
+ $(GLCC) $(GLO_)gdevlx32.$(OBJ) $(C_) $(GLSRC)gdevlx32.c
+
diff --git a/print/ghostscript-gnu/files/patch-lib:gs_setpd.ps b/print/ghostscript-gnu/files/patch-lib:gs_setpd.ps
new file mode 100644
index 000000000000..1e0cf12559a7
--- /dev/null
+++ b/print/ghostscript-gnu/files/patch-lib:gs_setpd.ps
@@ -0,0 +1,59 @@
+--- lib/gs_setpd.ps.orig Mon Mar 31 22:02:22 2003
++++ lib/gs_setpd.ps Sat May 17 06:57:49 2003
+@@ -323,21 +323,42 @@
+ } bind
+ .dicttomark readonly def
+
+-% Define the keys used in input attribute matching.
+-/.inputattrkeys [
+- /PageSize /MediaColor /MediaWeight /MediaType /InsertSheet
+- % The following are documented in Adobe's supplement for v2017.
+- /LeadingEdge /MediaClass
+-] readonly def
+-% Define other keys used in media selection.
+-/.inputselectionkeys [
+- /MediaPosition /Orientation
+-] readonly def
++% M. Sweet, Easy Software Products:
++%
++% Define NOMEDIAATTRS to turn the default (but unimplementable) media
++% selection policies for setpagedevice. This is used by CUPS to
++% support the standard Adobe media attributes.
++currentdict /NOMEDIAATTRS known {
++ % Define the keys used in input attribute matching.
++ /.inputattrkeys [
++ /PageSize /MediaColor /MediaWeight /MediaType /InsertSheet
++ % The following are documented in Adobe's supplement for v2017.
++ /LeadingEdge /MediaClass
++ ] readonly def
++ % Define other keys used in media selection.
++ /.inputselectionkeys [
++ /MediaPosition /Orientation
++ ] readonly def
+
+-% Define the keys used in output attribute matching.
+-/.outputattrkeys [
+- /OutputType
+-] readonly def
++ % Define the keys used in output attribute matching.
++ /.outputattrkeys [
++ /OutputType
++ ] readonly def
++} {
++ % Define only PageSize for input attribute matching.
++ /.inputattrkeys [
++ /PageSize
++ ] readonly def
++ % Define no other keys used in media selection.
++ /.inputselectionkeys [
++ /noInputSelectionsKeys
++ ] readonly def
++
++ % Define no keys used in output attribute matching.
++ /.outputattrkeys [
++ /noOutputAttrKeys
++ ] readonly def
++} ifelse
+
+ % Define all the parameters that should always be copied to the merged
+ % dictionary.