And the build system is VERY ugly... this is gonna take some time to fix.. =(
We should add a sane -fPIC'ization to the list of whishes regarding the ffmpeg build system. Probably autotool'izing? :-)
Yeah, I'm going to try working with upstream to get this autotoolized... I wonder whose idea it was to just use a Makefile with paths hardcoded in everywhere... sigh...
Ooh... I might not need to do so much work afterall... http://sourceforge.net/mailarchive/message.php?msg_id=10805307
ffmpeg won't be autotoolized, upstream already rejected that (insane) patch, what's exactly needed?
Created attachment 53570 [details, diff] libdir support First requirement, make libdir different from an hardcoded $(prefix)/lib
Created attachment 53586 [details, diff] ebuild fixes here the ebuild fix to use the previously posted patch
Created attachment 53591 [details, diff] Patch against ffmpeg-0.4.9-p20050226-r1.ebuild Luca: I like this one better :-P phi ffmpeg # qpkg -l ffmpeg | grep "/lib64/" | wc -l 17 phi ffmpeg # qpkg -l ffmpeg | grep "/lib/" | wc -l 0 I think ffpeg is multilib-strict safe with this patch and Luca's patch to configure.
Created attachment 53734 [details] ffmpeg-0.4.9_p20050226-r1.ebuild The ebuild.
Created attachment 53735 [details, diff] ffmpeg-libdir-pic.patch The patch.
Assigning to chris since he's doing all the work ;p I'll post an updated ebuild which does static/shared separately as static shouldn't be -fPIC
Created attachment 53765 [details] ffmpeg-0.4.9_p20050226-r1.ebuild Ok, this one installs static without -fPIC and shared with -fPIC...
Created attachment 53821 [details, diff] new gentoo-ffmpeg patch With this patch (and the ebuild changed to use it), I'm able to emerge this with USE=dvd. The static link of ffmpeg_g needs -la52.
Created attachment 53822 [details] ffmpeg-0.4.9_p20050226-r1.ebuild
Created attachment 53823 [details, diff] gentoo-ffmpeg001.patch
Use those above ^^
Annnnnd approved :). Fixed and in cvs. Thanks for all the hardwork guys :).