summaryrefslogtreecommitdiff
path: root/multimedia/ffmpeg/patches/patch-configure
blob: 159a7914c7bab9fac232ec76b75763cb4e0e83ef (plain)
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
40
41
42
43
44
45
46
47
48
49
50
$NetBSD: patch-configure,v 1.10 2010/05/04 18:33:43 drochner Exp $

--- configure.orig	2009-06-10 20:50:53.000000000 +0000
+++ configure
@@ -1619,6 +1619,10 @@ case $target_os in
         add_cflags -D__EXTENSIONS__
         ;;
     netbsd)
+	if test "${subarch}" != "x86_32"; then
+	    LIBOBJFLAGS='$(PIC)'
+	    SHFLAGS='-shared'
+	fi
         oss_demuxer_extralibs="-lossaudio"
         oss_muxer_extralibs="-lossaudio"
         ;;
@@ -1632,6 +1636,8 @@ case $target_os in
     freebsd)
         disable need_memalign
         ;;
+    dragonfly)
+        ;;
     bsd/os)
         osextralibs="-lpoll -lgnugetopt"
         strip="strip -d"
@@ -1996,10 +2002,13 @@ enabled vis && add_cflags -mcpu=ultraspa
 
 # ---
 # big/little-endian test
-check_cc <<EOF || die "endian test failed"
-unsigned int endian = 'B' << 24 | 'I' << 16 | 'G' << 8 | 'E';
+check_exec <<EOF || enable bigendian
+int main()
+{
+ long one = 1;
+ return !(*((char *)(&one)));
+}
 EOF
-od -A n -t x1 $TMPO | grep -q '42 *49 *47 *45' && enable bigendian
 
 # ---
 # check availability of some header files
@@ -2101,7 +2110,7 @@ enabled libschroedinger && add_cflags $(
 enabled libspeex   && require  libspeex speex/speex.h speex_decoder_init -lspeex
 enabled libtheora  && require  libtheora theora/theora.h theora_info_init -ltheora -logg
 enabled libvorbis  && require  libvorbis vorbis/vorbisenc.h vorbis_info_init -lvorbisenc -lvorbis -logg
-enabled libx264    && require  libx264 x264.h x264_encoder_open -lx264 -lm &&
+enabled libx264    && require  libx264 x264.h x264_encoder_close -lx264 -lm &&
                       { check_cpp_condition x264.h "X264_BUILD >= 65" ||
                         die "ERROR: libx264 version must be >= 0.65."; }
 enabled libxvid    && require  libxvid xvid.h xvid_global -lxvidcore