mirror of https://github.com/mpv-player/mpv
Use pkg-config to detect theora dependencies.
patch by j -- at -- thing -- dot -- net git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16661 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
a547ff46c0
commit
0d7300028e
|
@ -5286,10 +5286,11 @@ elif test "$_vorbis" = yes -a "$_tremor" = yes ; then
|
||||||
fi
|
fi
|
||||||
echores "$_vorbis"
|
echores "$_vorbis"
|
||||||
|
|
||||||
echocheck "OggTheora support (only the CVS version!)"
|
echocheck "OggTheora support"
|
||||||
if test "$_theora" = auto ; then
|
if test "$_theora" = auto ; then
|
||||||
_theora=no
|
_theora=no
|
||||||
cat > $TMPC << EOF
|
if ( pkg-config --exists 'theora' ) >> "$TMPLOG" 2>&1 ; then
|
||||||
|
cat > $TMPC << EOF
|
||||||
#include <theora/theora.h>
|
#include <theora/theora.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
int main(void)
|
int main(void)
|
||||||
|
@ -5323,12 +5324,13 @@ int main(void)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
EOF
|
EOF
|
||||||
cc_check -ltheora -logg $_ld_lm && _theora=yes
|
cc_check `pkg-config --libs --cflags theora` && _theora=yes
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
if test "$_theora" = yes ; then
|
if test "$_theora" = yes ; then
|
||||||
_def_theora='#define HAVE_OGGTHEORA 1'
|
_def_theora='#define HAVE_OGGTHEORA 1'
|
||||||
_codecmodules="libtheora $_codecmodules"
|
_codecmodules="libtheora $_codecmodules"
|
||||||
_ld_theora="-ltheora -logg"
|
_ld_theora=`pkg-config --libs --cflags theora`
|
||||||
else
|
else
|
||||||
_def_theora='#undef HAVE_OGGTHEORA'
|
_def_theora='#undef HAVE_OGGTHEORA'
|
||||||
_nocodecmodules="libtheora $_nocodecmodules"
|
_nocodecmodules="libtheora $_nocodecmodules"
|
||||||
|
|
Loading…
Reference in New Issue