Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 18 Jan 1998 21:47:17 +0200
From:      Teemu Hakala <temmi@iki.fi>
To:        FreeBSD-gnats-submit@freebsd.org
Cc:        temmi@iki.fi
Subject:   ports/32285: a new port for application gimp-print
Message-ID:  <98011821470100.00353@localhost>

next in thread | raw e-mail | index | archive | help

>Number:         32285
>Category:       ports
>Synopsis:       a new port for application gimp-print
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Nov 26 01:30:00 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     Teemu Hakala
>Release:        FreeBSD 4.4-20010815-RC1 i386
>Organization:
individual
>Environment:
System: FreeBSD localhost 4.4-20010815-RC1 FreeBSD 4.4-20010815-RC1 #0: Thu 
Aug
16 06:35:35 GMT 2001 murray@scrub.lab.nuxi.com:/usr/src/sys/compile/GENERIC 
i386 
 
        Athlon 800MHz / 256M / Canon BJC-7100
        K6 166MHz / 64M / HP DeskJet 950C on a Windows machine

>Description:
        The age-old unix printing-problem. Several solutions have existed but 
        all of them have been mostly too complicated for the generic new
        desktop user. CUPS seems to be pretty nice in features and especially
        it is easy to configure (once we fix the cups port to have a working
        default daemon configuration file). CUPS as itself does not have many
        drivers but this application - gimp-print has tons of them.
>How-To-Repeat:
        Print from any graphics-savvy unix-program to your new inkjet printer.
        Nice, provided that you can read Postscript and have good imagination.
        Not very suitable for showing your latest images to your aunt.

        After installing this port and some minor configuration you should be
        able to print graphics as graphics instead of Postscript source. I
        have been able to print to a Canon BJC-7100 to parallel port and
        with help of Samba, to a HP DeskJet 950C on a Windows machine
        at the home LAN at my parents' place.
