Subject: pkg/30499: multimedia/(g)mplayer does not autodetect MMX etc on amd64 [with fix]
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: Rhialto <rhialto@falu.nl>
List: pkgsrc-bugs
Date: 06/11/2005 16:13:01
>Number:         30499
>Category:       pkg
>Synopsis:       multimedia/(g)mplayer does not autodetect MMX etc on amd64 [with fix]
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Jun 11 16:13:00 +0000 2005
>Originator:     Rhialto
>Release:        NetBSD 2.0.2
>Organization:
>Environment:
System: NetBSD radl.falu.nl 2.0.2 NetBSD 2.0.2 (RADLs Doordringend Onjuiste Akkoord) #3: Wed Jun 8 23:15:34 CEST 2005 rhialto@radl.falu.nl:/usr/src/sys/arch/amd64/compile/RADL amd64
Architecture: x86_64
Machine: amd64
>Description:
	multimedia/(g)mplayer does not autodetect MMX etc on amd64.
	When started, it prints this:

MPlayer 1.0pre6-3.3.3 (C) 2000-2004 MPlayer Team
CPU: Advanced Micro Devices  (Family: 8, Stepping: 0)
Detected cache-line size is 64 bytes
MMX supported but disabled
MMX2 supported but disabled
SSE supported but disabled
SSE2 supported but disabled
3DNow supported but disabled
3DNowExt supported but disabled

>How-To-Repeat:
	Play any movie in MPlayer
>Fix:
	Add this to the appropriate place in one of the Makefiles:

.if ${MACHINE_ARCH} == "x86_64"
CONFIGURE_ARGS+=	--enable-mmx --enable-mmx2 \
			--enable-3dnow --enable-3dnowex \
			--enable-sse --enable-sse2
.endif

	I also tried this:

CONFIGURE_ARGS+=	--with-win32libdir="${LOCALBASE}/lib/win32"

	but that fails to compile.

-Olaf.
-- 
___ Olaf 'Rhialto' Seibert                            --  rhialto/at/falu.nl
\X/ Hi! I'm a signature virus! Copy me to your .signature to help me spread!