Bug 99809

Summary: audio/openal - patch to fix build error for x86/CPUTYPE
Product: Ports & Packages Reporter: Erik Greenwald <erik>
Component: Individual Port(s)Assignee: freebsd-ports-bugs (Nobody) <ports-bugs>
Status: Closed FIXED    
Severity: Affects Only Me CC: erik
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
audio_openal.patch none

Description Erik Greenwald 2006-07-05 18:20:17 UTC
When the CPUTYPE is set on an x86 box, and nasm happens to be 
installed, audio/openal tries to use nasm and causes "bad objects" 
in archive files (as the "-f elf" flag is not set), causing the 
build to fail. The reason is because the 'type' flag is only set for
linux... This patch changes that *linux*) to *bsd*) allowing the 
build to succeed (with the optimized asm version being used). 

This has been tested on p4-xeon, amd32-athlon, and amd64-opteron, both
with CPUTYPE unset and set.

I seem to have forgotten my password to the creative repo (or users
weren't migrated when they changed from CVS to SVN), so I have not
committed my fix there, but will as soon as I get access.

Thanks!
Comment 1 Rong-En Fan freebsd_committer freebsd_triage 2006-07-05 18:54:27 UTC
State Changed
From-To: open->closed

Committed. Thanks.