Subject: pkg/34592: (k/g)mplayer doesn't build with default options for x86-64
To: None <,,>
From: None <>
List: pkgsrc-bugs
Date: 09/23/2006 14:05:00
>Number:         34592
>Category:       pkg
>Synopsis:       (k/g)mplayer doesn't build with default options for x86-64
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Sep 23 14:05:00 +0000 2006
>Release:        NetBSD 4.99.1
System: NetBSD 4.99.1 NetBSD 4.99.1 (ATLAS) #3: Thu Sep 14 13:18:59 CEST 2006 amd64
Architecture: x86_64
Machine: amd64
   multimedia/mplayer-share/ (Which is used by all the other mplayer
   targets) defines an 'mplayer-win32' option for i386 an x86-64 targets, 
   which pulls in an additional dependency on multimedia/win32-codecs.

# Platform-specific options.
.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64"
PKG_SUPPORTED_OPTIONS+= mplayer-runtime-cpudetection mplayer-win32 \

  This later gets promoted to a default option. However, the multimedia/win32
  package claims to be only available for i386 platforms, thus causing a 
  build with default options to fail.

  Try to build any of the mplayer packages on an amd64 machine.
  Either fix the win32-codecs package to allow it to be used on x86-64 targets,
  or drop the default option on these targets. As a workaround, adding
  -mplayer-win32 to the appropriate PKG_OPTIONS.* variable in mk.conf works
  around the problem.