Index: graphics/dri/Makefile =================================================================== --- graphics/dri/Makefile (revision 398629) +++ graphics/dri/Makefile (working copy) @@ -25,8 +25,6 @@ .include -ALL_DRI_DRIVERS=I915 I965 R200 RADEON SWRAST - .include "${.CURDIR}/../../graphics/libGL/Makefile.common" #src/mesa/libmesagallium.la @@ -33,48 +31,6 @@ #MESA_BUILD_WRKSRC= src/util src/gallium #MESA_INSTALL_WRKSRC= src/gallium -PLIST_SUB+= VERSION=${MESADISTVERSION} - -.if ${ARCH} == amd64 || ${ARCH} == i386 || ${ARCH} == ia64 -DRI_DRIVERS= ${ALL_DRI_DRIVERS} -.endif - -.if ${PORT_OPTIONS:MTEXTURE} -CONFIGURE_ARGS+=--enable-texture-float -.endif - -.if 0 #${PORT_OPTIONS:MVDPAU} -.if ${PORT_OPTIONS:MGALLIUM} == "" -IGNORE= VDPAU option requires GALLIUM support to be enabled -.endif -CONFIGURE_ARGS+=--enable-vdpau -LIB_DEPENDS+= libvdpau.so:${PORTSDIR}/multimedia/libvdpau -PLIST_SUB+= VDPAU="" -.else -CONFIGURE_ARGS+=--disable-vdpau -PLIST_SUB+= VDPAU="@comment " -.endif - -.if ${ARCH} == powerpc || ${ARCH} == powerpc64 -DRI_DRIVERS= RADEON SWRAST -.endif -.if ${ARCH} == sparc64 || ${ARCH} == armv6 -DRI_DRIVERS= SWRAST -.endif - -# empty for unsupported arches -DRI_DRIVERS+= - -.for _d in ${ALL_DRI_DRIVERS} -. if ${DRI_DRIVERS:M${_d}} -PLIST_SUB+= ${_d}_DRIVER="" -. else -PLIST_SUB+= ${_d}_DRIVER="@comment " -. endif -.endfor - -CONFIGURE_ARGS+=--with-dri-drivers="${DRI_DRIVERS:tl}" - .include "${.CURDIR}/../../graphics/libGL/Makefile.targets" post-install: Index: graphics/libGL/Makefile.common =================================================================== --- graphics/libGL/Makefile.common (revision 398629) +++ graphics/libGL/Makefile.common (working copy) @@ -18,7 +18,7 @@ MESAVERSION= ${MESABASEVERSION}${MESASUBVERSION:C/^(.)/.\1/} MESADISTVERSION=${MESABASEVERSION}${MESASUBVERSION:C/^(.)/-\1/} -MESABASEVERSION= 10.6.8 +MESABASEVERSION= 10.6.9 # if there is a subversion, don't include the '-' between 7.11-rc2. MESASUBVERSION= @@ -81,14 +81,16 @@ CONFIGURE_ARGS+= --enable-gles2 # Clover (OpenCL). -.if ${OPSYS} == DragonFly || (${OPSYS} == FreeBSD && ${OSVERSION} >= 1000000) +.if ${OPSYS} == DragonFly || \ + (${OPSYS} == FreeBSD && ${OSVERSION} >= 1000000 && \ + ${ARCH} == i386 && ${ARCH} == amd64) BUILD_DEPENDS+= libclc>=0.0.r222830:${PORTSDIR}/devel/libclc # We need the clang port too even if it is not used to compile because # Clover needs some of the clang includes to build. -.if ${COMPONENT:Mdri} != "" || ${COMPONENT:Mclover} != "" || ${COMPONENT:Mosmesa} != "" +. if ${COMPONENT:Mdri} != "" || ${COMPONENT:Mclover} != "" || ${COMPONENT:Mosmesa} != "" BUILD_DEPENDS+= clang${MESA_LLVM_VER}>=0:${PORTSDIR}/lang/clang${MESA_LLVM_VER} -.endif +. endif CONFIGURE_ARGS+= --enable-opencl \ --enable-opencl-icd @@ -103,6 +105,7 @@ .if ${COMPONENT:Mdri} != "" || ${COMPONENT:Mclover} != "" || ${COMPONENT:Megl} != "" RUN_DEPENDS+= llvm${MESA_LLVM_VER}>=0:${PORTSDIR}/devel/llvm${MESA_LLVM_VER} .endif + CONFIGURE_ENV+= LLVM_CONFIG=${LOCALBASE}/bin/llvm-config${MESA_LLVM_VER} CONFIGURE_ARGS+=--enable-gallium-llvm \ @@ -109,10 +112,28 @@ --enable-xvmc \ --with-gallium-drivers=r300,r600,radeonsi,svga,swrast +.if ${PORT_OPTIONS:MTEXTURE} +CONFIGURE_ARGS+=--enable-texture-float +.endif + .if !(${ARCH} == amd64 || ${ARCH} == i386) CONFIGURE_ARGS+=--disable-gallium-intel .endif +# this is disabled because our kernel driver is too old +# merge this and the one below when support does land. +.if 0 #${PORT_OPTIONS:MVDPAU} +.if ${PORT_OPTIONS:MGALLIUM} == "" +IGNORE= VDPAU option requires GALLIUM support to be enabled +.endif +CONFIGURE_ARGS+=--enable-vdpau +LIB_DEPENDS+= libvdpau.so:${PORTSDIR}/multimedia/libvdpau +PLIST_SUB+= VDPAU="" +.else +CONFIGURE_ARGS+=--disable-vdpau +PLIST_SUB+= VDPAU="@comment " +.endif + # what to do with this one? Currently disabled in dri. .if ${COMPONENT:Mvdpau} == "" CONFIGURE_ARGS+=--disable-vdpau @@ -119,3 +140,30 @@ .else CONFIGURE_ARGS+=--enable-vdpau .endif + +ALL_DRI_DRIVERS=I915 I965 R200 RADEON SWRAST + +.if ${ARCH} == amd64 || ${ARCH} == i386 || ${ARCH} == ia64 +DRI_DRIVERS= ${ALL_DRI_DRIVERS} +.endif + +.if ${ARCH} == powerpc || ${ARCH} == powerpc64 +DRI_DRIVERS= RADEON SWRAST +.endif +.if ${ARCH} == sparc64 || ${ARCH} == armv6 +DRI_DRIVERS= SWRAST +.endif + +# empty for unsupported arches +DRI_DRIVERS+= + +.for _d in ${ALL_DRI_DRIVERS} +. if ${DRI_DRIVERS:M${_d}} +PLIST_SUB+= ${_d}_DRIVER="" +. else +PLIST_SUB+= ${_d}_DRIVER="@comment " +. endif +.endfor + +CONFIGURE_ARGS+=--with-dri-drivers="${DRI_DRIVERS:tl}" + Index: graphics/libGL/distinfo =================================================================== --- graphics/libGL/distinfo (revision 398629) +++ graphics/libGL/distinfo (working copy) @@ -1,2 +1,2 @@ -SHA256 (mesa-10.6.8.tar.xz) = e36ee5ceeadb3966fb5ce5b4cf18322dbb76a4f075558ae49c3bba94f57d58fd -SIZE (mesa-10.6.8.tar.xz) = 7042260 +SHA256 (mesa-10.6.9.tar.xz) = b04c4de6280b863babc2929573da17218d92e9e4ba6272d548d135415723e8c3 +SIZE (mesa-10.6.9.tar.xz) = 7041588