Commit d586a8d0 authored by Christophe Mutricy's avatar Christophe Mutricy

Refresh x264 patch and use pthread for x264 in win32

parent f81e64f1
...@@ -1214,7 +1214,11 @@ else ...@@ -1214,7 +1214,11 @@ else
endif endif
endif endif
ifdef HAVE_WIN32
.x264: x264 .pthreads
else
.x264: x264 .x264: x264
endif
(cd $<; ./configure $(X264CONF) --prefix="$(PREFIX)" --enable-pic && make && make install) (cd $<; ./configure $(X264CONF) --prefix="$(PREFIX)" --enable-pic && make && make install)
touch $@ touch $@
......
Index: configure Index: configure
=================================================================== ===================================================================
--- configure (revision 590) --- configure (revision 612)
+++ configure (working copy) +++ configure (working copy)
@@ -55,8 +55,8 @@
shared="no"
CC="${CC-gcc}"
-CFLAGS="-Wall -I. -D__X264__"
-LDFLAGS=""
+CFLAGS="$CFLAGS -Wall -I. -D__X264__"
+LDFLAGS="$LDFLAGS"
HAVE_GETOPT_LONG=1
AS="nasm"
@@ -64,8 +64,101 @@ @@ -64,8 +64,101 @@
EXE="" EXE=""
...@@ -104,7 +115,7 @@ Index: configure ...@@ -104,7 +115,7 @@ Index: configure
case "${MACHINE#*-*-}" in case "${MACHINE#*-*-}" in
beos*) beos*)
SYS="BEOS" SYS="BEOS"
@@ -178,88 +271,6 @@ @@ -183,88 +276,6 @@
esac esac
CFLAGS="$CFLAGS -DARCH_$ARCH -DSYS_$SYS" CFLAGS="$CFLAGS -DARCH_$ARCH -DSYS_$SYS"
...@@ -151,7 +162,7 @@ Index: configure ...@@ -151,7 +162,7 @@ Index: configure
- LDFLAGS="$LDFLAGS ${opt#--extra-ldflags=}" - LDFLAGS="$LDFLAGS ${opt#--extra-ldflags=}"
- ;; - ;;
- --enable-pthread) - --enable-pthread)
- pthread="yes" - pthread="auto" # can't skip detection, since it differs by OS
- ;; - ;;
- --disable-pthread) - --disable-pthread)
- pthread="no" - pthread="no"
...@@ -192,8 +203,8 @@ Index: configure ...@@ -192,8 +203,8 @@ Index: configure
- -
# autodetect options that weren't forced nor disabled # autodetect options that weren't forced nor disabled
if test "$pthread" = "auto" ; then libpthread=""
@@ -349,6 +360,9 @@ @@ -363,6 +374,9 @@
ASFLAGS=$ASFLAGS ASFLAGS=$ASFLAGS
GTK=$gtk GTK=$gtk
EXE=$EXE EXE=$EXE
......
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