Subject: Re: qt3-libs and cups
To: Bob Bernstein <rs@bernstein.providence.ri.us>
From: Jeremy C. Reed <reed@reedmedia.net>
List: tech-pkg
Date: 07/08/2004 16:58:35
On Thu, 8 Jul 2004, Bob Bernstein wrote:
> ...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
Also add:
CONFIGURE_ARGS+= -cups
> PLIST_SUBST+= CUPS=
> .else
CONFIGURE_ARGS+= -no-cups
> PLIST_SUBST+= CUPS="@comment "
> .endif
The PLIST_SUBST is probably not needed, unless the CUPS-based qt3-libs
install has different files installed.
> and put them qt3-lib's Makefile.common. The build completed fine
> afterwards.
Can someone please test and verify this for us?
Thank you,
Jeremy C. Reed
BSD News, BSD tutorials, BSD links
http://www.bsdnewsletter.com/