Sync Mk with ports
[dports.git] / graphics / dri / Makefile
1 # Created by: Eric Anholt <anholt@FreeBSD.org>
2 # $FreeBSD$
3
4 PORTNAME=       dri
5 PORTVERSION=    ${MESAVERSION}
6 PORTEPOCH=      2
7 CATEGORIES=     graphics
8
9 COMMENT=        OpenGL hardware acceleration drivers for the DRI
10
11 LIB_DEPENDS=    libdrm.so:graphics/libdrm \
12                 libexpat.so:textproc/expat2
13
14 USE_XORG=       dri2proto dri3proto glproto presentproto x11 xdamage xext \
15                 xfixes xshmfence xv xvmc xxf86vm 
16
17 OPTIONS_DEFINE= TEXTURE VAAPI VDPAU
18 OPTIONS_DEFAULT=TEXTURE
19 OPTIONS_SUB=    yes
20
21 TEXTURE_DESC=   Enable texture-float support (patent encumbered)
22 TEXTURE_CONFIGURE_ENABLE=       texture-float
23
24 VAAPI_CONFIGURE_ENABLE= va
25 VAAPI_LIB_DEPENDS=      libva.so:multimedia/libva
26 VAAPI_USE=              XORG=xcb
27
28 VDPAU_CONFIGURE_ENABLE= vdpau
29 VDPAU_LIB_DEPENDS=      libvdpau.so:multimedia/libvdpau
30
31 PKGHELP=        ${.CURDIR}/pkg-help
32
33 .include <bsd.port.options.mk>
34
35 .include "${.CURDIR}/../../graphics/libGL/Makefile.common"
36
37 #src/mesa/libmesagallium.la
38 #MESA_BUILD_WRKSRC=     src/util src/gallium
39 #MESA_INSTALL_WRKSRC=   src/gallium
40
41 .include "${.CURDIR}/../../graphics/libGL/Makefile.targets"
42
43 post-install:
44         @${RM} -r ${STAGEDIR}/etc/OpenCL
45
46 .include <bsd.port.mk>