]> git.sesse.net Git - vlc/blob - extras/contrib/src/Patches/x264_svn.patch
* build libx264 from svn, if available. Since we need to patch it slightly different...
[vlc] / extras / contrib / src / Patches / x264_svn.patch
1 --- x264.orig/encoder/ratecontrol.c     2005-08-24 21:46:21.000000000 +0200
2 +++ x264/encoder/ratecontrol.c  2005-08-24 21:45:53.000000000 +0200
3 @@ -37,7 +37,7 @@
4  #include "common/macroblock.h"
5  #include "ratecontrol.h"
6  
7 -#if defined(SYS_FREEBSD) || defined(SYS_BEOS) || defined(SYS_NETBSD)
8 +#if defined(SYS_FREEBSD) || defined(SYS_BEOS) || defined(SYS_MACOSX)
9  #define exp2f(x) powf( 2, (x) )
10  #endif
11  #if defined(_MSC_VER) || defined(SYS_SunOS)
12
13
14 --- x264.orig/Makefile  2005-08-24 21:44:32.000000000 +0200
15 +++ x264/Makefile       2005-08-24 21:44:11.000000000 +0200
16 @@ -53,7 +53,7 @@
17  OBJS = $(SRCS:%.c=%.o)
18  DEP  = depend
19  
20 -default: $(DEP) x264$(EXE)
21 +default: $(DEP)
22  
23  libx264.a: .depend $(OBJS) $(OBJASM)
24         ar rc libx264.a $(OBJS) $(OBJASM)
25 @@ -74,7 +74,7 @@
26  .depend: config.mak config.h
27         rm -f .depend
28  # Hacky - because gcc 2.9x doesn't have -MT
29 -       $(foreach SRC, $(SRCS) x264.c matroska.c, ( echo -n "`dirname $(SRC)`/" && $(CC) $(CFLAGS) $(SRC) -MM -g0 ) 1>> .depend;)
30 +       $(foreach SRC, $(SRCS), ( echo -n "`dirname $(SRC)`/" && $(CC) $(CFLAGS) $(SRC) -MM -g0 ) 1>> .depend;)
31  
32  config.h: $(wildcard .svn/entries */.svn/entries */*/.svn/entries)
33         ./version.sh
34 @@ -91,11 +91,10 @@
35  distclean: clean
36         rm -f config.mak vfw/build/cygwin/config.mak
37  
38 -install: x264
39 +install: libx264.a
40         install -d $(DESTDIR)$(bindir) $(DESTDIR)$(libdir) $(DESTDIR)$(includedir)
41         install -m 644 x264.h $(DESTDIR)$(includedir)
42         install -m 644 libx264.a $(DESTDIR)$(libdir)
43 -       install x264 $(DESTDIR)$(bindir)
44         ranlib $(DESTDIR)$(libdir)/libx264.a
45  
46  etags: TAGS