Subject: problem when building chat/finch
To: None <pkgsrc-users@NetBSD.org>
From: Jan Kryl <loo@bazmek.net>
List: pkgsrc-users
Date: 12/01/2007 13:20:07
Hi,

I wasn't able to build finch (console front-end for libpurple), when
libpurple had been built with dbus support. The linker could not find
libdbus-glib-1 library (and it really wasn't present in work/.buildlink
directory). I added the following in buildlink3.mk in chat/libpurple and
it solved my problem:

...

pkgbase := libpurple
.include "../../mk/pkg-build-options.mk"

.if !empty(PKG_BUILD_OPTIONS.libpurple:Mdbus)
.  include "../../sysutils/dbus/buildlink3.mk"
.  include "../../sysutils/dbus-glib/buildlink3.mk"
.endif

BUILDLINK_DEPTH:=               ${BUILDLINK_DEPTH:S/+$//}


However my knowledge of pkgsrc is very limited and I don't know if this
is appropriate fix. Please review.

Cheers
Jan

PS: Almost forgot to say which version of buildling3.mk it was:
    $NetBSD: buildlink3.mk,v 1.4 2007/11/03 15:59:18 tnn Exp $