aboutsummaryrefslogtreecommitdiff
path: root/multimedia/x264/files/patch-configure
blob: 02d0e7615274b14d6af640ae9e6e301c52eee279 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
--- configure.orig	Tue Oct 24 16:45:02 2006
+++ configure	Wed Oct 25 08:21:32 2006
@@ -113,8 +113,6 @@
     HAVE_GETOPT_LONG=0
     ;;
   *)
-    echo "Unknown system $MACHINE, edit the configure"
-    exit 1
     ;;
 esac
 
@@ -134,7 +132,7 @@
       ASFLAGS="$ASFLAGS -f elf"
     fi
     ;;
-  x86_64)
+  x86_64 | amd64)
     ARCH="X86_64"
     CFLAGS="$CFLAGS -DHAVE_MMXEXT -DHAVE_SSE2"
     AS="yasm"
@@ -283,7 +281,7 @@
     esac
 fi
 
-MP4_LDFLAGS="-lgpac_static"
+MP4_LDFLAGS="-lgpac"
 if [ $SYS = CYGWIN -o $SYS = MINGW ]; then
     MP4_LDFLAGS="$MP4_LDFLAGS -lwinmm"
 fi
@@ -363,7 +361,8 @@
 cp config.mak gtk/config.mak
 
 if [ "$shared" = "yes" ]; then
-    API=$(grep '#define X264_BUILD' < x264.h | cut -f 3 -d ' ')
+#    API=$(grep '#define X264_BUILD' < x264.h | cut -f 3 -d ' ')
+    API=50
     echo "SONAME=libx264.so.$API" >> config.mak
     echo 'default: $(SONAME)' >> config.mak
     if [ "$gtk" = "yes" ]; then