svn commit: r457244 - in head/multimedia/mpv: . files

Alexey Dokuchaev danfe at FreeBSD.org
Tue Dec 26 11:06:30 UTC 2017


On Mon, Dec 25, 2017 at 06:00:52PM +0000, Carlos J. Puga Medina wrote:
> New Revision: 457244
> URL: https://svnweb.freebsd.org/changeset/ports/457244
> 
> Log:
>   multimedia/mpv: Add VAAPI on Wayland support
>   
>   - Add support to enable VAAPI under Wayland (disabled by default)
>   - Regenerate patch with makepatch to make portlint happy
>   
> +.include <bsd.port.options.mk>
> +
> +.if ${PORT_OPTIONS:MVAAPI} && ${PORT_OPTIONS:MWAYLAND}
> +CONFIGURE_ARGS+=	--enable-vaapi-wayland
> +LIB_DEPENDS+=		libva-wayland.so:multimedia/libva
> +.else
> +CONFIGURE_ARGS+=	--disable-vaapi-wayland
> +.endif

Consider using option helpers (shorter, more readable, declarative style,
no .include <bsd.port.options.mk> needed):

VAAPI_IMPLIES=	WAYLAND

VAAPI_LIB_DEPENDS=	libva-wayland.so:multimedia/libva
VAAPI_CONFIGURE_ENABLE=	vaapi-wayland

./danfe


More information about the svn-ports-head mailing list