>Fix:
 
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#       .
#       ./pkg-comment
#       ./Makefile
#       ./pkg-descr
#       ./files
#       ./files/patch-aa
#       ./files/pre-patch-ab
#       ./files/NOTES
#       ./pkg-message
#       ./distinfo
#       ./pkg-plist
#
echo c - .
mkdir -p . > /dev/null 2>&1
echo x - ./pkg-comment
sed 's/^X//' >./pkg-comment << 'END-of-./pkg-comment'
XMany printer drivers for the CUPS printing system
END-of-./pkg-comment
echo x - ./Makefile
sed 's/^X//' >./Makefile << 'END-of-./Makefile'
X# New ports collection makefile for:   gimp-print
X# Date created:        25 November 2001
X# Whom:                temmi
X#
X# $FreeBSD$
X#
X
XPORTNAME=                gimp-print
XPORTVERSION=             4.2.0
XCATEGORIES=              print
XMASTER_SITES=            ${MASTER_SITE_SOURCEFORGE}
XMASTER_SITE_SUBDIR=      gimp-print/
X
XMAINTAINER=              temmi@iki.fi
X
XLIB_DEPENDS=             cups.2:${PORTSDIR}/print/cups
X
XMAN1=                    escputil.1
XMAN1+=                   gimpprint-config.1
XMAN3=                    gimpprint.3
XMAN8=                    cups-calibrate.8
XMANCOMPRESS=             NO
X
XCPPFLAGS+=               -I${PREFIX}/include
XLIBS+=                   -L${PREFIX}/lib -lcups
X
XGNU_CONFIGURE=           YES
X
XCONFIGURE_ENV+=          CPPFLAGS='${CPPFLAGS}'
XCONFIGURE_ENV+=          LIBS='${LIBS}'
X
XCONFIGURE_ARGS+=         --exec-prefix=${PREFIX}
XCONFIGURE_ARGS+=         --with-cups=${PREFIX}/lib
XCONFIGURE_ARGS+=         --without-gimp
XCONFIGURE_ARGS+=         --without-translated-ppds
X
Xpre-patch:
X       perl -pe " s#%%PREFIX%%#${PREFIX}# " \
X               < ${FILESDIR}/pre-patch-ab   \
X               > ${FILESDIR}/patch-ab
X
Xpre-clean:
X       rm ${FILESDIR}/patch-ab
X
Xpost-install:
X       strip ${PREFIX}/lib/libgimpprint.so.1
X       perl -pe " s#%%PREFIX%%#${PREFIX}# " < pkg-message
X
X.include <bsd.port.mk>
END-of-./Makefile
echo x - ./pkg-descr
sed 's/^X//' >./pkg-descr << 'END-of-./pkg-descr'
XGimp-print has drivers for most modern printers for
Xthe CUPS printing system. CUPS has an easy-to-use
Xinterface to configure printers, eats Postscript
Xand outputs it to printer of choice. Integration to
XWindows networks with the samba port is easy. Nice.
X
XThe port is somewhat stripped - please help me in
Xmaking it possible to optionally build with some
Xadditional components such as interfaces to the Gimp,
XFoomatic and Ghostscript.
X
XWWW: http://gimp-print.sourceforge.net
X
X - temmi@iki.fi
END-of-./pkg-descr
echo c - ./files
mkdir -p ./files > /dev/null 2>&1
echo x - ./files/patch-aa
sed 's/^X//' >./files/patch-aa << 'END-of-./files/patch-aa'
X*** Makefile.in
X***************
X*** 189,195 ****
X  MAINT_CHARSET = latin1
X  NONGIMP_SUBDIRS = test
X  NONGIMP_DISTDIRS = debian
X! SUBDIRS = include intl lib man src samples $(NONGIMP_SUBDIRS) po doc
X  DISTDIRS = scripts $(NONGIMP_DISTDIRS)
X
X  EXTRA_DIST = configure.in.in autogen.sh
X--- 189,195 ----
X  MAINT_CHARSET = latin1
X  NONGIMP_SUBDIRS = test
X  NONGIMP_DISTDIRS = debian
X! SUBDIRS = include intl lib man src samples $(NONGIMP_SUBDIRS) po
X  DISTDIRS = scripts $(NONGIMP_DISTDIRS)
X
X  EXTRA_DIST = configure.in.in autogen.sh
X
END-of-./files/patch-aa
echo x - ./files/pre-patch-ab
sed 's/^X//' >./files/pre-patch-ab << 'END-of-./files/pre-patch-ab'
X*** configure
X***************
X*** 11161,11167 ****
X  if test "${bindir}" = "\${prefix}/bin" -a "${cups_prefix}" = "/" ; then
X    cups_bindir="/usr/bin"
X  else
X!   cups_bindir="${cups_prefix}/bin"
X  fi
X
X  if test "x$CUPS_CONFIG" != x; then
X--- 11161,11167 ----
X  if test "${bindir}" = "\${prefix}/bin" -a "${cups_prefix}" = "/" ; then
X    cups_bindir="/usr/bin"
X  else
X!   cups_bindir="%%PREFIX%%/bin"
X  fi
X
X  if test "x$CUPS_CONFIG" != x; then
X***************
X*** 11172,11189 ****
X    if test "${datadir}" = "\${prefix}/share" -a "${cups_prefix}" = "/" ; 
then
X      cups_conf_datadir="/usr/share/cups"
X    else
X!     cups_conf_datadir="${cups_prefix}/share/cups"
X    fi
X    if test "${libdir}" = "\${prefix}/lib" -a "${cups_prefix}" = "/" ; then
X      cups_conf_serverbin="/usr/lib/cups"
X    else
X!     cups_conf_serverbin="${cups_prefix}/lib/cups"
X    fi
X    if test "${sysconfdir}" = "\${prefix}/etc"; then
X      if test "${cups_prefix}" = "/usr" ; then
X        cups_conf_serverroot="/etc/cups"
X      else
X!       cups_conf_serverroot="${cups_prefix}/etc/cups"
X      fi
X    fi
X  fi
X--- 11172,11189 ----
X    if test "${datadir}" = "\${prefix}/share" -a "${cups_prefix}" = "/" ; 
then
X      cups_conf_datadir="/usr/share/cups"
X    else
X!     cups_conf_datadir="%%PREFIX%%/share/cups"
X    fi
X    if test "${libdir}" = "\${prefix}/lib" -a "${cups_prefix}" = "/" ; then
X      cups_conf_serverbin="/usr/lib/cups"
X    else
X!     cups_conf_serverbin="%%PREFIX%%/libexec/cups"
X    fi
X    if test "${sysconfdir}" = "\${prefix}/etc"; then
X      if test "${cups_prefix}" = "/usr" ; then
X        cups_conf_serverroot="/etc/cups"
X      else
X!       cups_conf_serverroot="%%PREFIX%%/etc/cups"
X      fi
X    fi
X  fi
END-of-./files/pre-patch-ab
echo x - ./files/NOTES
sed 's/^X//' >./files/NOTES << 'END-of-./files/NOTES'
XKNOWN PROBLEMS
X
Xbuild options    - This port builds only what I have considered
X                   necessary for my particular configuration
X                   ie. the CUPS drivers.
X
Xdocumentation    - There is a problem in making the doc tree
X                   so I patched the Makefile.in variable
X                   SUBDIRS not to make documentation.
X                   Some man pages are still being made, but
X                   at least part of the original documentation
X                   will be missed.
X                   DO NOT USE AUTOMAKE - it will break this
X                   unless you patch Makefile.am in similar
X                   fashion.
X
XPPD translations - Printer description files could be translated
X                   to various languages, this does not work on
X                   many BSD systems, according to ${WRKSRC}/README
X                   and my personal tests. If we can make them
X                   build correctly, it would be nice to throw
X                   the patch to the developers.
X
Xpatched          - I needed to patch the configure -script in
Xconfigure          order to install cups files in correct
X                   locations. This seems pretty stupid, using
X                   automake might be of help. If you try, remember
X                   to either fix documentation-bug or patch
X                   Makefile.am. Other than that, automake should
X                   work afaiu.
X
X${PREFIX}        - I am not absolutely sure that this port will
X                   install without problems in other prefixes
X                   than /usr/local.
X
Xpkg-plist        - As far as I know, the pkg-plist should be
X                   correct and the port should not install
X                   anything unlisted. This should be tested.
END-of-./files/NOTES
echo x - ./pkg-message
sed 's/^X//' >./pkg-message << 'END-of-./pkg-message'
XOkay, you have installed various drivers for the CUPS package.
X
XNow, unless you already have done so, would be a good time to edit files
X%%PREFIX%%/etc/cups/cupsd.conf
X%%PREFIX%%/etc/cups/client.conf
X
XAfter that start cupsd and fire up a browser to CUPS port at localhost,
Xby default http://localhost:631/ is the correct URI.
X
XThe pathnames provided in the default cupsd.conf are bull. If you
Xinstalled the cups port/package in the same PREFIX than this,
Xthese values should be correct. Other than pathnames, I have also
Xprovided some other configureable variables, which should work out
Xfinely. About the only editable directive in client.conf is the
XServerName, in most cases localhost would be fine.
X
XServerName localhost
XDataDir /usr/local/share/cups
XDocumentRoot /usr/local/share/doc/cups
XFontPath /usr/local/share/cups/fonts
XLogLevel info
XServerBin /usr/local/libexec/cups
XServerRoot /usr/local/etc/cups
XUser daemon
XGroup daemon
XPort 631
XBrowsing Off
XSystemGroup daemon
END-of-./pkg-message
echo x - ./distinfo
sed 's/^X//' >./distinfo << 'END-of-./distinfo'
XMD5 (gimp-print-4.2.0.tar.gz) = 4350e2ac1f27eccad0d7ce2aab90cdf6
END-of-./distinfo
echo x - ./pkg-plist
sed 's/^X//' >./pkg-plist << 'END-of-./pkg-plist'
Xbin/gimpprint-config
Xbin/escputil
Xbin/cups-calibrate
Xetc/cups/command.types
Xinclude/gimp-print/gimp-print.h
Xlib/charset.alias
Xlib/libgimpprint.so.1
Xlib/libgimpprint.la
Xlib/libgimpprint.a
Xlibexec/cups/backend/epson
Xlibexec/cups/backend/canon
Xlibexec/cups/filter/rastertoprinter
Xlibexec/cups/filter/commandtoepson
Xlibexec/cups/filter/commandtocanon
Xshare/aclocal/gimpprint.m4
Xshare/cups/model/C/bjc-1000.ppd.gz
Xshare/cups/model/C/bjc-2000.ppd.gz
Xshare/cups/model/C/bjc-210.ppd.gz
Xshare/cups/model/C/bjc-240.ppd.gz
Xshare/cups/model/C/bjc-250.ppd.gz
Xshare/cups/model/C/bjc-30.ppd.gz
Xshare/cups/model/C/bjc-3000.ppd.gz
Xshare/cups/model/C/bjc-4300.ppd.gz
Xshare/cups/model/C/bjc-4400.ppd.gz
Xshare/cups/model/C/bjc-50.ppd.gz
Xshare/cups/model/C/bjc-55.ppd.gz
Xshare/cups/model/C/bjc-6000.ppd.gz
Xshare/cups/model/C/bjc-6100.ppd.gz
Xshare/cups/model/C/bjc-6200.ppd.gz
Xshare/cups/model/C/bjc-6500.ppd.gz
Xshare/cups/model/C/bjc-7000.ppd.gz
Xshare/cups/model/C/bjc-7100.ppd.gz
Xshare/cups/model/C/bjc-80.ppd.gz
Xshare/cups/model/C/bjc-8200.ppd.gz
Xshare/cups/model/C/bjc-85.ppd.gz
Xshare/cups/model/C/bjc-s400.ppd.gz
Xshare/cups/model/C/bjc-s450.ppd.gz
Xshare/cups/model/C/bjc-s4500.ppd.gz
Xshare/cups/model/C/bjc-s800.ppd.gz
Xshare/cups/model/C/escp2-10000.ppd.gz
Xshare/cups/model/C/escp2-1160.ppd.gz
Xshare/cups/model/C/escp2-1200.ppd.gz
Xshare/cups/model/C/escp2-1270.ppd.gz
Xshare/cups/model/C/escp2-1280.ppd.gz
Xshare/cups/model/C/escp2-1290.ppd.gz
Xshare/cups/model/C/escp2-1500.ppd.gz
Xshare/cups/model/C/escp2-1520.ppd.gz
Xshare/cups/model/C/escp2-2000.ppd.gz
Xshare/cups/model/C/escp2-3000.ppd.gz
Xshare/cups/model/C/escp2-400.ppd.gz
Xshare/cups/model/C/escp2-440.ppd.gz
Xshare/cups/model/C/escp2-460.ppd.gz
Xshare/cups/model/C/escp2-480.ppd.gz
Xshare/cups/model/C/escp2-500.ppd.gz
Xshare/cups/model/C/escp2-5000.ppd.gz
Xshare/cups/model/C/escp2-5500.ppd.gz
Xshare/cups/model/C/escp2-580.ppd.gz
Xshare/cups/model/C/escp2-600.ppd.gz
Xshare/cups/model/C/escp2-640.ppd.gz
Xshare/cups/model/C/escp2-660.ppd.gz
Xshare/cups/model/C/escp2-670.ppd.gz
Xshare/cups/model/C/escp2-680.ppd.gz
Xshare/cups/model/C/escp2-700.ppd.gz
Xshare/cups/model/C/escp2-7000.ppd.gz
Xshare/cups/model/C/escp2-720.ppd.gz
Xshare/cups/model/C/escp2-740.ppd.gz
Xshare/cups/model/C/escp2-750.ppd.gz
Xshare/cups/model/C/escp2-7500.ppd.gz
Xshare/cups/model/C/escp2-760.ppd.gz
Xshare/cups/model/C/escp2-777.ppd.gz
Xshare/cups/model/C/escp2-780.ppd.gz
Xshare/cups/model/C/escp2-785.ppd.gz
Xshare/cups/model/C/escp2-790.ppd.gz
Xshare/cups/model/C/escp2-800.ppd.gz
Xshare/cups/model/C/escp2-810.ppd.gz
Xshare/cups/model/C/escp2-820.ppd.gz
Xshare/cups/model/C/escp2-83.ppd.gz
Xshare/cups/model/C/escp2-850.ppd.gz
Xshare/cups/model/C/escp2-860.ppd.gz
Xshare/cups/model/C/escp2-870.ppd.gz
Xshare/cups/model/C/escp2-875.ppd.gz
Xshare/cups/model/C/escp2-880.ppd.gz
Xshare/cups/model/C/escp2-890.ppd.gz
Xshare/cups/model/C/escp2-895.ppd.gz
Xshare/cups/model/C/escp2-900.ppd.gz
Xshare/cups/model/C/escp2-9000.ppd.gz
Xshare/cups/model/C/escp2-9500.ppd.gz
Xshare/cups/model/C/escp2-980.ppd.gz
Xshare/cups/model/C/escp2-c20sx.ppd.gz
Xshare/cups/model/C/escp2-c20ux.ppd.gz
Xshare/cups/model/C/escp2-c40sx.ppd.gz
Xshare/cups/model/C/escp2-c40ux.ppd.gz
Xshare/cups/model/C/escp2-c60.ppd.gz
Xshare/cups/model/C/escp2-c70.ppd.gz
Xshare/cups/model/C/escp2-c80.ppd.gz
Xshare/cups/model/C/escp2-ex.ppd.gz
Xshare/cups/model/C/escp2-photo.ppd.gz
Xshare/cups/model/C/escp2-pro-xl.ppd.gz
Xshare/cups/model/C/escp2-pro.ppd.gz
Xshare/cups/model/C/escp2-scan2000.ppd.gz
Xshare/cups/model/C/escp2-scan2500.ppd.gz
Xshare/cups/model/C/escp2.ppd.gz
Xshare/cups/model/C/lexmark-4076.ppd.gz
Xshare/cups/model/C/lexmark-z42.ppd.gz
Xshare/cups/model/C/lexmark-z43.ppd.gz
Xshare/cups/model/C/lexmark-z52.ppd.gz
Xshare/cups/model/C/pcl-1100.ppd.gz
Xshare/cups/model/C/pcl-1120.ppd.gz
Xshare/cups/model/C/pcl-1200.ppd.gz
Xshare/cups/model/C/pcl-1220.ppd.gz
Xshare/cups/model/C/pcl-1600.ppd.gz
Xshare/cups/model/C/pcl-2.ppd.gz
Xshare/cups/model/C/pcl-2000.ppd.gz
Xshare/cups/model/C/pcl-2500.ppd.gz
Xshare/cups/model/C/pcl-3.ppd.gz
Xshare/cups/model/C/pcl-340.ppd.gz
Xshare/cups/model/C/pcl-4.ppd.gz
Xshare/cups/model/C/pcl-400.ppd.gz
Xshare/cups/model/C/pcl-4l.ppd.gz
Xshare/cups/model/C/pcl-4v.ppd.gz
Xshare/cups/model/C/pcl-5.ppd.gz
Xshare/cups/model/C/pcl-500.ppd.gz
Xshare/cups/model/C/pcl-501.ppd.gz
Xshare/cups/model/C/pcl-520.ppd.gz
Xshare/cups/model/C/pcl-540.ppd.gz
Xshare/cups/model/C/pcl-550.ppd.gz
Xshare/cups/model/C/pcl-560.ppd.gz
Xshare/cups/model/C/pcl-5si.ppd.gz
Xshare/cups/model/C/pcl-6.ppd.gz
Xshare/cups/model/C/pcl-600.ppd.gz
Xshare/cups/model/C/pcl-601.ppd.gz
Xshare/cups/model/C/pcl-690.ppd.gz
Xshare/cups/model/C/pcl-750.ppd.gz
Xshare/cups/model/C/pcl-810.ppd.gz
Xshare/cups/model/C/pcl-812.ppd.gz
Xshare/cups/model/C/pcl-840.ppd.gz
Xshare/cups/model/C/pcl-842.ppd.gz
Xshare/cups/model/C/pcl-845.ppd.gz
Xshare/cups/model/C/pcl-850.ppd.gz
Xshare/cups/model/C/pcl-855.ppd.gz
Xshare/cups/model/C/pcl-870.ppd.gz
Xshare/cups/model/C/pcl-890.ppd.gz
Xshare/cups/model/C/pcl-895.ppd.gz
Xshare/cups/model/C/pcl-900.ppd.gz
Xshare/cups/model/C/pcl-P1000.ppd.gz
Xshare/cups/model/C/pcl-P1100.ppd.gz
Xshare/cups/calibrate.ppm
Xshare/locale/fr/LC_MESSAGES/gimp-print.mo
Xshare/locale/en_GB/LC_MESSAGES/gimp-print.mo
Xshare/locale/locale.alias
Xshare/locale/sv/LC_MESSAGES/gimp-print.mo
Xshare/locale/no/LC_MESSAGES/gimp-print.mo
Xshare/locale/da/LC_MESSAGES/gimp-print.mo
Xshare/locale/pl/LC_MESSAGES/gimp-print.mo
Xshare/gimp-print/samples/testpattern.sample
Xshare/gimp-print/samples/colorbars4.png
Xshare/gimp-print/samples/colorsweep.png
Xshare/gimp-print/samples/profile.jpg
Xshare/locale/locale.alias
Xshare/locale/sv/LC_MESSAGES/gimp-print.mo
Xshare/locale/no/LC_MESSAGES/gimp-print.mo
Xshare/locale/da/LC_MESSAGES/gimp-print.mo
Xshare/locale/pl/LC_MESSAGES/gimp-print.mo
Xshare/gimp-print/samples/testpattern.sample
Xshare/gimp-print/samples/colorbars4.png
Xshare/gimp-print/samples/colorsweep.png
Xshare/gimp-print/samples/profile.jpg
X@unexec rmdir %D/etc/cups                       2>/dev/null || true
X@unexec rmdir %D/include/gimp-print             2>/dev/null || true
X@unexec rmdir %D/libexec/cups/backend           2>/dev/null || true
X@unexec rmdir %D/libexec/cups/filter            2>/dev/null || true
X@unexec rmdir %D/libexec/cups                   2>/dev/null || true
X@unexec rmdir %D/share/aclocal                  2>/dev/null || true
X@unexec rmdir %D/share/cups/model/C             2>/dev/null || true
X@unexec rmdir %D/share/cups/model               2>/dev/null || true
X@unexec rmdir %D/share/cups                     2>/dev/null || true
X@unexec rmdir %D/share/gimp-print/samples       2>/dev/null || true
X@unexec rmdir %D/share/gimp-print               2>/dev/null || true
END-of-./pkg-plist
exit

>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?98011821470100.00353>