pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: devel/libuv



Hi,

Robert Swindells <rjs%fdy2.co.uk@localhost> writes:

> NetBSD-current now has libuv builtin.
>
> Is anyone working on a builtin.mk for devel/libuv ?
>
> I created a minimal builtin.mk but it isn't adding libpthread to the
> link of dependent packages.

/usr/lib/pkgconfig/libuv.pc has no -lpthread in Libs.
Libs should be:

Libs: -L${libdir} -luv -lkvm -lrt -lpthread

My devel/libuv/builtin.mk is here:

# $NetBSD$

BUILTIN_PKG:=	libuv

PKGCONFIG_BASE.libuv+=	/usr
PKGCONFIG_FILE.libuv+=	/usr/lib/pkgconfig/libuv.pc

.include "../../mk/buildlink3/pkgconfig-builtin.mk"

###
### The section below only applies if we are not including this file
### solely to determine whether a built-in implementation exists.
###

CHECK_BUILTIN.libuv?=	no
.if !empty(CHECK_BUILTIN.libuv:M[nN][oO])

.  if !empty(USE_BUILTIN.libuv:M[yY][eE][sS])
BUILDLINK_PREFIX.libuv=		/usr
BUILDLINK_FILES.libuv+=		lib/pkgconfig/libuv.pc
.  endif

.endif  # CHECK_BUILTIN.libuv

Thank you.

-- 
Ryo ONODERA // ryo%tetera.org@localhost
PGP fingerprint = 82A2 DC91 76E0 A10A 8ABB  FD1B F404 27FA C7D1 15F3


Home | Main Index | Thread Index | Old Index