From 2df06a351137629da513497b6031043e38c58078 Mon Sep 17 00:00:00 2001 From: rafael2k Date: Tue, 24 Oct 2006 09:42:16 +0000 Subject: cinelerra for powerpc ok git-svn-id: svn+slack://slack.fluxo.info/var/svn/slackbuilds@502 370017ae-e619-0410-ac65-c121f96126d4 --- cinelerra/cinelerra-powerpc.diff | 26 ++++++++++++++++++++++++++ cinelerra/cinelerra.SlackBuild | 4 ++++ 2 files changed, 30 insertions(+) create mode 100644 cinelerra/cinelerra-powerpc.diff (limited to 'cinelerra') diff --git a/cinelerra/cinelerra-powerpc.diff b/cinelerra/cinelerra-powerpc.diff new file mode 100644 index 00000000..ddcb4c26 --- /dev/null +++ b/cinelerra/cinelerra-powerpc.diff @@ -0,0 +1,26 @@ +Index: quicktime/ffmpeg/libavcodec/bswap.h +=================================================================== +--- quicktime/ffmpeg/libavcodec/bswap.h (revision 945) ++++ quicktime/ffmpeg/libavcodec/bswap.h (working copy) +@@ -10,6 +10,8 @@ + #include + #else + ++#undef ARCH_X86 ++ + #ifdef ARCH_X86_64 + # define LEGACY_REGS "=Q" + #else +Index: quicktime/ffmpeg/libavcodec/bitstream.h +=================================================================== +--- quicktime/ffmpeg/libavcodec/bitstream.h (revision 945) ++++ quicktime/ffmpeg/libavcodec/bitstream.h (working copy) +@@ -14,6 +14,8 @@ + //#define A32_BITSTREAM_READER + #define LIBMPEG2_BITSTREAM_READER_HACK //add BERO + ++#undef ARCH_X86 ++ + extern const uint8_t ff_reverse[256]; + + #if defined(ARCH_X86) || defined(ARCH_X86_64) diff --git a/cinelerra/cinelerra.SlackBuild b/cinelerra/cinelerra.SlackBuild index 2e4624a1..56b920ad 100755 --- a/cinelerra/cinelerra.SlackBuild +++ b/cinelerra/cinelerra.SlackBuild @@ -71,6 +71,10 @@ if [ -f "$CWD/$PACKAGE-$VERSION.diff" ]; then patch -p1 < $CWD/$PACKAGE-$VERSION.diff || exit $ERROR_PATCH fi +if [ "$ARCH" == "powerpc" ]; then + patch -p0 < $CWD/$PACKAGE-powerpc.diff || exit $ERROR_PATCH +fi + ./autogen.sh || exit $ERROR_CONF ./configure --prefix=/usr --libdir=$LIBDIR || exit $ERROR_CONF make || exit $ERROR_MAKE -- cgit v1.2.3