On Thu 17 May 2018 at 16:54:07 +0100, Dave Tyson wrote: > I guess I'll have to try and brute force it by hacking the configure > script/Makefiles. This will not be pretty :-) I wrote about MesaLib in this mailing list and/or tech-pkg a bit earlier, although it was on NetBSD 7, not on 8. So my solution might not work for you. See "Inverted OPSYS conditional in graphics/MesaLib/options.mk" in tech-pkg starting 15 april: http://mail-index.netbsd.org/tech-pkg/2018/04/15/msg019669.html On 7, there is no dri3 so I manually disabled that in options.mk. dri (not 3) was ok. Index: options.mk =================================================================== RCS file: /cvsroot/pkgsrc/graphics/MesaLib/options.mk,v retrieving revision 1.58 diff -u -r1.58 options.mk --- options.mk 24 Mar 2018 22:11:14 -0000 1.58 +++ options.mk 17 May 2018 15:55:24 -0000 @@ -34,8 +34,10 @@ CONFIGURE_ARGS+= --enable-dri CONFIGURE_ARGS+= --enable-egl .if ${OPSYS} != "Darwin" -CFLAGS+= -DHAVE_DRI3 -CONFIGURE_ARGS+= --enable-dri3 +#CFLAGS+= -DHAVE_DRI3 +#CONFIGURE_ARGS+= --enable-dri3 +# Not available on NetBSD 7? +CONFIGURE_ARGS+= --disable-dri3 CONFIGURE_ARGS+= --enable-gbm PLIST.gbm= yes .endif I also had problems with *some* users of libGL that had link errors (table_noop_array undefined). For that I adopted a bunch of patches from wip/MesaLib. See http://mail-index.netbsd.org/tech-pkg/2018/04/17/msg019677.html http://mail-index.netbsd.org/pkgsrc-users/2018/04/22/msg026524.html I don't know if pkgsrc has a fix included now, or if it isn't relevant in 8. I learned that it is important that all openGL related libraries are from the same source, since otherwise some programs get linked to multiple versions of the same library (base and pkgsrc). So I have in my /etc/mk.conf PREFER.libdrm = pkgsrc # req'd by MesaLib PREFER.MesaLib = pkgsrc PREFER.glu = ${PREFER.MesaLib} # automatically correct for most; req'd for xscreensaver PREFER.gle = ${PREFER.MesaLib} # req'd by xscreensaver # GL, gle and glu should generally match up, PREFER-wise. I also build everything with gcc 4.9 (not default on NetBSD 7) but since 8 has an even newer version, that won't be a problem I expect. Note that if you change any of this after you already built some packages, you may need to rebuild some! In particular x11-links is sensitive to this. -Olaf. -- ___ Olaf 'Rhialto' Seibert -- Wayland: Those who don't understand X \X/ rhialto/at/falu.nl -- are condemned to reinvent it. Poorly.
Attachment:
signature.asc
Description: PGP signature