aboutsummaryrefslogtreecommitdiff
path: root/multimedia/x264/files/patch-configure
diff options
context:
space:
mode:
Diffstat (limited to 'multimedia/x264/files/patch-configure')
-rw-r--r--multimedia/x264/files/patch-configure38
1 files changed, 38 insertions, 0 deletions
diff --git a/multimedia/x264/files/patch-configure b/multimedia/x264/files/patch-configure
new file mode 100644
index 000000000000..d851deb3671e
--- /dev/null
+++ b/multimedia/x264/files/patch-configure
@@ -0,0 +1,38 @@
+--- configure.orig 2010-02-22 22:45:05.000000000 +0100
++++ configure 2010-04-23 12:56:49.647782200 +0200
+@@ -1,4 +1,4 @@
+-#!/bin/bash
++#!/bin/sh
+
+ if test x"$1" = x"-h" -o x"$1" = x"--help" ; then
+
+@@ -317,11 +317,15 @@
+ ARCH="X86"
+ AS="yasm"
+ ASFLAGS="$ASFLAGS -O2"
+- if [[ "$asm" == yes && "$CFLAGS" != *-march* ]]; then
+- CFLAGS="$CFLAGS -march=i686"
+- fi
+- if [[ "$asm" == yes && "$CFLAGS" != *-mfpmath* ]]; then
+- CFLAGS="$CFLAGS -mfpmath=sse -msse"
++ if [ "$asm" = yes ]; then
++ case "$CFLAGS" in
++ *-march*) ;;
++ *) CFLAGS="$CFLAGS -march=i686" ;;
++ esac
++ case "$CFLAGS" in
++ *-mfpmath*) ;;
++ *) CFLAGS="$CFLAGS -mfpmath=sse -msse" ;;
++ esac
+ fi
+ if [ "$SYS" = MACOSX ]; then
+ ASFLAGS="$ASFLAGS -f macho -DPREFIX"
+@@ -578,7 +582,7 @@
+ [ -n "$LAVF_CFLAGS" ] && CFLAGS="$CFLAGS $LAVF_CFLAGS"
+ fi
+
+-MP4_LDFLAGS="-lgpac_static"
++MP4_LDFLAGS="-lgpac"
+ if [ $SYS = MINGW ]; then
+ MP4_LDFLAGS="$MP4_LDFLAGS -lwinmm"
+ fi