From 2c6714b8c6018b5392f20fa6e083e32b6230a313 Mon Sep 17 00:00:00 2001 From: jperkin Date: Thu, 25 Feb 2016 23:35:44 +0000 Subject: Revert OPSYSVARS change, variables don't support lazy evaluation. --- multimedia/libva/available.mk | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) (limited to 'multimedia/libva') diff --git a/multimedia/libva/available.mk b/multimedia/libva/available.mk index 2bf58d9713e..db499c1c0e7 100644 --- a/multimedia/libva/available.mk +++ b/multimedia/libva/available.mk @@ -1,12 +1,18 @@ -# $NetBSD: available.mk,v 1.3 2016/02/25 15:49:44 jperkin Exp $ +# $NetBSD: available.mk,v 1.4 2016/02/25 23:35:44 jperkin Exp $ + +.include "../../mk/bsd.prefs.mk" # At the moment VAAPI is available only for XXX. The following # condition is here to NOT list these platforms in multiple places, # i.e. in mplayer, xine, xbmc etc. Have a look at buildlink3.mk too. # The following should be kept up-to-date! -OPSYSVARS+= VAAPI_AVAILABLE -VAAPI_AVAILABLE.Linux= yes -VAAPI_AVAILABLE.FreeBSD= yes -VAAPI_AVAILABLE.OpenBSD= yes -VAAPI_AVAILABLE.*= no +.if ${OPSYS} == "Linux" +VAAPI_AVAILABLE= yes +.elif ${OPSYS} == "FreeBSD" +VAAPI_AVAILABLE= yes +.elif ${OPSYS} == "OpenBSD" +VAAPI_AVAILABLE= yes +.else +VAAPI_AVAILABLE= no +.endif -- cgit v1.2.3