--- ffmpeg.confSVN43452	2014-11-30 15:23:15.000000000 +0800
+++ ffmpeg.conf	2014-11-30 22:15:46.000000000 +0800
@@ -55,3 +55,33 @@
 	# configure fails on lame (linker does not use libm with --as-needed)
 	var_append GCC_WRAPPER_REMOVE ' ' '-Wl,--as-needed'
 fi
+
+# BK 121224 add... note --enable-network is default
+var_append extraconfopt " " "--enable-x11grab --enable-small --enable-runtime-cpudetect --enable-zlib --disable-debug --enable-version3" 
+pkginstalled libsdl || var_append extraconfopt " " "--disable-ffplay"
+pkginstalled opencore-amr && var_append extraconfopt " " "--enable-libopencore-amrnb --enable-libopencore-amrwb"
+pkginstalled libdc1394 && pkginstalled libraw1394 && var_append extraconfopt " " "--enable-libdc1394"
+pkginstalled freetype && var_append extraconfopt " " "--enable-libfreetype"
+pkginstalled schroedinger && var_append extraconfopt " " "--enable-libschroedinger"
+pkginstalled libvpx && var_append extraconfopt " " "--enable-libvpx"
+pkginstalled speex && var_append extraconfopt " " "--enable-libspeex"
+pkginstalled libcdio && var_append extraconfopt " " "--enable-libcdio"
+#complains X11 not found...
+var_append extraconfopt " " "--extra-ldflags='-L/usr/X11R7/lib'"
+
+# BK had to manually create symlink freetype to usr/include/freetype2, try this instead:
+ffmpeg_find_freetype()
+{
+ #sed -i -e 's%freetype/freetype\.h%freetype2/freetype.h%' configure
+ #...no, compile fails, looks for  freetype/config/ftheader.h. do this:
+ ln -s freetype2 $root/usr/include/freetype
+}
+
+hook_add preconf 5 "ffmpeg_find_freetype"
+
+ffmpeg_remove_link()
+{
+ rm -f $root/usr/include/freetype
+}
+
+hook_add postmake 5 "ffmpeg_remove_link"
