mplayer options patch

Eygene Ryabinkin rea at freebsd.org
Fri Jan 7 10:15:25 UTC 2011


Fri, Jan 07, 2011 at 09:58:17AM +0000, Anton Shterenlikht wrote:
> Error: Runtime CPU detection only works for x86, x86-64 and PPC!
> 
> Here's a patch:
> 
> --- Makefile	2010-12-03 03:38:31.000000000 +0000
> +++ Makefile.new	2011-01-07 09:38:50.000000000 +0000
> @@ -13,7 +13,7 @@
>  .include "${.CURDIR}/Makefile.shared"
>  
>  OPTIONS=	DEBUG "Include debug symbols in mplayer's binaries" off
> -OPTIONS+=	RTCPU "Allow runtime CPU detection" on
> +OPTIONS+=	RTCPU "Allow runtime CPU detection" off
>  OPTIONS+=	OCFLAGS "Use optimized compiler flags" on
>  OPTIONS+=	IPV6 "Include inet6 network support" on
>  OPTIONS+=	X11 "Enable X11 support for mplayer's video output" on
> 
> It would be better to make it conditional on ARCH, but
> I don't know how to do it.

Please, try the following snippet:
{{{
.if ${ARCH} == "i386" || ${ARCH} == "amd64" || ${ARCH} == "powerpc"
OPTIONS+=	RTCPU "Allow runtime CPU detection" on
.else
OPTIONS+=	RTCPU "Allow runtime CPU detection" off
.endif
}}}
-- 
Eygene Ryabinkin                                        ,,,^..^,,,
[ Life's unfair - but root password helps!           | codelabs.ru ]
[ 82FE 06BC D497 C0DE 49EC  4FF0 16AF 9EAE 8152 ECFB | freebsd.org ]
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 228 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20110107/5a8d9b1c/attachment.pgp


More information about the freebsd-ports mailing list