Missing libavcodec library in ffmpeg port
David Liontooth
liontooth at cogweb.net
Sat Apr 21 00:54:37 PDT 2007
Boey Maun Suang wrote:
> Hi David,
>
>> For fun, I tried this:
>>
>> svn checkout svn://svn.mplayerhq.hu/ffmpeg/trunk ffmpeg
>> ./configure --enable-shared --disable-vhook
>> make
>>
>> Looks like it compiled fine -- that's version 8743.
>
> I've updated the ffmpeg port to revision 8743, which builds for me;
> try it in 12 hours after a selfupdate and let me know how it goes. We
> really need to add a note to it to explain that they're not making
> stable releases at the moment, and to fix the version reported by
> MacPorts to reflect this, but I'll have to leave that for another time.
The name of the mp3 library used by ./configure has changed to
libmp3lame and we need a couple more flags (at least when including lame
and/or xvid):
--- Portfile 2007-04-21 00:46:30.000000000 -0700
+++
/opt/local/var/db/dports/sources/rsync.rsync.darwinports.org_dpupdate_dports/multimedia/ffmpeg/Portfile
2007-04-21 00:41:52.000000000 -0700
@@ -42,6 +42,7 @@ platforms darwin
configure.cflags-append -DHAVE_LRINTF
configure.args --prefix=${prefix} --disable-vhook \
--mandir=${prefix}/share/man \
+ --extra-cflags="-I/opt/local/include"
--extra-ldflags="-L/opt/local/lib" \
--enable-gpl --enable-shared --enable-pthreads
--enable-pp
post-destroot {
@@ -55,7 +56,7 @@ post-destroot {
# Adds MP3 support
variant lame {
depends_lib-append port:lame
- configure.args-append --enable-mp3lame
+ configure.args-append --enable-libmp3lame
}
variant libogg {
I discovered this at
http://lists.mplayerhq.hu/pipermail/ffmpeg-user/2007-April/008205.html.
ffmpeg +lame +xvid now compiles.
Dave
More information about the macports-users
mailing list