aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--graphics/dri/pkg-plist18
-rw-r--r--graphics/libGL/Makefile.common26
2 files changed, 29 insertions, 15 deletions
diff --git a/graphics/dri/pkg-plist b/graphics/dri/pkg-plist
index cbd9be20bfd4..fcf4d2bec4cb 100644
--- a/graphics/dri/pkg-plist
+++ b/graphics/dri/pkg-plist
@@ -26,14 +26,14 @@ include/GL/internal/dri_interface.h
@comment include/gbm.h
%%I915_DRIVER%%lib/dri/i915_dri.so
%%I965_DRIVER%%lib/dri/i965_dri.so
-lib/dri/kms_swrast_dri.so
+%%SWRAST_GDRIVER%%lib/dri/kms_swrast_dri.so
%%R200_DRIVER%%lib/dri/r200_dri.so
-lib/dri/r300_dri.so
-lib/dri/r600_dri.so
+%%R300_GDRIVER%%lib/dri/r300_dri.so
+%%R600_GDRIVER%%lib/dri/r600_dri.so
%%RADEON_DRIVER%%lib/dri/radeon_dri.so
-lib/dri/radeonsi_dri.so
+%%RADEONSI_GDRIVER%%lib/dri/radeonsi_dri.so
%%SWRAST_DRIVER%%lib/dri/swrast_dri.so
-lib/dri/vmwgfx_dri.so
+%%SVGA_GDRIVER%%lib/dri/vmwgfx_dri.so
@comment lib/gallium-pipe/pipe_r300.so
@comment lib/gallium-pipe/pipe_r600.so
@comment lib/gallium-pipe/pipe_radeonsi.so
@@ -54,10 +54,10 @@ lib/dri/vmwgfx_dri.so
@comment lib/libOSMesa.so
@comment lib/libOSMesa.so.8
@comment lib/libOSMesa.so.8.0.0
-lib/libXvMCr600.so
-lib/libXvMCr600.so.1
-lib/libXvMCr600.so.1.0
-lib/libXvMCr600.so.1.0.0
+%%R600_GDRIVER%%lib/libXvMCr600.so
+%%R600_GDRIVER%%lib/libXvMCr600.so.1
+%%R600_GDRIVER%%lib/libXvMCr600.so.1.0
+%%R600_GDRIVER%%lib/libXvMCr600.so.1.0.0
@comment lib/libgbm.so
@comment lib/libgbm.so.1
@comment lib/libgbm.so.1.0.0
diff --git a/graphics/libGL/Makefile.common b/graphics/libGL/Makefile.common
index e5040b14836e..ffa82b74a4d5 100644
--- a/graphics/libGL/Makefile.common
+++ b/graphics/libGL/Makefile.common
@@ -109,17 +109,12 @@ RUN_DEPENDS+= llvm${MESA_LLVM_VER}>=0:${PORTSDIR}/devel/llvm${MESA_LLVM_VER}
CONFIGURE_ENV+= LLVM_CONFIG=${LOCALBASE}/bin/llvm-config${MESA_LLVM_VER}
CONFIGURE_ARGS+=--enable-gallium-llvm \
- --enable-xvmc \
- --with-gallium-drivers=r300,r600,radeonsi,svga,swrast
+ --enable-xvmc
.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}
@@ -141,21 +136,30 @@ CONFIGURE_ARGS+=--disable-vdpau
CONFIGURE_ARGS+=--enable-vdpau
.endif
+# VAAPI support?
+CONFIGURE_ARGS+=--disable-va
+
ALL_DRI_DRIVERS=I915 I965 R200 RADEON SWRAST
+ALL_GALLIUM_DRIVERS=R300 R600 RADEONSI SVGA SWRAST
.if ${ARCH} == amd64 || ${ARCH} == i386 || ${ARCH} == ia64
DRI_DRIVERS= ${ALL_DRI_DRIVERS}
+GALLIUM_DRIVERS= ${ALL_GALLIUM_DRIVERS}
.endif
.if ${ARCH} == powerpc || ${ARCH} == powerpc64
DRI_DRIVERS= RADEON SWRAST
+GALLIUM_DRIVERS= RADEON SWRAST
.endif
+
.if ${ARCH} == sparc64 || ${ARCH} == armv6
DRI_DRIVERS= SWRAST
+GALLIUM_DRIVERS= SWRAST
.endif
# empty for unsupported arches
DRI_DRIVERS+=
+GALLIUM_DRIVERS+=
.for _d in ${ALL_DRI_DRIVERS}
. if ${DRI_DRIVERS:M${_d}}
@@ -167,3 +171,13 @@ PLIST_SUB+= ${_d}_DRIVER="@comment "
CONFIGURE_ARGS+=--with-dri-drivers="${DRI_DRIVERS:tl}"
+.for _gd in ${ALL_GALLIUM_DRIVERS}
+. if ${GALLIUM_DRIVERS:M${_gd}}
+PLIST_SUB+= ${_gd}_GDRIVER=""
+. else
+PLIST_SUB+= ${_gd}_GDRIVER="@comment "
+. endif
+.endfor
+
+CONFIGURE_ARGS+=--with-gallium-drivers="${GALLIUM_DRIVERS:tl}"
+