Subject: Re: pkg/30317
To: None <roland.illig@gmx.de, gnats-bugs@netbsd.org>
From: Matthias Drochner <M.Drochner@fz-juelich.de>
List: pkgsrc-bugs
Date: 05/25/2005 22:01:19
roland.illig@gmx.de said:
>  Apart from the following line, the package works on NetBSD 1.6.2 when
> I 
>  remove the "native" flag from PTHREAD_OPTS. 

OK, it might be easyer than I thought to get a pkg for 1.6.
Can you try something like the following:

PTHREAD_OPTS+= native
.include "../../mk/pthread.buildlink3.mk"
.if defined(PTHREAD_TYPE) && ${PTHREAD_TYPE} == "native"
PLIST_SUBST+= HAVE_THR=""
.else
PLIST_SUBST+= HAVE_THR="@comment "
.endif

and put a "${HAVE_THR}" in front of the pthread.dll PLIST entry.

best regards
Matthias