Fix ffmpeg pkg-config files.
[openwrt/svn-archive/archive.git] / multimedia / ffmpeg / patches / 010-fix-pkg-config-files.patch
1 --- a/configure
2 +++ b/configure
3 @@ -881,11 +881,11 @@ logfile="config.err"
4
5 # installation paths
6 prefix="/usr/local"
7 -libdir='$(PREFIX)/lib'
8 +libdir='${prefix}/lib'
9 shlibdir="$libdir"
10 -incdir='$(PREFIX)/include'
11 -mandir='$(PREFIX)/share/man'
12 -bindir='$(PREFIX)/bin'
13 +incdir='${prefix}/include'
14 +mandir='${prefix}/share/man'
15 +bindir='${prefix}/bin'
16
17 # toolchain
18 cc="gcc"
19 @@ -1936,8 +1936,7 @@ echo "#ifndef FFMPEG_CONFIG_H" >> $TMPH
20 echo "#define FFMPEG_CONFIG_H" >> $TMPH
21 echo "#define FFMPEG_CONFIGURATION \"$FFMPEG_CONFIGURATION\"" >> $TMPH
22
23 -echo "PREFIX=$prefix" >> config.mak
24 -echo "prefix=\$(DESTDIR)\$(PREFIX)" >> config.mak
25 +echo "prefix=$prefix" >> config.mak
26 echo "LIBDIR=\$(DESTDIR)$libdir" >> config.mak
27 echo "SHLIBDIR=\$(DESTDIR)$shlibdir" >> config.mak
28 echo "INCDIR=\$(DESTDIR)$incdir" >> config.mak