]> git.sesse.net Git - vlc/commitdiff
contrib: crappy patch to build libmpeg2 on WinCE
authorPierre Ynard <linkfanel@yahoo.fr>
Sat, 14 Nov 2009 02:42:26 +0000 (03:42 +0100)
committerPierre Ynard <linkfanel@yahoo.fr>
Sat, 14 Nov 2009 02:42:26 +0000 (03:42 +0100)
Devices running WinCE don't necessarily support the pld ARM instruction,
which prevents libmpeg2 from building. This patch unconditionally
removes that instruction on WinCE.

extras/contrib/src/Makefile
extras/contrib/src/Patches/libmpeg2-arm-pld.patch [new file with mode: 0644]

index a6d1828c4c4904f15b9ddcd0bb549c0eff369ccc..66b2ed7f92b30e372a3141f82875efc7db174518 100644 (file)
@@ -561,6 +561,9 @@ libmpeg2-$(LIBMPEG2_VERSION).tar.gz:
 
 libmpeg2: libmpeg2-$(LIBMPEG2_VERSION).tar.gz
        $(EXTRACT_GZ)
+ifdef HAVE_WINCE
+       patch -p0 < Patches/libmpeg2-arm-pld.patch
+endif
        cd libmpeg2 && patch -p0 < ../Patches/libmpeg2-mc-neon.patch
        cd libmpeg2 && ./bootstrap
 
diff --git a/extras/contrib/src/Patches/libmpeg2-arm-pld.patch b/extras/contrib/src/Patches/libmpeg2-arm-pld.patch
new file mode 100644 (file)
index 0000000..6a89fe6
--- /dev/null
@@ -0,0 +1,13 @@
+diff -urNp libmpeg2.orig/libmpeg2/motion_comp_arm_s.S libmpeg2/libmpeg2/motion_comp_arm_s.S
+--- libmpeg2.orig/libmpeg2/motion_comp_arm_s.S 2008-07-09 21:16:05.000000000 +0200
++++ libmpeg2/libmpeg2/motion_comp_arm_s.S      2009-11-13 23:09:46.000000000 +0100
+@@ -21,6 +21,9 @@
+       .text
++.macro pld reg
++.endm
++
+ @ ----------------------------------------------------------------
+       .align
+       .global MC_put_o_16_arm