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
4 #include "common/macroblock.h"
5 #include "ratecontrol.h"
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) )
11 #if defined(_MSC_VER) || defined(SYS_SunOS)
14 --- x264.orig/Makefile 2005-08-24 21:44:32.000000000 +0200
15 +++ x264/Makefile 2005-08-24 21:44:11.000000000 +0200
17 OBJS = $(SRCS:%.c=%.o)
20 -default: $(DEP) x264$(EXE)
23 libx264.a: .depend $(OBJS) $(OBJASM)
24 ar rc libx264.a $(OBJS) $(OBJASM)
26 .depend: config.mak config.h
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;)
32 config.h: $(wildcard .svn/entries */.svn/entries */*/.svn/entries)
36 rm -f config.mak vfw/build/cygwin/config.mak
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