Commit 4c282f02 authored by Christophe Mutricy's avatar Christophe Mutricy

Update x264 patch.

parent c82c8073
...@@ -29,8 +29,8 @@ ...@@ -29,8 +29,8 @@
uninstall: uninstall:
rm -f $(DESTDIR)$(includedir)/x264.h $(DESTDIR)$(libdir)/libx264.a rm -f $(DESTDIR)$(includedir)/x264.h $(DESTDIR)$(libdir)/libx264.a
--- configure (révision 385) --- configure (revision 452)
+++ configure (copie de travail) +++ configure (working copy)
@@ -7,6 +7,7 @@ @@ -7,6 +7,7 @@
echo "available options:" echo "available options:"
echo "" echo ""
...@@ -39,10 +39,10 @@ ...@@ -39,10 +39,10 @@
echo " --enable-avis-input enables avisynth input (win32 only)" echo " --enable-avis-input enables avisynth input (win32 only)"
echo " --enable-mp4-output enables mp4 output (using gpac)" echo " --enable-mp4-output enables mp4 output (using gpac)"
echo " --enable-vfw compiles the VfW frontend" echo " --enable-vfw compiles the VfW frontend"
@@ -58,47 +59,143 @@ @@ -62,45 +63,141 @@
EXE="" EXE=""
-UNAMES="`uname -s`" -UNAMES="`uname -s`"
+AR="ar" +AR="ar"
+AROPTS="rc" +AROPTS="rc"
...@@ -56,29 +56,29 @@ ...@@ -56,29 +56,29 @@
+for opt do +for opt do
+ optarg="${opt#*=}" + optarg="${opt#*=}"
+ case "$opt" in + case "$opt" in
+ --crosscompile=*) + --crosscompile=*)
+ CROSS="$optarg" + CROSS="$optarg"
+ CC="$CROSS-gcc" + CC="$CROSS-gcc"
+ AR="$CROSS-ar" + AR="$CROSS-ar"
+ RANLIB="$CROSS-ranlib" + RANLIB="$CROSS-ranlib"
+ UNAMES="`echo $CROSS | cut -d- -f2`" + UNAMES="`echo $CROSS | cut -d- -f2`"
+ UNAMEM="`echo $CROSS | cut -d- -f1`" + UNAMEM="`echo $CROSS | cut -d- -f1`"
+ ;; + ;;
+ --prefix=*) + --prefix=*)
+ prefix="$optarg" + prefix="$optarg"
+ ;; + ;;
+ --exec-prefix=*) + --exec-prefix=*)
+ eprefix="$optarg" + eprefix="$optarg"
+ ;; + ;;
+ --bindir=*) + --bindir=*)
+ bindir="$optarg" + bindir="$optarg"
+ ;; + ;;
+ --libdir=*) + --libdir=*)
+ libdir="$optarg" + libdir="$optarg"
+ ;; + ;;
+ --includedir=*) + --includedir=*)
+ includedir="$optarg" + includedir="$optarg"
+ ;; + ;;
+ --enable-avis-input) + --enable-avis-input)
+ if [ $SYS = CYGWIN -o $SYS = MINGW ]; then + if [ $SYS = CYGWIN -o $SYS = MINGW ]; then
+ CFLAGS="$CFLAGS -DAVIS_INPUT" + CFLAGS="$CFLAGS -DAVIS_INPUT"
...@@ -125,7 +125,7 @@ ...@@ -125,7 +125,7 @@
+ LDFLAGS="$LDFLAGS -pg" + LDFLAGS="$LDFLAGS -pg"
+ gprof="yes" + gprof="yes"
+ ;; + ;;
+ --enable-pic) + --enable-pic)
+ CFLAGS="$CFLAGS -fPIC" + CFLAGS="$CFLAGS -fPIC"
+ ASFLAGS="$ASFLAGS -D__PIC__" + ASFLAGS="$ASFLAGS -D__PIC__"
+ pic="yes" + pic="yes"
...@@ -178,7 +178,6 @@ ...@@ -178,7 +178,6 @@
SYS="CYGWIN" SYS="CYGWIN"
CFLAGS="$CFLAGS -mno-cygwin" CFLAGS="$CFLAGS -mno-cygwin"
LDFLAGS="$LDFLAGS -mno-cygwin" LDFLAGS="$LDFLAGS -mno-cygwin"
ASFLAGS="-f win32 -DPREFIX"
EXE=".exe" EXE=".exe"
- DEVNULL="NUL" - DEVNULL="NUL"
- vfw="yes" - vfw="yes"
...@@ -186,7 +185,6 @@ ...@@ -186,7 +185,6 @@
- MINGW*) - MINGW*)
+ mingw*) + mingw*)
SYS="MINGW" SYS="MINGW"
ASFLAGS="-f win32 -DPREFIX"
EXE=".exe" EXE=".exe"
- DEVNULL="NUL" - DEVNULL="NUL"
- vfw="yes" - vfw="yes"
...@@ -196,18 +194,18 @@ ...@@ -196,18 +194,18 @@
SYS="SunOS" SYS="SunOS"
CFLAGS="$CFLAGS -DHAVE_MALLOC_H" CFLAGS="$CFLAGS -DHAVE_MALLOC_H"
LDFLAGS="$LDFLAGS -lm" LDFLAGS="$LDFLAGS -lm"
@@ -110,9 +202,8 @@ @@ -112,9 +209,8 @@
;; ;;
esac esac
-UNAMEM="`uname -m`" -UNAMEM="`uname -m`"
case "$UNAMEM" in case "$UNAMEM" in
- i386|i486|i586|i686|BePC) - i386|i486|i586|i686|BePC)
+ i386|i486|i586|i686|bepc) + i386|i486|i586|i686|bepc)
ARCH="X86" ARCH="X86"
CFLAGS="$CFLAGS -DHAVE_MMXEXT -DHAVE_SSE2" CFLAGS="$CFLAGS -DHAVE_MMXEXT -DHAVE_SSE2"
;; AS="nasm"
@@ -122,7 +213,7 @@ @@ -135,7 +231,7 @@
AS="yasm" AS="yasm"
ASFLAGS="-f elf -m amd64" ASFLAGS="-f elf -m amd64"
;; ;;
...@@ -216,17 +214,7 @@ ...@@ -216,17 +214,7 @@
ARCH="PPC" ARCH="PPC"
if [ $SYS = MACOSX ] if [ $SYS = MACOSX ]
then then
@@ -144,9 +235,6 @@ @@ -183,134 +276,6 @@
ia64)
ARCH="IA64"
;;
- alpha)
- ARCH="ALPHA"
- ;;
mips|mipsel)
ARCH="MIPS"
;;
@@ -180,134 +273,6 @@
CFLAGS="$CFLAGS -DARCH_$ARCH -DSYS_$SYS" CFLAGS="$CFLAGS -DARCH_$ARCH -DSYS_$SYS"
...@@ -361,7 +349,7 @@ ...@@ -361,7 +349,7 @@
if [ "$debug" != "yes" -a "$gprof" != "yes" ]; then if [ "$debug" != "yes" -a "$gprof" != "yes" ]; then
CFLAGS="$CFLAGS -s -fomit-frame-pointer" CFLAGS="$CFLAGS -s -fomit-frame-pointer"
LDFLAGS="$LDFLAGS -s" LDFLAGS="$LDFLAGS -s"
@@ -317,6 +282,9 @@ @@ -342,6 +307,9 @@
ASFLAGS=$ASFLAGS ASFLAGS=$ASFLAGS
VFW=$vfw VFW=$vfw
EXE=$EXE EXE=$EXE
...@@ -371,3 +359,5 @@ ...@@ -371,3 +359,5 @@
VIS=$vis VIS=$vis
HAVE_GETOPT_LONG=$HAVE_GETOPT_LONG HAVE_GETOPT_LONG=$HAVE_GETOPT_LONG
DEVNULL=$DEVNULL DEVNULL=$DEVNULL
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment