From a5e78ebff48244d281ec149c4f1b88cff328ef99 Mon Sep 17 00:00:00 2001 From: konablend Date: Tue, 17 Mar 2009 01:07:06 +0000 Subject: BuildSystem: solaris port (work in progress) git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2263 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- contrib/x264/P01-solaris.patch | 67 ++++++++++++++++++++++++++++++++++++++++++ contrib/x264/P01-sunos.patch | 67 ------------------------------------------ 2 files changed, 67 insertions(+), 67 deletions(-) create mode 100644 contrib/x264/P01-solaris.patch delete mode 100644 contrib/x264/P01-sunos.patch (limited to 'contrib/x264') diff --git a/contrib/x264/P01-solaris.patch b/contrib/x264/P01-solaris.patch new file mode 100644 index 000000000..24d629ff9 --- /dev/null +++ b/contrib/x264/P01-solaris.patch @@ -0,0 +1,67 @@ +diff -ru x264/Makefile x264.solaris/Makefile +--- x264/Makefile Mon Jun 9 01:36:08 2008 ++++ x264.solaris/Makefile Thu Jun 19 11:54:53 2008 +@@ -150,8 +150,10 @@ + $(MAKE) -C gtk distclean + + install: x264$(EXE) $(SONAME) +- install -d $(DESTDIR)$(bindir) $(DESTDIR)$(includedir) +- install -d $(DESTDIR)$(libdir) $(DESTDIR)$(libdir)/pkgconfig ++ install -d $(DESTDIR)$(bindir) ++ install -d $(DESTDIR)$(includedir) ++ install -d $(DESTDIR)$(libdir) ++ install -d $(DESTDIR)$(libdir)/pkgconfig + install -m 644 x264.h $(DESTDIR)$(includedir) + install -m 644 libx264.a $(DESTDIR)$(libdir) + install -m 644 x264.pc $(DESTDIR)$(libdir)/pkgconfig +diff -ru x264/configure x264.solaris/configure +--- x264/configure Tue Aug 12 03:26:58 2008 ++++ x264.modified/configure Tue Aug 19 16:09:32 2008 +@@ -1,4 +1,4 @@ +-#! /bin/sh ++#! /usr/xpg4/bin/sh + + if test x"$1" = x"-h" -o x"$1" = x"--help" ; then + +@@ -75,7 +75,7 @@ + # check whether 'echo -n' works as expected, otherwise try printf + if [ "x`echo -n houba`" = xhouba ] + then +- ECHON="echo -n" ++ ECHON="/usr/ucb/echo -n" + elif [ "x`printf houba`" = xhouba ] + then + ECHON="printf" +@@ -321,8 +321,6 @@ + echo "If you really want to compile without asm, configure with --disable-asm." + exit 1 + fi +-else +- AS="" + fi + + CFLAGS="$CFLAGS -DARCH_$ARCH -DSYS_$SYS" +@@ -329,8 +327,10 @@ + + echo "unsigned int endian = 'B' << 24 | 'I' << 16 | 'G' << 8 | 'E';" > conftest.c + $CC $CFLAGS conftest.c -c -o conftest.o 2>$DEVNULL || die "endian test failed" +-grep -q BIGE conftest.o && CFLAGS="$CFLAGS -DWORDS_BIGENDIAN" ++/usr/bin/tr -cd "BIGE" < conftest.o | /usr/xpg4/bin/grep -q BIGE && CFLAGS="$CFLAGS -DWORDS_BIGENDIAN" + ++echo $CFLAGS ++ + # autodetect options that weren't forced nor disabled + + libpthread="" +diff -ru x264/version.sh x264.solaris/version.sh +--- x264/version.sh Mon Jun 9 01:36:08 2008 ++++ x264.solaris/version.sh Thu Jun 19 11:56:19 2008 +@@ -1,7 +1,7 @@ + #!/bin/sh + git-rev-list HEAD | sort > config.git-hash + LOCALVER=`wc -l config.git-hash | awk '{print $1}'` +-if [ $LOCALVER \> 1 ] ; then ++if [ $LOCALVER -gt 1 ] ; then + VER=`git-rev-list origin/master | sort | join config.git-hash - | wc -l | awk '{print $1}'` + if [ $VER != $LOCALVER ] ; then + VER="$VER+$(($LOCALVER-$VER))" diff --git a/contrib/x264/P01-sunos.patch b/contrib/x264/P01-sunos.patch deleted file mode 100644 index 24d629ff9..000000000 --- a/contrib/x264/P01-sunos.patch +++ /dev/null @@ -1,67 +0,0 @@ -diff -ru x264/Makefile x264.solaris/Makefile ---- x264/Makefile Mon Jun 9 01:36:08 2008 -+++ x264.solaris/Makefile Thu Jun 19 11:54:53 2008 -@@ -150,8 +150,10 @@ - $(MAKE) -C gtk distclean - - install: x264$(EXE) $(SONAME) -- install -d $(DESTDIR)$(bindir) $(DESTDIR)$(includedir) -- install -d $(DESTDIR)$(libdir) $(DESTDIR)$(libdir)/pkgconfig -+ install -d $(DESTDIR)$(bindir) -+ install -d $(DESTDIR)$(includedir) -+ install -d $(DESTDIR)$(libdir) -+ install -d $(DESTDIR)$(libdir)/pkgconfig - install -m 644 x264.h $(DESTDIR)$(includedir) - install -m 644 libx264.a $(DESTDIR)$(libdir) - install -m 644 x264.pc $(DESTDIR)$(libdir)/pkgconfig -diff -ru x264/configure x264.solaris/configure ---- x264/configure Tue Aug 12 03:26:58 2008 -+++ x264.modified/configure Tue Aug 19 16:09:32 2008 -@@ -1,4 +1,4 @@ --#! /bin/sh -+#! /usr/xpg4/bin/sh - - if test x"$1" = x"-h" -o x"$1" = x"--help" ; then - -@@ -75,7 +75,7 @@ - # check whether 'echo -n' works as expected, otherwise try printf - if [ "x`echo -n houba`" = xhouba ] - then -- ECHON="echo -n" -+ ECHON="/usr/ucb/echo -n" - elif [ "x`printf houba`" = xhouba ] - then - ECHON="printf" -@@ -321,8 +321,6 @@ - echo "If you really want to compile without asm, configure with --disable-asm." - exit 1 - fi --else -- AS="" - fi - - CFLAGS="$CFLAGS -DARCH_$ARCH -DSYS_$SYS" -@@ -329,8 +327,10 @@ - - echo "unsigned int endian = 'B' << 24 | 'I' << 16 | 'G' << 8 | 'E';" > conftest.c - $CC $CFLAGS conftest.c -c -o conftest.o 2>$DEVNULL || die "endian test failed" --grep -q BIGE conftest.o && CFLAGS="$CFLAGS -DWORDS_BIGENDIAN" -+/usr/bin/tr -cd "BIGE" < conftest.o | /usr/xpg4/bin/grep -q BIGE && CFLAGS="$CFLAGS -DWORDS_BIGENDIAN" - -+echo $CFLAGS -+ - # autodetect options that weren't forced nor disabled - - libpthread="" -diff -ru x264/version.sh x264.solaris/version.sh ---- x264/version.sh Mon Jun 9 01:36:08 2008 -+++ x264.solaris/version.sh Thu Jun 19 11:56:19 2008 -@@ -1,7 +1,7 @@ - #!/bin/sh - git-rev-list HEAD | sort > config.git-hash - LOCALVER=`wc -l config.git-hash | awk '{print $1}'` --if [ $LOCALVER \> 1 ] ; then -+if [ $LOCALVER -gt 1 ] ; then - VER=`git-rev-list origin/master | sort | join config.git-hash - | wc -l | awk '{print $1}'` - if [ $VER != $LOCALVER ] ; then - VER="$VER+$(($LOCALVER-$VER))" -- cgit v1.2.3