Thu Mar 2 06:00:03 2017 UTC ()
MesaLib: enable llvm option on all x86 platforms, and not on non-x86.

It's for the AMDGPU driver. I don't know of any ARM boards, but that may
change in the future. highly unlikely for SPARC.

Also lift the minimum GCC requirement for linux llvm option - we use GCC_REQD
for the llvm package, and gcc48 works at least on CentOS 6.8 builds, so it'll
build fine.
Linux is will benefit from the AMDGPU driver, although it requires a new
kernel anyway.

bump PKGREVISION.


(maya)
diff -r1.134 -r1.135 pkgsrc/graphics/MesaLib/Makefile
diff -r1.51 -r1.52 pkgsrc/graphics/MesaLib/options.mk

cvs diff -r1.134 -r1.135 pkgsrc/graphics/MesaLib/Makefile (expand / switch to unified diff)

--- pkgsrc/graphics/MesaLib/Makefile 2017/03/02 04:40:33 1.134
+++ pkgsrc/graphics/MesaLib/Makefile 2017/03/02 06:00:03 1.135
@@ -1,18 +1,18 @@ @@ -1,18 +1,18 @@
1# $NetBSD: Makefile,v 1.134 2017/03/02 04:40:33 maya Exp $ 1# $NetBSD: Makefile,v 1.135 2017/03/02 06:00:03 maya Exp $
2 2
3DISTNAME= mesa-11.2.2 3DISTNAME= mesa-11.2.2
4PKGNAME= ${DISTNAME:S/mesa/MesaLib/} 4PKGNAME= ${DISTNAME:S/mesa/MesaLib/}
5PKGREVISION= 2 5PKGREVISION= 3
6CATEGORIES= graphics x11 6CATEGORIES= graphics x11
7MASTER_SITES= ftp://ftp.freedesktop.org/pub/mesa/${PKGVERSION_NOREV}/ 7MASTER_SITES= ftp://ftp.freedesktop.org/pub/mesa/${PKGVERSION_NOREV}/
8EXTRACT_SUFX= .tar.xz 8EXTRACT_SUFX= .tar.xz
9 9
10MAINTAINER= pkgsrc-users@NetBSD.org 10MAINTAINER= pkgsrc-users@NetBSD.org
11HOMEPAGE= http://www.mesa3d.org/ 11HOMEPAGE= http://www.mesa3d.org/
12COMMENT= The Mesa 3D Graphics Library 12COMMENT= The Mesa 3D Graphics Library
13LICENSE= mit 13LICENSE= mit
14 14
15GNU_CONFIGURE= yes 15GNU_CONFIGURE= yes
16USE_TOOLS+= bison pkg-config gmake flex 16USE_TOOLS+= bison pkg-config gmake flex
17USE_LANGUAGES= c99 c++ 17USE_LANGUAGES= c99 c++
18USE_LIBTOOL= yes 18USE_LIBTOOL= yes

cvs diff -r1.51 -r1.52 pkgsrc/graphics/MesaLib/options.mk (expand / switch to unified diff)

--- pkgsrc/graphics/MesaLib/options.mk 2017/03/02 05:37:22 1.51
+++ pkgsrc/graphics/MesaLib/options.mk 2017/03/02 06:00:03 1.52
@@ -1,34 +1,23 @@ @@ -1,34 +1,23 @@
1# $NetBSD: options.mk,v 1.51 2017/03/02 05:37:22 maya Exp $ 1# $NetBSD: options.mk,v 1.52 2017/03/02 06:00:03 maya Exp $
2 2
3PKG_OPTIONS_VAR= PKG_OPTIONS.MesaLib 3PKG_OPTIONS_VAR= PKG_OPTIONS.MesaLib
4PKG_SUPPORTED_OPTIONS= llvm dri 4PKG_SUPPORTED_OPTIONS= llvm dri
5PKG_SUGGESTED_OPTIONS= 5PKG_SUGGESTED_OPTIONS=
6 6
7# The LLVM option enables JIT accelerated software rendering and 7# The LLVM option enables JIT accelerated software rendering and
8# is also required to support the latest RADEON GPUs, so enable it 8# is also required to support the latest RADEON GPUs, so enable it
9# by default on platforms where such GPUs might be encountered. 9# by default on platforms where such GPUs might be encountered.
10.if \ 10.if (${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64")
11 !empty(MACHINE_PLATFORM:MNetBSD-[789].*-i386) || \ 
12 !empty(MACHINE_PLATFORM:MNetBSD-[789].*-x86_64) || \ 
13 !empty(MACHINE_PLATFORM:MNetBSD-[789].*-sparc64) || \ 
14 !empty(MACHINE_PLATFORM:MNetBSD-[789].*-*arm*) 
15PKG_SUGGESTED_OPTIONS+= llvm 
16.endif 
17 
18.if (!empty(MACHINE_PLATFORM:MLinux-*-i386) || \ 
19 !empty(MACHINE_PLATFORM:MLinux-*-x86_64)) && \ 
20 (!empty(CC_VERSION:Mgcc-4.[89].*) || \ 
21 !empty(CC_VERSION:Mgcc-[56].*)) 
22PKG_SUGGESTED_OPTIONS+= llvm 11PKG_SUGGESTED_OPTIONS+= llvm
23.endif 12.endif
24 13
25.if ${OPSYS} == "FreeBSD" || ${OPSYS} == "OpenBSD" || \ 14.if ${OPSYS} == "FreeBSD" || ${OPSYS} == "OpenBSD" || \
26 ${OPSYS} == "DragonFly" || ${OPSYS} == "Linux" || \ 15 ${OPSYS} == "DragonFly" || ${OPSYS} == "Linux" || \
27 ${OPSYS} == "SunOS" || ${OPSYS} == "NetBSD" || \ 16 ${OPSYS} == "SunOS" || ${OPSYS} == "NetBSD" || \
28 ${OPSYS} == "Darwin" 17 ${OPSYS} == "Darwin"
29PKG_SUGGESTED_OPTIONS+= dri 18PKG_SUGGESTED_OPTIONS+= dri
30.endif 19.endif
31 20
32.include "../../mk/bsd.options.mk" 21.include "../../mk/bsd.options.mk"
33 22
34# gallium 23# gallium