Not elegant, but it works. Feel free to modify it into whatever style you like. Tested and works loading my iTunes m4a files from a Windows XP partition into XMMS.
Created attachment 23696 [details, diff] Patch to faad2's ebuild
I'll take a look at this.
works great. thanks. in portage with version bump
Many apologies. I found this out at the beginning of the week, and should have mentioned it here immediately. There's a problem with the dynamic linker during the install phase if you do not already fadd2 installed. It incorrectly resolves a linked library to the non-image version of the faad2 library. This means that those with faad2 already installed can upgrade, but clean installs fail. I don't have time to look at this for a week or so; I'm at EclipseCon with work. If you want, it should just be one more tweak to the makefile. Otherwise, I'll find it when I get back. In the meantime, I'd recommend rolling back this change. Reduced functionality is probably better than broken ebuilds. Sorry once again....
ImageMagick was having this same problem a few months back... I'll check out how they fixed it and try to implement the same fix. It's probably just throwing in the correct order of -L to the LDFLAGS.
Alright... I ended up not using this patch... instead, changing emake to make causes compilation to succeed, but we still have the -lfaad errors on installation if it's not an upgrade... so I just 'doexe' them before running the make install... it's not pretty, but it works... A patch to the Makefile.am would be best, but I'm not an automake/autoconf guru.