OSDN Git Service

Change the fifo size from being statically tuned for a Mac Pro with 4 CPUs to dynamic...
[handbrake-jp/handbrake-jp-git.git] / contrib / patch-x264-solaris.patch
1 --- x264/orig.configer  2007-09-15 20:14:00.202704854 +0200
2 +++ x264/configure      2007-09-15 20:15:13.969525668 +0200
3 @@ -1,4 +1,4 @@
4 -#! /bin/sh
5 +#! /usr/xpg4/bin/sh
6
7  if test x"$1" = x"-h" -o x"$1" = x"--help" ; then
8
9 @@ -76,7 +76,7 @@
10  # check whether 'echo -n' works as expected, otherwise try printf
11  if [ "x`echo -n houba`" = xhouba ]
12  then
13 -  ECHON="echo -n"
14 +  ECHON="/usr/ucb/echo -n"
15  elif [ "x`printf houba`" = xhouba ]
16  then
17    ECHON="printf"
18  
19 diff -Naur x264/encoder/ratecontrol.c solaris.x264/encoder/ratecontrol.c
20 --- x264/encoder/ratecontrol.c  2007-05-01 22:45:01.000000000 +0200
21 +++ solaris.x264/encoder/ratecontrol.c  2007-07-08 15:08:46.037119995 +0200
22 @@ -35,6 +35,9 @@
23  #include "common/cpu.h"
24  #include "ratecontrol.h"
25  
26 +#if defined(SYS_SunOS)
27 +#define isfinite _finite
28 +#endif
29  #if defined(SYS_OPENBSD)
30  #define isfinite finite
31  #endif
32 --- x264.base/Makefile  Mon Jul 16 08:45:03 2007
33 +++ x264/Makefile       Thu Oct 11 11:52:46 2007
34 @@ -147,8 +147,10 @@
35         $(MAKE) -C gtk distclean
36  
37  install: x264 $(SONAME)
38 -       install -d $(DESTDIR)$(bindir) $(DESTDIR)$(includedir)
39 -       install -d $(DESTDIR)$(libdir) $(DESTDIR)$(libdir)/pkgconfig
40 +       install -d $(DESTDIR)$(bindir) 
41 +       install -d $(DESTDIR)$(includedir)
42 +       install -d $(DESTDIR)$(libdir) 
43 +       install -d $(DESTDIR)$(libdir)/pkgconfig
44         install -m 644 x264.h $(DESTDIR)$(includedir)
45         install -m 644 libx264.a $(DESTDIR)$(libdir)
46         install -m 644 x264.pc $(DESTDIR)$(libdir)/pkgconfig