Subject: qt3-libs and cups
To: netbsd tech-pkg <>
From: Bob Bernstein <>
List: tech-pkg
Date: 07/08/2004 22:46:53
On a system:

i386, NetBSD 2.0F (BOB) #0: Sun Jun  6 00:10:43 EDT 2004 

...with cups installed:

$ pkg_info |grep cups
cupsomatic-2.2nb1   Foomatic CUPS printer filter
cups-1.1.20         Common UNIX Printing System
cupsomatic-ppds-20010515nb1 Free software printer drivers for use with

...the pkgsrc build of qt3-libs fails for want of a dependency on cups:

dialogs/qprintdialog.cpp:790:23: cups/cups.h: No such file or directory

The qt config picks up the existence of cups on the system:

Configuration .......  nocrosscompiler minimal-config small-config
 large-config full-config styles tools kernel widgets dialogs iconview
 network canvas table xml opengl sql release dll thread largefile ipv6
g system-jpeg system-png png gif system-zlib cups bigcodecs x11sm xshape
a xrandr xrender xftfreetype xkb

After an off-list exchange with Jeremy Reed (and at his suggestion) I
post here what seems to work quite well, namely including in:


...the USE_CUPS mk option. I took these lines out of

.if defined(USE_CUPS) && (${USE_CUPS} == "YES")
.include "../../print/cups/"
BUILD_DEFS+=            USE_CUPS

PLIST_SUBST+=           CUPS=
PLIST_SUBST+=           CUPS="@comment "

and put them qt3-lib's Makefile.common. The build completed fine

Bob Bernstein