ports/84319: New port print/cups-magicolor.

Frank Mayhar frank at exit.com
Fri Jul 29 19:50:23 UTC 2005


The following reply was made to PR ports/84319; it has been noted by GNATS.

From: Frank Mayhar <frank at exit.com>
To: FreeBSD-gnats-submit at FreeBSD.org
Cc:  
Subject: Re: ports/84319: New port print/cups-magicolor.
Date: Fri, 29 Jul 2005 12:44:17 -0700

 This is a multi-part message in MIME format.
 --------------090207050100080901070305
 Content-Type: text/plain; charset=ISO-8859-1; format=flowed
 Content-Transfer-Encoding: 7bit
 
 I accidentally left a debug line in the Makefile.  I've attached a repaired 
   version of the full sharfile.
 
 --------------090207050100080901070305
 Content-Type: application/x-shar;
  name="cups-magicolor.shar"
 Content-Transfer-Encoding: 7bit
 Content-Disposition: inline;
  filename="cups-magicolor.shar"
 
 #!/bin/sh
 # This is cups-magicolor, a shell archive (produced by GNU sharutils 4.3.81)
 # To extract the files from this archive, save it to some FILE, remove
 # everything before the `!/bin/sh' line above, then type `sh FILE'.
 #
 # Made on 2005-07-29 12:31 PDT by <frank at realtime.exit.com>.
 # Source directory was `/usr/ports/print'.
 #
 # Existing files will *not* be overwritten unless `-c' is specified.
 #
 # This shar contains:
 # length mode       name
 # ------ ---------- ------------------------------------------
 #    115 -rw-r--r-- cups-magicolor/distinfo
 #   1817 -rw-r--r-- cups-magicolor/Makefile
 #   1474 -rw-r--r-- cups-magicolor/files/patch-Makefile
 #    341 -rw-r--r-- cups-magicolor/files/patch-kmlf.h
 #    665 -rw-r--r-- cups-magicolor/pkg-descr
 #
 save_IFS="${IFS}"
 IFS="${IFS}:"
 gettext_dir=FAILED
 locale_dir=FAILED
 first_param="$1"
 for dir in $PATH
 do
   if test "$gettext_dir" = FAILED && test -f $dir/gettext \
      && ($dir/gettext --version >/dev/null 2>&1)
   then
     case `$dir/gettext --version 2>&1 | sed 1q` in
       *GNU*) gettext_dir=$dir ;;
     esac
   fi
   if test "$locale_dir" = FAILED && test -f $dir/shar \
      && ($dir/shar --print-text-domain-dir >/dev/null 2>&1)
   then
     locale_dir=`$dir/shar --print-text-domain-dir`
   fi
 done
 IFS="$save_IFS"
 if test "$locale_dir" = FAILED || test "$gettext_dir" = FAILED
 then
   echo=echo
 else
   TEXTDOMAINDIR=$locale_dir
   export TEXTDOMAINDIR
   TEXTDOMAIN=sharutils
   export TEXTDOMAIN
   echo="$gettext_dir/gettext -s"
 fi
 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
     shar_n= shar_c='
 '
   else
     shar_n=-n shar_c=
   fi
 else
   shar_n= shar_c='\c'
 fi
 if touch -am -t 200112312359.59 $$.touch >/dev/null 2>&1 && test ! -f 200112312359.59 && test -f $$.touch; then
   shar_touch='touch -am -t $1$2$3$4$5$6.$7 "$8"'
 elif touch -am 123123592001.59 $$.touch >/dev/null 2>&1 && test ! -f 123123592001.59 && test ! -f 123123592001.5 && test -f $$.touch; then
   shar_touch='touch -am $3$4$5$6$1$2.$7 "$8"'
 elif touch -am 1231235901 $$.touch >/dev/null 2>&1 && test ! -f 1231235901 && test -f $$.touch; then
   shar_touch='touch -am $3$4$5$6$2 "$8"'
 else
   shar_touch=:
   echo
   $echo 'WARNING: not restoring timestamps.  Consider getting and'
   $echo "installing GNU \`touch', distributed in GNU File Utilities..."
   echo
 fi
 rm -f 200112312359.59 123123592001.59 123123592001.5 1231235901 $$.touch
 #
 $echo $shar_n 'x -' 'lock directory' "\`_sh13175': "$shar_c
 if mkdir _sh13175; then
   $echo 'created'
 else
   $echo 'failed to create'
   exit 1
 fi
 # ============= cups-magicolor/distinfo ==============
 if test ! -d 'cups-magicolor'; then
   $echo $echo_n 'x -' 'cups-magicolor: '$echo_c
   if mkdir 'cups-magicolor'; then $echo 'created'; else $echo 'failed to create'; fi
 fi
 if test -f 'cups-magicolor/distinfo' && test "$first_param" != -c; then
   $echo 'x -' SKIPPING 'cups-magicolor/distinfo' '(file already exists)'
 else
   $echo 'x -' extracting 'cups-magicolor/distinfo' '(text)'
   sed 's/^X//' << 'SHAR_EOF' > 'cups-magicolor/distinfo' &&
 MD5 (magicolor2430DL-1.1.0.tar.gz) = d58ad3835e1a19c9de88d45a8ada1215
 SIZE (magicolor2430DL-1.1.0.tar.gz) = 989276
 SHAR_EOF
   (set 20 05 07 28 17 58 49 'cups-magicolor/distinfo'; eval "$shar_touch") &&
   chmod 0644 'cups-magicolor/distinfo' ||
   $echo 'restore of' 'cups-magicolor/distinfo' 'failed'
   if ( md5sum --help </dev/null 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \
   && ( md5sum --version </dev/null 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then
     md5sum -c << SHAR_EOF >/dev/null 2>&1 \
     || $echo 'cups-magicolor/distinfo:' 'MD5 check failed'
 98bb2f03640875d6ffc3746df65ecfbc  cups-magicolor/distinfo
 SHAR_EOF
   else
     shar_count="`LC_ALL=C wc -c < 'cups-magicolor/distinfo'`"
     test 115 -eq "$shar_count" ||
     $echo 'cups-magicolor/distinfo:' 'original size' '115,' 'current size' "$shar_count!"
   fi
 fi
 # ============= cups-magicolor/Makefile ==============
 if test ! -d 'cups-magicolor'; then
   $echo $echo_n 'x -' 'cups-magicolor: '$echo_c
   if mkdir 'cups-magicolor'; then $echo 'created'; else $echo 'failed to create'; fi
 fi
 if test -f 'cups-magicolor/Makefile' && test "$first_param" != -c; then
   $echo 'x -' SKIPPING 'cups-magicolor/Makefile' '(file already exists)'
 else
   $echo 'x -' extracting 'cups-magicolor/Makefile' '(text)'
   sed 's/^X//' << 'SHAR_EOF' > 'cups-magicolor/Makefile' &&
 # New ports collection makefile for:	cups-pstoraster
 # Date created:		Jul 13 2002
 # Whom:			ports at FreeBSD.org
 #
 # $FreeBSD: ports/print/cups-pstoraster/Makefile,v 1.21 2005/06/29 09:27:04 barner Exp $
 #
 X
 PORTNAME=	cups-magicolor
 PORTVERSION=	1.1.0
 CATEGORIES=	print
 MASTER_SITES=	ftp://ftp.minolta-qms.com/pub/crc/out_going/other/
 X
 MAINTAINER=	frank at exit.com
 COMMENT=	CUPS support for the Konica-Minolta Magicolor 2430DL.
 X
 PATCH_DEPENDS=	${NONEXISTENT}:${PORTSDIR}/print/cups-base:configure
 LIB_DEPENDS=	cups.2:${PORTSDIR}/print/cups-base
 RUN_DEPENDS=	espgs:${PORTSDIR}/print/cups-pstoraster
 X
 DISTNAME=	magicolor2430DL-1.1.0
 X
 USE_REINPLACE=	yes
 USE_GMAKE=	yes
 X
 X
 PLIST_FILES=	libexec/cups/filter/rastertokm2430dl \
 X		share/cups/model/KONICA_MINOLTA/km2430dl.ppd.gz \
 X		share/KONICA_MINOLTA/mc2430DL/Profiles/km_0.icm \
 X		share/KONICA_MINOLTA/mc2430DL/Profiles/km_1.icm \
 X		share/KONICA_MINOLTA/mc2430DL/Profiles/km_2.icm \
 X		share/KONICA_MINOLTA/mc2430DL/Halftones/km_ht_00.bmp \
 X		share/KONICA_MINOLTA/mc2430DL/Halftones/km_ht_01.bmp \
 X		share/KONICA_MINOLTA/mc2430DL/Halftones/km_ht_02.bmp \
 X		share/KONICA_MINOLTA/mc2430DL/Halftones/km_ht_03.bmp \
 X		share/KONICA_MINOLTA/mc2430DL/Halftones/km_ht_10.bmp \
 X		share/KONICA_MINOLTA/mc2430DL/Halftones/km_ht_11.bmp \
 X		share/KONICA_MINOLTA/mc2430DL/Halftones/km_ht_12.bmp \
 X		share/KONICA_MINOLTA/mc2430DL/Halftones/km_ht_13.bmp \
 X		share/KONICA_MINOLTA/mc2430DL/Halftones/km_ht_20.bmp \
 X		share/KONICA_MINOLTA/mc2430DL/Halftones/km_ht_21.bmp \
 X		share/KONICA_MINOLTA/mc2430DL/Halftones/km_ht_22.bmp \
 X		share/KONICA_MINOLTA/mc2430DL/Halftones/km_ht_23.bmp \
 X		share/KONICA_MINOLTA/mc2430DL/Installation \
 X		share/KONICA_MINOLTA/mc2430DL/COPYING
 X
 do-configure:
 X	$(CP) ${PORTSDIR}/print/cups-base/work/cups-*/config.h ${WRKSRC}
 X
 X.include <bsd.port.mk>
 SHAR_EOF
   (set 20 05 07 29 12 31 42 'cups-magicolor/Makefile'; eval "$shar_touch") &&
   chmod 0644 'cups-magicolor/Makefile' ||
   $echo 'restore of' 'cups-magicolor/Makefile' 'failed'
   if ( md5sum --help </dev/null 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \
   && ( md5sum --version </dev/null 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then
     md5sum -c << SHAR_EOF >/dev/null 2>&1 \
     || $echo 'cups-magicolor/Makefile:' 'MD5 check failed'
 685b833271c28e88d64c6969da8754d6  cups-magicolor/Makefile
 SHAR_EOF
   else
     shar_count="`LC_ALL=C wc -c < 'cups-magicolor/Makefile'`"
     test 1817 -eq "$shar_count" ||
     $echo 'cups-magicolor/Makefile:' 'original size' '1817,' 'current size' "$shar_count!"
   fi
 fi
 # ============= cups-magicolor/files/patch-Makefile ==============
 if test ! -d 'cups-magicolor/files'; then
   $echo $echo_n 'x -' 'cups-magicolor/files: '$echo_c
   if mkdir 'cups-magicolor/files'; then $echo 'created'; else $echo 'failed to create'; fi
 fi
 if test -f 'cups-magicolor/files/patch-Makefile' && test "$first_param" != -c; then
   $echo 'x -' SKIPPING 'cups-magicolor/files/patch-Makefile' '(file already exists)'
 else
   $echo 'x -' extracting 'cups-magicolor/files/patch-Makefile' '(text)'
   sed 's/^X//' << 'SHAR_EOF' > 'cups-magicolor/files/patch-Makefile' &&
 --- ./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 @@
 X CC	=	gcc
 -CFLAGS	=	$(RC_CFLAGS)  -I. -I../include
 +CFLAGS	=	$(RC_CFLAGS)  -I. -I../include -I/usr/local/include
 X OPTIM	=	-Wall -fPIC -O2
 X #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
 X 
 -MYPRINTER = /usr/local/KONICA_MINOLTA/mc2430DL
 +MYPRINTER = /usr/local/share/KONICA_MINOLTA/mc2430DL
 X 
 X .SILENT:
 X .SUFFIXES:	.a .c .cxx .h .o .0 .1 .1m 
 @@ -28,10 +28,10 @@
 X 
 X #install the driver
 X 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
 X 	install -m 755 -d $(DESTDIR)$(MYPRINTER)/Profiles
 X 	install -m 644 km_0.icm $(DESTDIR)$(MYPRINTER)/Profiles/km_0.icm
 X 	install -m 644 km_1.icm $(DESTDIR)$(MYPRINTER)/Profiles/km_1.icm
 SHAR_EOF
   (set 20 05 07 28 19 52 54 'cups-magicolor/files/patch-Makefile'; eval "$shar_touch") &&
   chmod 0644 'cups-magicolor/files/patch-Makefile' ||
   $echo 'restore of' 'cups-magicolor/files/patch-Makefile' 'failed'
   if ( md5sum --help </dev/null 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \
   && ( md5sum --version </dev/null 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then
     md5sum -c << SHAR_EOF >/dev/null 2>&1 \
     || $echo 'cups-magicolor/files/patch-Makefile:' 'MD5 check failed'
 1bb85c64627857636fa6a12166bd536d  cups-magicolor/files/patch-Makefile
 SHAR_EOF
   else
     shar_count="`LC_ALL=C wc -c < 'cups-magicolor/files/patch-Makefile'`"
     test 1474 -eq "$shar_count" ||
     $echo 'cups-magicolor/files/patch-Makefile:' 'original size' '1474,' 'current size' "$shar_count!"
   fi
 fi
 # ============= cups-magicolor/files/patch-kmlf.h ==============
 if test ! -d 'cups-magicolor/files'; then
   $echo $echo_n 'x -' 'cups-magicolor/files: '$echo_c
   if mkdir 'cups-magicolor/files'; then $echo 'created'; else $echo 'failed to create'; fi
 fi
 if test -f 'cups-magicolor/files/patch-kmlf.h' && test "$first_param" != -c; then
   $echo 'x -' SKIPPING 'cups-magicolor/files/patch-kmlf.h' '(file already exists)'
 else
   $echo 'x -' extracting 'cups-magicolor/files/patch-kmlf.h' '(text)'
   sed 's/^X//' << 'SHAR_EOF' > 'cups-magicolor/files/patch-kmlf.h' &&
 --- ./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 @@
 X 
 X #ifdef __linux
 X #define KM_FOLDER		"/usr/local/KONICA_MINOLTA"
 +#elif defined(__FreeBSD__)
 +#define KM_FOLDER		"/usr/local/share/KONICA_MINOLTA"
 X #else
 X #define KM_FOLDER		"/Library/Printers/KONICA_MINOLTA"
 X #endif
 SHAR_EOF
   (set 20 05 07 28 19 25 16 'cups-magicolor/files/patch-kmlf.h'; eval "$shar_touch") &&
   chmod 0644 'cups-magicolor/files/patch-kmlf.h' ||
   $echo 'restore of' 'cups-magicolor/files/patch-kmlf.h' 'failed'
   if ( md5sum --help </dev/null 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \
   && ( md5sum --version </dev/null 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then
     md5sum -c << SHAR_EOF >/dev/null 2>&1 \
     || $echo 'cups-magicolor/files/patch-kmlf.h:' 'MD5 check failed'
 717b4ca1a9741eb18753f31f52236943  cups-magicolor/files/patch-kmlf.h
 SHAR_EOF
   else
     shar_count="`LC_ALL=C wc -c < 'cups-magicolor/files/patch-kmlf.h'`"
     test 341 -eq "$shar_count" ||
     $echo 'cups-magicolor/files/patch-kmlf.h:' 'original size' '341,' 'current size' "$shar_count!"
   fi
 fi
 # ============= cups-magicolor/pkg-descr ==============
 if test -f 'cups-magicolor/pkg-descr' && test "$first_param" != -c; then
   $echo 'x -' SKIPPING 'cups-magicolor/pkg-descr' '(file already exists)'
 else
   $echo 'x -' extracting 'cups-magicolor/pkg-descr' '(text)'
   sed 's/^X//' << 'SHAR_EOF' > 'cups-magicolor/pkg-descr' &&
 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.
 X
 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.
 X
 WWW: http://konicaminolta.net/
 SHAR_EOF
   (set 20 05 07 29 12 29 33 'cups-magicolor/pkg-descr'; eval "$shar_touch") &&
   chmod 0644 'cups-magicolor/pkg-descr' ||
   $echo 'restore of' 'cups-magicolor/pkg-descr' 'failed'
   if ( md5sum --help </dev/null 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \
   && ( md5sum --version </dev/null 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then
     md5sum -c << SHAR_EOF >/dev/null 2>&1 \
     || $echo 'cups-magicolor/pkg-descr:' 'MD5 check failed'
 60b9d4bfa4f9781cf62ee9fd871bfa4b  cups-magicolor/pkg-descr
 SHAR_EOF
   else
     shar_count="`LC_ALL=C wc -c < 'cups-magicolor/pkg-descr'`"
     test 665 -eq "$shar_count" ||
     $echo 'cups-magicolor/pkg-descr:' 'original size' '665,' 'current size' "$shar_count!"
   fi
 fi
 $echo $shar_n 'x -' 'lock directory' "\`_sh13175': " $shar_c
 if rm -fr _sh13175; then
   $echo 'removed'
 else
   $echo 'failed to remove'
 fi
 exit 0
 
 --------------090207050100080901070305--



More information about the freebsd-ports-bugs mailing list