summaryrefslogtreecommitdiff
path: root/print
diff options
context:
space:
mode:
authorPav Lucistnik <pav@FreeBSD.org>2005-10-08 19:26:51 +0000
committerPav Lucistnik <pav@FreeBSD.org>2005-10-08 19:26:51 +0000
commit96f71d223151d7476886e7c26ccab44c8fcaa732 (patch)
treeeb084f03e7c3af9156055cd0af48963eeea75fc5 /print
parentRe-add BROKEN line which was removed to test coverage of mastersite (diff)
This port provides full CUPS support for the Konica-Minolta Magicolor 2430DL
color laser printer using the manufacturer's open-source CUPS filter. PR: ports/84319 Submitted by: Frank Mayhar <frank@exit.com>
Notes
Notes: svn path=/head/; revision=144599
Diffstat (limited to 'print')
-rw-r--r--print/Makefile1
-rw-r--r--print/cups-magicolor/Makefile30
-rw-r--r--print/cups-magicolor/distinfo2
-rw-r--r--print/cups-magicolor/files/patch-Makefile33
-rw-r--r--print/cups-magicolor/files/patch-kmlf.h11
-rw-r--r--print/cups-magicolor/files/patch-rastertokmlf.c25
-rw-r--r--print/cups-magicolor/pkg-descr13
-rw-r--r--print/cups-magicolor/pkg-plist24
8 files changed, 139 insertions, 0 deletions
diff --git a/print/Makefile b/print/Makefile
index 90006281fca0..99b2434ede57 100644
--- a/print/Makefile
+++ b/print/Makefile
@@ -44,6 +44,7 @@
SUBDIR += cups
SUBDIR += cups-base
SUBDIR += cups-lpr
+ SUBDIR += cups-magicolor
SUBDIR += cups-pdf
SUBDIR += cups-pstoraster
SUBDIR += cups-samba
diff --git a/print/cups-magicolor/Makefile b/print/cups-magicolor/Makefile
new file mode 100644
index 000000000000..a07057c0e5b7
--- /dev/null
+++ b/print/cups-magicolor/Makefile
@@ -0,0 +1,30 @@
+# New ports collection makefile for: cups-pstoraster
+# Date created: Jul 13 2002
+# Whom: ports@FreeBSD.org
+#
+# $FreeBSD$
+#
+
+PORTNAME= cups-magicolor
+PORTVERSION= 1.1.0
+CATEGORIES= print
+MASTER_SITES= ftp://ftp.minolta-qms.com/pub/crc/out_going/other/
+
+MAINTAINER= frank@exit.com
+COMMENT= CUPS support for the Konica-Minolta Magicolor 2430DL
+
+PATCH_DEPENDS= ${NONEXISTENT}:${PORTSDIR}/print/cups-base:configure
+LIB_DEPENDS= cups.2:${PORTSDIR}/print/cups-base \
+ jbig.1:${PORTSDIR}/graphics/jbigkit \
+ lcms.1:${PORTSDIR}/graphics/lcms
+RUN_DEPENDS= espgs:${PORTSDIR}/print/cups-pstoraster
+
+DISTNAME= magicolor2430DL-1.1.0
+
+USE_REINPLACE= yes
+USE_GMAKE= yes
+
+do-configure:
+ ${CP} ${WRKSRC}/../../../cups-base/work/cups-*/config.h ${WRKSRC}
+
+.include <bsd.port.mk>
diff --git a/print/cups-magicolor/distinfo b/print/cups-magicolor/distinfo
new file mode 100644
index 000000000000..4f41ae174afe
--- /dev/null
+++ b/print/cups-magicolor/distinfo
@@ -0,0 +1,2 @@
+MD5 (magicolor2430DL-1.1.0.tar.gz) = d58ad3835e1a19c9de88d45a8ada1215
+SIZE (magicolor2430DL-1.1.0.tar.gz) = 989276
diff --git a/print/cups-magicolor/files/patch-Makefile b/print/cups-magicolor/files/patch-Makefile
new file mode 100644
index 000000000000..d1c05f4e816c
--- /dev/null
+++ b/print/cups-magicolor/files/patch-Makefile
@@ -0,0 +1,33 @@
+--- ./Makefile Fri Sep 17 17:33:59 2004
++++ ../magicolor2430DL-1.1.0-new/./Makefile Thu Jul 28 19:51:27 2005
+@@ -1,11 +1,11 @@
+ CC = gcc
+-CFLAGS = $(RC_CFLAGS) -I. -I../include
++CFLAGS = $(RC_CFLAGS) -I. -I../include -I/usr/local/include
+ OPTIM = -Wall -fPIC -O2
+ #OPTIM = -g
+-LDLIBS = -lcups -lcupsimage
+-LDADD = /usr/lib/liblcms.a /usr/local/lib/libjbig.a
++LDLIBS = -L/usr/local/lib -lcups -lcupsimage
++LDADD = /usr/local/lib/liblcms.a /usr/local/lib/libjbig.a
+
+-MYPRINTER = /usr/local/KONICA_MINOLTA/mc2430DL
++MYPRINTER = /usr/local/share/KONICA_MINOLTA/mc2430DL
+
+ .SILENT:
+ .SUFFIXES: .a .c .cxx .h .o .0 .1 .1m
+@@ -28,10 +28,10 @@
+
+ #install the driver
+ install: all
+- install -m 755 -d $(DESTDIR)/usr/lib/cups/filter
+- install -m 755 rastertokmlf $(DESTDIR)/usr/lib/cups/filter/rastertokm2430dl
+- install -m 755 -d $(DESTDIR)/usr/share/cups/model/KONICA_MINOLTA
+- install -m 644 km_en.ppd.gz $(DESTDIR)/usr/share/cups/model/KONICA_MINOLTA/km2430dl.ppd.gz
++ install -m 755 -d $(DESTDIR)/usr/local/libexec/cups/filter
++ install -m 755 rastertokmlf $(DESTDIR)/usr/local/libexec/cups/filter/rastertokm2430dl
++ install -m 755 -d $(DESTDIR)/usr/local/share/cups/model/KONICA_MINOLTA
++ install -m 644 km_en.ppd.gz $(DESTDIR)/usr/local/share/cups/model/KONICA_MINOLTA/km2430dl.ppd.gz
+ install -m 755 -d $(DESTDIR)$(MYPRINTER)/Profiles
+ install -m 644 km_0.icm $(DESTDIR)$(MYPRINTER)/Profiles/km_0.icm
+ install -m 644 km_1.icm $(DESTDIR)$(MYPRINTER)/Profiles/km_1.icm
diff --git a/print/cups-magicolor/files/patch-kmlf.h b/print/cups-magicolor/files/patch-kmlf.h
new file mode 100644
index 000000000000..0dca272fbec7
--- /dev/null
+++ b/print/cups-magicolor/files/patch-kmlf.h
@@ -0,0 +1,11 @@
+--- ./kmlf.h Thu Sep 2 11:18:38 2004
++++ ../magicolor2430DL-1.1.0-new/./kmlf.h Thu Jul 28 18:56:32 2005
+@@ -38,6 +38,8 @@
+
+ #ifdef __linux
+ #define KM_FOLDER "/usr/local/KONICA_MINOLTA"
++#elif defined(__FreeBSD__)
++#define KM_FOLDER "/usr/local/share/KONICA_MINOLTA"
+ #else
+ #define KM_FOLDER "/Library/Printers/KONICA_MINOLTA"
+ #endif
diff --git a/print/cups-magicolor/files/patch-rastertokmlf.c b/print/cups-magicolor/files/patch-rastertokmlf.c
new file mode 100644
index 000000000000..160e2329cf40
--- /dev/null
+++ b/print/cups-magicolor/files/patch-rastertokmlf.c
@@ -0,0 +1,25 @@
+--- rastertokmlf.c.orig Thu Sep 2 20:18:38 2004
++++ rastertokmlf.c Sat Oct 8 21:21:41 2005
+@@ -1339,6 +1339,7 @@
+ DWORD x, y, iShift;//, dwWidthInByte;
+ unsigned char bTmpCyan, bTmpMagenta, bTmpYellow, bTmpBlack, bit;
+ //int err = 0;
++ PHTHEADER pCHThdr, pMHThdr, pYHThdr, pKHThdr;
+
+ /*
+ * Make sure status messages are not buffered...
+@@ -1572,10 +1573,10 @@
+ dwVert = header.cupsHeight;
+ //dwWidthInByte = (dwHori + 7)/8;
+
+- PHTHEADER pCHThdr = (PHTHEADER)pImage->pHT[0];
+- PHTHEADER pMHThdr = (PHTHEADER)pImage->pHT[1];
+- PHTHEADER pYHThdr = (PHTHEADER)pImage->pHT[2];
+- PHTHEADER pKHThdr = (PHTHEADER)pImage->pHT[3];
++ pCHThdr = (PHTHEADER)pImage->pHT[0];
++ pMHThdr = (PHTHEADER)pImage->pHT[1];
++ pYHThdr = (PHTHEADER)pImage->pHT[2];
++ pKHThdr = (PHTHEADER)pImage->pHT[3];
+
+ //pbSrc = pSrcBitmap;
+ #ifdef CUPS_FLIP
diff --git a/print/cups-magicolor/pkg-descr b/print/cups-magicolor/pkg-descr
new file mode 100644
index 000000000000..f06e28338e9d
--- /dev/null
+++ b/print/cups-magicolor/pkg-descr
@@ -0,0 +1,13 @@
+The Konica-Minolta MagiColor 2430DL is one of the few color laser printers
+that fully supports open source. They have provided a CUPS filter,
+rastertokmlf, that translates the CUPS raster format to the PCL-like
+"LavaFlow" format expected by the printer. The filter uses littleCMS
+for color matching and their package also provides a complete PPD file
+for the 2430DL.
+
+The FreeBSD port patches the original package to take advantage of the
+actual configuration of CUPS (the original package depended on a static
+configuration based on CUPS 1.1.15) and to put the various files in their
+proper places according to FreeBSD standards.
+
+WWW: http://konicaminolta.net/
diff --git a/print/cups-magicolor/pkg-plist b/print/cups-magicolor/pkg-plist
new file mode 100644
index 000000000000..2790f783ace9
--- /dev/null
+++ b/print/cups-magicolor/pkg-plist
@@ -0,0 +1,24 @@
+libexec/cups/filter/rastertokm2430dl
+share/cups/model/KONICA_MINOLTA/km2430dl.ppd.gz
+share/KONICA_MINOLTA/mc2430DL/Profiles/km_0.icm
+share/KONICA_MINOLTA/mc2430DL/Profiles/km_1.icm
+share/KONICA_MINOLTA/mc2430DL/Profiles/km_2.icm
+share/KONICA_MINOLTA/mc2430DL/Halftones/km_ht_00.bmp
+share/KONICA_MINOLTA/mc2430DL/Halftones/km_ht_01.bmp
+share/KONICA_MINOLTA/mc2430DL/Halftones/km_ht_02.bmp
+share/KONICA_MINOLTA/mc2430DL/Halftones/km_ht_03.bmp
+share/KONICA_MINOLTA/mc2430DL/Halftones/km_ht_10.bmp
+share/KONICA_MINOLTA/mc2430DL/Halftones/km_ht_11.bmp
+share/KONICA_MINOLTA/mc2430DL/Halftones/km_ht_12.bmp
+share/KONICA_MINOLTA/mc2430DL/Halftones/km_ht_13.bmp
+share/KONICA_MINOLTA/mc2430DL/Halftones/km_ht_20.bmp
+share/KONICA_MINOLTA/mc2430DL/Halftones/km_ht_21.bmp
+share/KONICA_MINOLTA/mc2430DL/Halftones/km_ht_22.bmp
+share/KONICA_MINOLTA/mc2430DL/Halftones/km_ht_23.bmp
+share/KONICA_MINOLTA/mc2430DL/Installation
+share/KONICA_MINOLTA/mc2430DL/COPYING
+@dirrm share/KONICA_MINOLTA/mc2430DL/Profiles
+@dirrm share/KONICA_MINOLTA/mc2430DL/Halftones
+@dirrm share/cups/model/KONICA_MINOLTA
+@dirrm share/KONICA_MINOLTA/mc2430DL
+@dirrm share/KONICA_MINOLTA