diff options
author | pav <pav@FreeBSD.org> | 2005-10-09 03:26:51 +0800 |
---|---|---|
committer | pav <pav@FreeBSD.org> | 2005-10-09 03:26:51 +0800 |
commit | 00f6d948dcde127bdf3f66540574d7ba484443ae (patch) | |
tree | 9fc73430a9f7f3e4d08eb57650853734afe9557c /print | |
parent | c58c141bfe7e62379560332c982401ab3c723596 (diff) | |
download | freebsd-ports-gnome-00f6d948dcde127bdf3f66540574d7ba484443ae.tar.gz freebsd-ports-gnome-00f6d948dcde127bdf3f66540574d7ba484443ae.tar.zst freebsd-ports-gnome-00f6d948dcde127bdf3f66540574d7ba484443ae.zip |
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>
Diffstat (limited to 'print')
-rw-r--r-- | print/Makefile | 1 | ||||
-rw-r--r-- | print/cups-magicolor/Makefile | 30 | ||||
-rw-r--r-- | print/cups-magicolor/distinfo | 2 | ||||
-rw-r--r-- | print/cups-magicolor/files/patch-Makefile | 33 | ||||
-rw-r--r-- | print/cups-magicolor/files/patch-kmlf.h | 11 | ||||
-rw-r--r-- | print/cups-magicolor/files/patch-rastertokmlf.c | 25 | ||||
-rw-r--r-- | print/cups-magicolor/pkg-descr | 13 | ||||
-rw-r--r-- | print/cups-magicolor/pkg-plist | 24 |
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 |