From: Nicolas Thill Date: Mon, 10 Oct 2011 02:42:59 +0000 (+0000) Subject: [backfire/packages] ffmpeg: fix build failure on x86 (closes: #8840), install libswsc... X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=73dfa32296e9ba1a242b639a7c7af61922ee308e;p=openwrt%2Fsvn-archive%2Farchive.git [backfire/packages] ffmpeg: fix build failure on x86 (closes: #8840), install libswscale headers (closes: #9447) SVN-Revision: 28397 --- diff --git a/multimedia/ffmpeg/Makefile b/multimedia/ffmpeg/Makefile index 101e7d94d5..e2dc1f13a3 100644 --- a/multimedia/ffmpeg/Makefile +++ b/multimedia/ffmpeg/Makefile @@ -213,6 +213,8 @@ define Build/Configure --disable-debug \ --enable-gpl \ --disable-libfaad \ + --disable-amd3dnow \ + --disable-amd3dnowext \ --disable-mmx \ --disable-mmx2 \ --enable-pthreads \ @@ -255,6 +257,7 @@ define Build/InstallDev $(INSTALL_DIR) $(1)/usr/include $(CP) $(PKG_INSTALL_DIR)/usr/include/libav{codec,device,format,util} $(1)/usr/include/ $(CP) $(PKG_INSTALL_DIR)/usr/include/libpostproc $(1)/usr/include/ + $(CP) $(PKG_INSTALL_DIR)/usr/include/libswscale $(1)/usr/include/ $(INSTALL_DIR) $(1)/usr/lib $(CP) $(PKG_INSTALL_DIR)/usr/lib/libav{codec,device,format,util}.{a,so*} $(1)/usr/lib/ $(CP) $(PKG_INSTALL_DIR)/usr/lib/libpostproc.{a,so*} $(1)/usr/lib/ diff --git a/multimedia/ffmpeg/patches/901-fix_libswscale_on_x86.patch b/multimedia/ffmpeg/patches/901-fix_libswscale_on_x86.patch new file mode 100644 index 0000000000..2fcee2ff11 --- /dev/null +++ b/multimedia/ffmpeg/patches/901-fix_libswscale_on_x86.patch @@ -0,0 +1,35 @@ +Index: ffmpeg-0.5.4/libswscale/rgb2rgb.c +=================================================================== +--- ffmpeg-0.5.4.orig/libswscale/rgb2rgb.c 2011-03-17 13:10:27.000000000 +0100 ++++ ffmpeg-0.5.4/libswscale/rgb2rgb.c 2011-10-10 03:35:15.000000000 +0200 +@@ -149,7 +149,7 @@ + #define RENAME(a) a ## _C + #include "rgb2rgb_template.c" + +-#if ARCH_X86 && CONFIG_GPL ++#if ARCH_X86 && CONFIG_GPL && 0 + + //MMX versions + #undef RENAME +Index: ffmpeg-0.5.4/libswscale/swscale_template.c +=================================================================== +--- ffmpeg-0.5.4.orig/libswscale/swscale_template.c 2011-10-10 03:33:19.000000000 +0200 ++++ ffmpeg-0.5.4/libswscale/swscale_template.c 2011-10-10 03:38:37.000000000 +0200 +@@ -2219,7 +2219,7 @@ + } + else // fast bilinear upscale / crap downscale + { +-#if ARCH_X86 && CONFIG_GPL ++#if ARCH_X86 && CONFIG_GPL && 0 + #if HAVE_MMX2 + int i; + #if defined(PIC) +@@ -2492,7 +2492,7 @@ + } + else // fast bilinear upscale / crap downscale + { +-#if ARCH_X86 && CONFIG_GPL ++#if ARCH_X86 && CONFIG_GPL && 0 + #if HAVE_MMX2 + int i; + #if defined(PIC)