Subject: qt3-libs and cups
To: netbsd tech-pkg <tech-pkg@netbsd.org>
From: Bob Bernstein <rs@bernstein.providence.ri.us>
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
CUPS

...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
medium-config
 large-config full-config styles tools kernel widgets dialogs iconview
workspace
 network canvas table xml opengl sql release dll thread largefile ipv6
system-mn
g system-jpeg system-png png gif system-zlib cups bigcodecs x11sm xshape
xineram
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:

x11/qt3-libs/Makefile.common

...the USE_CUPS mk option. I took these lines out of
x11/kdelibs3/Makefile:

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

PLIST_SUBST+=           CUPS=
.else
PLIST_SUBST+=           CUPS="@comment "
.endif

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



-- 
Bob Bernstein