|
|
@ -34,5 +34,20 @@ pkginstalled xvid && var_append extraconfopt " " "--enable-libxvid" |
|
|
|
pkginstalled x264 && var_append extraconfopt " " "--enable-libx264" |
|
|
|
pkginstalled a52dec && var_append extraconfopt " " "--enable-liba52" |
|
|
|
|
|
|
|
var_append confopt " " "--enable-shared --enable-postproc --enable-gpl --enable-swscale --enable-pthreads" |
|
|
|
var_append extraconfopt " " "--enable-shared --enable-postproc --enable-gpl --enable-swscale --enable-pthreads" |
|
|
|
|
|
|
|
var_append extraconfopt ' ' '--incdir="${includedir#$root}"' |
|
|
|
|
|
|
|
hook_add postinstall 5 "ffmpeg_postinstall" |
|
|
|
ffmpeg_postinstall() |
|
|
|
{ |
|
|
|
# xine-lib expects all ffmpeg headers in ffmpeg/. |
|
|
|
mkdir -p $includedir/ffmpeg |
|
|
|
( |
|
|
|
cd $includedir/ffmpeg |
|
|
|
for x in ../lib{av{codec,device,format,util},postproc,swscale}/*.h ; do |
|
|
|
[ -e "$x" ] && ln -svf "$x" . |
|
|
|
done |
|
|
|
) |
|
|
|
} |
|
|
|
|