OSDN Git Service

import 0.9.3
[handbrake-jp/handbrake-jp.git] / contrib / patch-x264-solaris.patch
1 diff -ru x264/Makefile x264.solaris/Makefile
2 --- x264/Makefile       Mon Jun  9 01:36:08 2008
3 +++ x264.solaris/Makefile       Thu Jun 19 11:54:53 2008
4 @@ -150,8 +150,10 @@
5         $(MAKE) -C gtk distclean
6  
7  install: x264$(EXE) $(SONAME)
8 -       install -d $(DESTDIR)$(bindir) $(DESTDIR)$(includedir)
9 -       install -d $(DESTDIR)$(libdir) $(DESTDIR)$(libdir)/pkgconfig
10 +       install -d $(DESTDIR)$(bindir) 
11 +       install -d $(DESTDIR)$(includedir)
12 +       install -d $(DESTDIR)$(libdir) 
13 +       install -d $(DESTDIR)$(libdir)/pkgconfig
14         install -m 644 x264.h $(DESTDIR)$(includedir)
15         install -m 644 libx264.a $(DESTDIR)$(libdir)
16         install -m 644 x264.pc $(DESTDIR)$(libdir)/pkgconfig
17 diff -ru x264/configure x264.solaris/configure
18 --- x264/configure      Tue Aug 12 03:26:58 2008
19 +++ x264.modified/configure     Tue Aug 19 16:09:32 2008
20 @@ -1,4 +1,4 @@
21 -#! /bin/sh
22 +#! /usr/xpg4/bin/sh
23  
24  if test x"$1" = x"-h" -o x"$1" = x"--help" ; then
25  
26 @@ -75,7 +75,7 @@
27  # check whether 'echo -n' works as expected, otherwise try printf
28  if [ "x`echo -n houba`" = xhouba ]
29  then
30 -  ECHON="echo -n"
31 +  ECHON="/usr/ucb/echo -n"
32  elif [ "x`printf houba`" = xhouba ]
33  then
34    ECHON="printf"
35 @@ -321,8 +321,6 @@
36          echo "If you really want to compile without asm, configure with --disable-asm."
37          exit 1
38      fi
39 -else
40 -    AS=""
41  fi
42  
43  CFLAGS="$CFLAGS -DARCH_$ARCH -DSYS_$SYS"
44 @@ -329,8 +327,10 @@
45  
46  echo "unsigned int endian = 'B' << 24 | 'I' << 16 | 'G' << 8 | 'E';" > conftest.c
47  $CC $CFLAGS conftest.c -c -o conftest.o 2>$DEVNULL || die "endian test failed"
48 -grep -q BIGE conftest.o && CFLAGS="$CFLAGS -DWORDS_BIGENDIAN"
49 +/usr/bin/tr -cd "BIGE" < conftest.o | /usr/xpg4/bin/grep -q BIGE && CFLAGS="$CFLAGS -DWORDS_BIGENDIAN"
50  
51 +echo $CFLAGS
52 +
53  # autodetect options that weren't forced nor disabled
54  
55  libpthread=""
56 diff -ru x264/version.sh x264.solaris/version.sh
57 --- x264/version.sh     Mon Jun  9 01:36:08 2008
58 +++ x264.solaris/version.sh     Thu Jun 19 11:56:19 2008
59 @@ -1,7 +1,7 @@
60  #!/bin/sh
61  git-rev-list HEAD | sort > config.git-hash
62  LOCALVER=`wc -l config.git-hash | awk '{print $1}'`
63 -if [ $LOCALVER \> 1 ] ; then
64 +if [ $LOCALVER -gt 1 ] ; then
65      VER=`git-rev-list origin/master | sort | join config.git-hash - | wc -l | awk '{print $1}'`
66      if [ $VER != $LOCALVER ] ; then
67          VER="$VER+$(($LOCALVER-$VER))"