| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: options.mk,v 1.27 2020/12/19 12:17:29 nia Exp $ | | 1 | # $NetBSD: options.mk,v 1.28 2021/04/25 06:09:41 nia Exp $ |
2 | | | 2 | |
3 | PKG_OPTIONS_VAR= PKG_OPTIONS.mpv | | 3 | PKG_OPTIONS_VAR= PKG_OPTIONS.mpv |
4 | | | 4 | |
5 | | | 5 | |
6 | PKG_OPTIONS_OPTIONAL_GROUPS= gl | | 6 | PKG_OPTIONS_OPTIONAL_GROUPS= gl |
7 | PKG_OPTIONS_GROUP.gl= opengl rpi | | 7 | PKG_OPTIONS_GROUP.gl= opengl rpi |
8 | | | 8 | |
9 | # audio outputs | | 9 | # audio outputs |
10 | PKG_SUPPORTED_OPTIONS+= alsa jack openal pulseaudio | | 10 | PKG_SUPPORTED_OPTIONS+= alsa jack openal pulseaudio |
11 | # video outputs | | 11 | # video outputs |
12 | PKG_SUPPORTED_OPTIONS+= caca libdrm x11 | | 12 | PKG_SUPPORTED_OPTIONS+= caca libdrm x11 |
13 | # audio/video outputs | | 13 | # audio/video outputs |
14 | PKG_SUPPORTED_OPTIONS+= sdl2 | | 14 | PKG_SUPPORTED_OPTIONS+= sdl2 |
| @@ -151,26 +151,30 @@ WAF_CONFIGURE_ARGS+= --disable-vdpau | | | @@ -151,26 +151,30 @@ WAF_CONFIGURE_ARGS+= --disable-vdpau |
151 | ### libdrm support (video output) | | 151 | ### libdrm support (video output) |
152 | ### | | 152 | ### |
153 | .if !empty(PKG_OPTIONS:Mlibdrm) | | 153 | .if !empty(PKG_OPTIONS:Mlibdrm) |
154 | WAF_CONFIGURE_ARGS+= --enable-drm | | 154 | WAF_CONFIGURE_ARGS+= --enable-drm |
155 | .include "../../x11/libdrm/buildlink3.mk" | | 155 | .include "../../x11/libdrm/buildlink3.mk" |
156 | .else | | 156 | .else |
157 | WAF_CONFIGURE_ARGS+= --disable-drm | | 157 | WAF_CONFIGURE_ARGS+= --disable-drm |
158 | .endif | | 158 | .endif |
159 | | | 159 | |
160 | ### | | 160 | ### |
161 | ### OpenGL support (video output) | | 161 | ### OpenGL support (video output) |
162 | ### | | 162 | ### |
163 | .if !empty(PKG_OPTIONS:Mopengl) | | 163 | .if !empty(PKG_OPTIONS:Mopengl) |
| | | 164 | .include "../../graphics/MesaLib/features.mk" |
| | | 165 | . if ${MESALIB_SUPPORTS_EGL:tl} == "no" |
| | | 166 | WAF_CONFIGURE_ARGS+= --disable-egl-x11 |
| | | 167 | . endif |
164 | .include "../../graphics/MesaLib/buildlink3.mk" | | 168 | .include "../../graphics/MesaLib/buildlink3.mk" |
165 | .elif !empty(PKG_OPTIONS:Mrpi) | | 169 | .elif !empty(PKG_OPTIONS:Mrpi) |
166 | BUILD_DEPENDS+= raspberrypi-userland>=20170109:../../misc/raspberrypi-userland | | 170 | BUILD_DEPENDS+= raspberrypi-userland>=20170109:../../misc/raspberrypi-userland |
167 | CFLAGS+= "-L${PREFIX}/lib" | | 171 | CFLAGS+= "-L${PREFIX}/lib" |
168 | SUBST_CLASSES+= vc | | 172 | SUBST_CLASSES+= vc |
169 | SUBST_STAGE.vc= pre-configure | | 173 | SUBST_STAGE.vc= pre-configure |
170 | SUBST_MESSAGE.vc= Fixing path to VideoCore libraries. | | 174 | SUBST_MESSAGE.vc= Fixing path to VideoCore libraries. |
171 | SUBST_FILES.vc= waftools/checks/custom.py | | 175 | SUBST_FILES.vc= waftools/checks/custom.py |
172 | SUBST_SED.vc+= -e 's;opt/vc;${PREFIX};g' | | 176 | SUBST_SED.vc+= -e 's;opt/vc;${PREFIX};g' |
173 | .endif | | 177 | .endif |
174 | | | 178 | |
175 | ### | | 179 | ### |
176 | ### Wayland support (video output) | | 180 | ### Wayland support (video output) |