Consolidate the Mesa ports, update to 17.0.4, and add Wayland option
* libGL, libEGL, libglesv2, libglapi, and gbm have been moved into mesa-libs,
graphics/dri has been renamed to mesa-dri, and USE_GL has been adjusted
* mesa-libs has a new WAYLAND option that enables platform support in libEGL
* mesa-dri now depends on graphics/s2tc for compressed texture support [1]
* re-remove obsolete dependency on makedepends [2]
* correct sed fix backported from 17.1 [3]
PR: 218799 (exp-run), 212762 [1], 218552 [2], 218562 [3]
Submitted by: dbn [1], jbeich [2,3]
Reported by: afiskon@devzen.ru [1]
Reviewed by: kwm, johalun0@gmail.com
Approved by: portmgr, swills (mentor)
Differential Revision: https://reviews.freebsd.org/D10448
2017-05-12 20:46:53 +02:00
|
|
|
# Created by: Eric Anholt <anholt@FreeBSD.org>
|
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= mesa-dri
|
|
|
|
PORTVERSION= ${MESAVERSION}
|
|
|
|
CATEGORIES= graphics
|
|
|
|
|
|
|
|
COMMENT= OpenGL hardware acceleration drivers for DRI2+
|
|
|
|
|
|
|
|
RUN_DEPENDS= ${LOCALBASE}/lib/libtxc_dxtn.so:graphics/s2tc
|
|
|
|
|
|
|
|
USE_XORG= dri2proto dri3proto glproto presentproto x11 xdamage xext \
|
|
|
|
xfixes xshmfence xv xvmc
|
|
|
|
|
|
|
|
OPTIONS_DEFINE= TEXTURE VAAPI VDPAU
|
|
|
|
OPTIONS_DEFAULT=TEXTURE
|
|
|
|
OPTIONS_SUB= yes
|
|
|
|
|
|
|
|
TEXTURE_DESC= Enable texture-float support (patent encumbered)
|
|
|
|
TEXTURE_CONFIGURE_ENABLE= texture-float
|
|
|
|
|
|
|
|
VAAPI_CONFIGURE_ENABLE= va
|
|
|
|
VAAPI_LIB_DEPENDS= libva.so:multimedia/libva
|
|
|
|
VAAPI_USE= XORG=xcb
|
|
|
|
|
|
|
|
VDPAU_CONFIGURE_ENABLE= vdpau
|
|
|
|
VDPAU_LIB_DEPENDS= libvdpau.so:multimedia/libvdpau
|
|
|
|
|
|
|
|
.include <bsd.port.options.mk>
|
2017-05-21 21:30:54 +02:00
|
|
|
.include "${.CURDIR:H:H}/graphics/mesa-dri/Makefile.common"
|
Consolidate the Mesa ports, update to 17.0.4, and add Wayland option
* libGL, libEGL, libglesv2, libglapi, and gbm have been moved into mesa-libs,
graphics/dri has been renamed to mesa-dri, and USE_GL has been adjusted
* mesa-libs has a new WAYLAND option that enables platform support in libEGL
* mesa-dri now depends on graphics/s2tc for compressed texture support [1]
* re-remove obsolete dependency on makedepends [2]
* correct sed fix backported from 17.1 [3]
PR: 218799 (exp-run), 212762 [1], 218552 [2], 218562 [3]
Submitted by: dbn [1], jbeich [2,3]
Reported by: afiskon@devzen.ru [1]
Reviewed by: kwm, johalun0@gmail.com
Approved by: portmgr, swills (mentor)
Differential Revision: https://reviews.freebsd.org/D10448
2017-05-12 20:46:53 +02:00
|
|
|
|
|
|
|
ALL_DRI_DRIVERS= I915 I965 RADEON R200 SWRAST
|
|
|
|
ALL_GALLIUM_DRIVERS= FREEDRENO R300 R600 RADEONSI SVGA SWRAST VC4
|
|
|
|
|
2017-05-21 21:30:54 +02:00
|
|
|
DRI_DRIVERS= SWRAST # classic swrast
|
|
|
|
.if "${MESA_LLVM_VER}" != ""
|
|
|
|
GALLIUM_DRIVERS= SWRAST # llvmpipe
|
|
|
|
.else
|
|
|
|
GALLIUM_DRIVERS= ""
|
|
|
|
.endif
|
Consolidate the Mesa ports, update to 17.0.4, and add Wayland option
* libGL, libEGL, libglesv2, libglapi, and gbm have been moved into mesa-libs,
graphics/dri has been renamed to mesa-dri, and USE_GL has been adjusted
* mesa-libs has a new WAYLAND option that enables platform support in libEGL
* mesa-dri now depends on graphics/s2tc for compressed texture support [1]
* re-remove obsolete dependency on makedepends [2]
* correct sed fix backported from 17.1 [3]
PR: 218799 (exp-run), 212762 [1], 218552 [2], 218562 [3]
Submitted by: dbn [1], jbeich [2,3]
Reported by: afiskon@devzen.ru [1]
Reviewed by: kwm, johalun0@gmail.com
Approved by: portmgr, swills (mentor)
Differential Revision: https://reviews.freebsd.org/D10448
2017-05-12 20:46:53 +02:00
|
|
|
.if ${ARCH} == amd64 || ${ARCH} == i386 \
|
|
|
|
|| ${ARCH} == powerpc || ${ARCH} == powerpc64
|
|
|
|
DRI_DRIVERS+= RADEON R200
|
2017-05-21 21:30:54 +02:00
|
|
|
GALLIUM_DRIVERS+= R300 R600
|
|
|
|
.if "${MESA_LLVM_VER}" != "" # until PPC gets LLVM in base
|
|
|
|
GALLIUM_DRIVERS+= RADEONSI
|
|
|
|
.endif
|
Consolidate the Mesa ports, update to 17.0.4, and add Wayland option
* libGL, libEGL, libglesv2, libglapi, and gbm have been moved into mesa-libs,
graphics/dri has been renamed to mesa-dri, and USE_GL has been adjusted
* mesa-libs has a new WAYLAND option that enables platform support in libEGL
* mesa-dri now depends on graphics/s2tc for compressed texture support [1]
* re-remove obsolete dependency on makedepends [2]
* correct sed fix backported from 17.1 [3]
PR: 218799 (exp-run), 212762 [1], 218552 [2], 218562 [3]
Submitted by: dbn [1], jbeich [2,3]
Reported by: afiskon@devzen.ru [1]
Reviewed by: kwm, johalun0@gmail.com
Approved by: portmgr, swills (mentor)
Differential Revision: https://reviews.freebsd.org/D10448
2017-05-12 20:46:53 +02:00
|
|
|
.endif
|
|
|
|
.if ${ARCH} == amd64 || ${ARCH} == i386
|
|
|
|
DRI_DRIVERS+= I915 I965
|
|
|
|
GALLIUM_DRIVERS+= SVGA
|
2017-05-21 21:30:54 +02:00
|
|
|
.elif ${ARCH} == armv6 || ${ARCH} == aarch64
|
|
|
|
GALLIUM_DRIVERS+= FREEDRENO VC4
|
Consolidate the Mesa ports, update to 17.0.4, and add Wayland option
* libGL, libEGL, libglesv2, libglapi, and gbm have been moved into mesa-libs,
graphics/dri has been renamed to mesa-dri, and USE_GL has been adjusted
* mesa-libs has a new WAYLAND option that enables platform support in libEGL
* mesa-dri now depends on graphics/s2tc for compressed texture support [1]
* re-remove obsolete dependency on makedepends [2]
* correct sed fix backported from 17.1 [3]
PR: 218799 (exp-run), 212762 [1], 218552 [2], 218562 [3]
Submitted by: dbn [1], jbeich [2,3]
Reported by: afiskon@devzen.ru [1]
Reviewed by: kwm, johalun0@gmail.com
Approved by: portmgr, swills (mentor)
Differential Revision: https://reviews.freebsd.org/D10448
2017-05-12 20:46:53 +02:00
|
|
|
.endif
|
|
|
|
|
|
|
|
CONFIGURE_ARGS+= --with-dri-drivers="${DRI_DRIVERS:tl}" \
|
|
|
|
--with-gallium-drivers="${GALLIUM_DRIVERS:tl}"
|
|
|
|
|
|
|
|
.for _d in ${ALL_DRI_DRIVERS}
|
|
|
|
. if ${DRI_DRIVERS:M${_d}}
|
|
|
|
PLIST_SUB+= ${_d}_DRIVER=""
|
|
|
|
. else
|
|
|
|
PLIST_SUB+= ${_d}_DRIVER="@comment "
|
|
|
|
. endif
|
|
|
|
.endfor
|
|
|
|
|
|
|
|
.for _gd in ${ALL_GALLIUM_DRIVERS}
|
|
|
|
. if ${GALLIUM_DRIVERS:M${_gd}}
|
|
|
|
PLIST_SUB+= ${_gd}_GDRIVER=""
|
|
|
|
. else
|
|
|
|
PLIST_SUB+= ${_gd}_GDRIVER="@comment "
|
|
|
|
. endif
|
|
|
|
.endfor
|
|
|
|
|
2017-05-21 21:30:54 +02:00
|
|
|
.include "${MASTERDIR}/Makefile.targets"
|
Consolidate the Mesa ports, update to 17.0.4, and add Wayland option
* libGL, libEGL, libglesv2, libglapi, and gbm have been moved into mesa-libs,
graphics/dri has been renamed to mesa-dri, and USE_GL has been adjusted
* mesa-libs has a new WAYLAND option that enables platform support in libEGL
* mesa-dri now depends on graphics/s2tc for compressed texture support [1]
* re-remove obsolete dependency on makedepends [2]
* correct sed fix backported from 17.1 [3]
PR: 218799 (exp-run), 212762 [1], 218552 [2], 218562 [3]
Submitted by: dbn [1], jbeich [2,3]
Reported by: afiskon@devzen.ru [1]
Reviewed by: kwm, johalun0@gmail.com
Approved by: portmgr, swills (mentor)
Differential Revision: https://reviews.freebsd.org/D10448
2017-05-12 20:46:53 +02:00
|
|
|
|
|
|
|
post-install:
|
|
|
|
@${RM} -r ${STAGEDIR}/etc/OpenCL
|
|
|
|
|
2017-05-21 21:30:54 +02:00
|
|
|
.include <bsd.port.post.mk>
|