Changeset a36cc9f8f1305b965883ec76a0d34c3a82d99699

Show
Ignore:
Timestamp:
04/06/08 09:16:41 (3 months ago)
Author:
Jean-Baptiste Kempf <jb@altair.videolan.org>
git-committer:
Jean-Baptiste Kempf <jb@altair.videolan.org> 1207466201 +0200
git-parent:

[76671a0bc3d0eaf9676d089356213beea2090ec3]

git-author:
Jean-Baptiste Kempf <jb@altair.videolan.org> 1207466201 +0200
Message:

x264 patch update for cross compilation.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • extras/contrib/src/Patches/x264-svn-win32.patch

    r219a17b ra36cc9f  
    1 Index: configure 
    2 =================================================================== 
    3 --- configure   (revision 736) 
    4 +++ configure   (working copy) 
    5 @@ -338,6 +338,7 @@ 
     1--- configure   2008-04-06 09:07:25.000000000 +0200 
     2+++ configure   2008-04-06 09:10:52.000000000 +0200 
     3@@ -343,6 +343,7 @@ 
    64 # autodetect options that weren't forced nor disabled 
    75  
     
    119     pthread="no" 
    1210     case $SYS in 
    13 @@ -345,16 +346,18 @@ 
     11@@ -350,13 +351,13 @@ 
    1412             pthread="yes" 
    1513             ;; 
    16          MINGW|CYGWIN
     14         MINGW
    1715-            if cc_check pthread.h -lpthread "pthread_create(0,0,0,0);" ; then 
    1816+            if cc_check pthread.h -lpthread "pthread_create(0,0,0,0); pthread_num_processors_np();" ; then 
     
    2018                 libpthread="-lpthread" 
    2119-            elif cc_check pthread.h -lpthreadGC2 "pthread_create(0,0,0,0);" ; then 
    22 +            elif cc_check pthread.h -lpthreadGC2 "pthread_create(0,0,0,0); pthread_num_processors_np();" ; then 
     20+            elif cc_check pthread.h -lpthreadGC2 "pthread_create(0,0,0,0); pthread_num_processors_np(); " ; then 
    2321                 pthread="yes" 
    2422                 libpthread="-lpthreadGC2" 
     
    2826                 libpthread="-lpthreadGC2 -lwsock32" 
    2927                 CFLAGS="$CFLAGS -DPTW32_STATIC_LIB" 
    30 +       extradef="-DPTW32_STATIC_LIB" 
    31 
    32              fi 
    33              ;; 
    34          *) 
    35 @@ -438,6 +441,10 @@ 
     28@@ -443,6 +444,10 @@ 
    3629 ASFLAGS=$ASFLAGS 
    3730 GTK=$gtk 
     
    4437 HAVE_GETOPT_LONG=$HAVE_GETOPT_LONG 
    4538 DEVNULL=$DEVNULL 
    46 @@ -480,7 +487,7 @@ 
     39@@ -495,7 +500,7 @@ 
    4740 Description: H.264 (MPEG4 AVC) encoder library 
    4841 Version: $(grep POINTVER < config.h | sed -e 's/.* "//; s/".*//') 
     
    5346  
    5447  
    55 Index: Makefile 
    56 =================================================================== 
    57 --- Makefile    (revision 736) 
    58 +++ Makefile    (working copy) 
    59 @@ -74,8 +74,8 @@ 
     48--- Makefile    2008-04-06 09:07:25.000000000 +0200 
     49+++ Makefile    2008-04-06 09:11:39.000000000 +0200 
     50@@ -72,8 +72,8 @@ 
    6051 default: $(DEP) x264$(EXE) 
    6152  
     
    6758  
    6859 $(SONAME): .depend $(OBJS) $(OBJASM) 
    69     $(CC) -shared -o $@ $(OBJS) $(OBJASM) -Wl,-soname,$(SONAME) $(LDFLAGS) 
    70 @@ -94,7 +94,7 @@ 
     60    $(CC) -shared -o $@ $(OBJS) $(OBJASM) $(SOFLAGS) $(LDFLAGS) 
     61@@ -90,7 +90,7 @@ 
    7162 %.o: %.asm 
    7263    $(AS) $(ASFLAGS) -o $@ $< 
     
    7768 .depend: config.mak 
    7869    rm -f .depend 
    79 @@ -149,14 +149,14 @@ 
    80     rm -rf test/ 
    81     $(MAKE) -C gtk distclean 
    82   
    83 -install: x264 $(SONAME) 
    84 +install: x264$(EXE) 
    85     install -d $(DESTDIR)$(bindir) $(DESTDIR)$(includedir) 
    86     install -d $(DESTDIR)$(libdir) $(DESTDIR)$(libdir)/pkgconfig 
    87     install -m 644 x264.h $(DESTDIR)$(includedir) 
     70@@ -155,7 +155,7 @@ 
    8871    install -m 644 libx264.a $(DESTDIR)$(libdir) 
    8972    install -m 644 x264.pc $(DESTDIR)$(libdir)/pkgconfig 
    90 -  install x264 $(DESTDIR)$(bindir) 
     73   install x264$(EXE) $(DESTDIR)$(bindir) 
    9174-   ranlib $(DESTDIR)$(libdir)/libx264.a 
    92 +   install x264$(EXE) $(DESTDIR)$(bindir) 
    9375+   $(RANLIB) $(DESTDIR)$(libdir)/libx264.a 
    94    $(if $(SONAME), ln -sf $(SONAME) $(DESTDIR)$(libdir)/libx264.so
    95     $(if $(SONAME), install -m 755 $(SONAME) $(DESTDIR)$(libdir)) 
    96   
     76 ifeq ($(SYS),MINGW
     77    $(if $(SONAME), install -m 755 $(SONAME) $(DESTDIR)$(bindir)) 
     78 else