summaryrefslogtreecommitdiff
path: root/package/ffmpeg/patches/patch-configure
blob: 5f038b65ebf9aa29adaeeb000dfa31f60fdb9fc5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
--- ffmpeg-0.6.1.orig/configure	2010-06-15 21:44:30.000000000 +0200
+++ ffmpeg-0.6.1/configure	2011-02-05 19:31:24.000000000 +0100
@@ -1689,8 +1690,8 @@ if ! check_cmd type mktemp; then
 fi
 
 tmpfile(){
-    tmp=$(mktemp -u "${TMPDIR}/ffconf.XXXXXXXX")$2 &&
-        (set -C; exec > $tmp) 2>/dev/null ||
+    tmp=$(mktemp "${TMPDIR}/ffconf.XXXXXXXX")$2 &&
+        (set -C; rm $tmp; exec > $tmp) ||
         die "Unable to create temporary file in $TMPDIR."
     append TMPFILES $tmp
     eval $1=$tmp
@@ -2640,7 +2641,7 @@ if enabled libdc1394; then
     die "ERROR: No version of libdc1394 found "
 fi
 
-SDL_CONFIG="${cross_prefix}sdl-config"
+SDL_CONFIG="${sysroot}/usr/bin/sdl-config"
 if "${SDL_CONFIG}" --version > /dev/null 2>&1; then
     sdl_cflags=$("${SDL_CONFIG}" --cflags)
     sdl_libs=$("${SDL_CONFIG}" --libs)