forked from Lainports/freebsd-ports
* Unbreak build on powerpc and other !x86 archs by moving the --with-dri-drivers logic from dri/Makefile to the libGL/Makefile.common file. So the settings are applied to all mesa ports, this was missed in the 10.6.6 update. [1] * Don't try to enable OpenCL support on anything other then i386 and amd64. [1] * Move the texture-float and vdpau logic to Makefile.common even if the latter isn't supported yet. Keep OPTIONS_DEFINE/DEFAULT in dri/Makefile since they need to defined before bsd.port.options.mk is included, and they only affect the dri modules. * Sed on 11 and 10 supports \< and \> however sed on 9.x and dragonfly do not, replace the sed keywords with some magic to get the intended results. [2] Submitted by: marino@ [2] Reported and tested by: arved@ (on ppc32)[1]
39 lines
941 B
Makefile
39 lines
941 B
Makefile
# Created by: Eric Anholt <anholt@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= dri
|
|
PORTVERSION= ${MESAVERSION}
|
|
PORTREVISION= 0
|
|
PORTEPOCH= 2
|
|
CATEGORIES= graphics
|
|
|
|
COMMENT= OpenGL hardware acceleration drivers for the DRI
|
|
|
|
LIB_DEPENDS= libdrm.so:${PORTSDIR}/graphics/libdrm \
|
|
libexpat.so:${PORTSDIR}/textproc/expat2
|
|
|
|
USE_XORG= glproto x11 xext xxf86vm xdamage xfixes dri2proto \
|
|
presentproto xvmc xshmfence
|
|
|
|
OPTIONS_DEFINE= TEXTURE
|
|
OPTIONS_DEFAULT=TEXTURE
|
|
|
|
TEXTURE_DESC= Enable texture-float support (patent encumbered)
|
|
VDPAU_DESC= VDPAU (GPU video acceleration) support (needs Gallium)
|
|
|
|
PKGHELP= ${.CURDIR}/pkg-help
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
.include "${.CURDIR}/../../graphics/libGL/Makefile.common"
|
|
|
|
#src/mesa/libmesagallium.la
|
|
#MESA_BUILD_WRKSRC= src/util src/gallium
|
|
#MESA_INSTALL_WRKSRC= src/gallium
|
|
|
|
.include "${.CURDIR}/../../graphics/libGL/Makefile.targets"
|
|
|
|
post-install:
|
|
@${RM} -rf ${STAGEDIR}/etc/OpenCL
|
|
|
|
.include <bsd.port.mk>
|