| @@ -1,21 +1,24 @@ | | | @@ -1,21 +1,24 @@ |
1 | # $NetBSD: available.mk,v 1.11 2017/03/17 09:10:14 maya Exp $ | | 1 | # $NetBSD: available.mk,v 1.11.52.1 2023/09/23 18:11:40 bsiegert Exp $ |
2 | | | 2 | |
3 | | | 3 | |
4 | .include "../../mk/bsd.prefs.mk" | | 4 | .include "../../mk/bsd.prefs.mk" |
5 | | | 5 | |
6 | # At the moment VAAPI is available only for XXX. The following | | 6 | # At the moment VAAPI is available only for XXX. The following |
7 | # condition is here to NOT list these platforms in multiple places, | | 7 | # condition is here to NOT list these platforms in multiple places, |
8 | # i.e. in mplayer, xine, xbmc etc. Have a look at buildlink3.mk too. | | 8 | # i.e. in mplayer, xine, xbmc etc. Have a look at buildlink3.mk too. |
9 | | | 9 | |
10 | VAAPI_AVAILABLE= no | | 10 | VAAPI_AVAILABLE= no |
11 | | | 11 | |
12 | # The following should be kept up-to-date! | | 12 | # The following should be kept up-to-date! |
13 | .if ${OPSYS} == "DragonFly" | | 13 | .if ${OPSYS} == "DragonFly" |
14 | VAAPI_AVAILABLE= yes | | 14 | VAAPI_AVAILABLE= yes |
15 | .elif ${OPSYS} == "FreeBSD" | | 15 | .elif ${OPSYS} == "FreeBSD" |
16 | VAAPI_AVAILABLE= yes | | 16 | VAAPI_AVAILABLE= yes |
17 | .elif ${OPSYS} == "NetBSD" | | 17 | .elif ${OPSYS} == "NetBSD" |
| | | 18 | # Requires xcb/dri3.h, not shipped with NetBSD 8 |
| | | 19 | . if ${OPSYS_VERSION} > 090000 || ${X11_TYPE} == "modular" |
18 | VAAPI_AVAILABLE= yes | | 20 | VAAPI_AVAILABLE= yes |
| | | 21 | . endif |
19 | .elif ${OPSYS} == "Linux" | | 22 | .elif ${OPSYS} == "Linux" |
20 | VAAPI_AVAILABLE= yes | | 23 | VAAPI_AVAILABLE= yes |
21 | .endif | | 24 | .endif |