summaryrefslogtreecommitdiffstats
path: root/multimedia/mythtv/files/patch-configure
blob: 7f299b12bfd1ad02a25aed219d91d515299a23c0 (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
--- configure.really-orig	Fri Mar 16 18:11:46 2007
+++ configure	Thu Mar 29 16:18:29 2007
@@ -463,6 +463,17 @@
     fi 
 fi 
 
+# BSD.
+if uname -s | grep BSD > 0; then
+    dmesg=/var/run/dmesg.boot
+    if test -f $dmesg ; then
+        processor=`grep ^CPU: $dmesg`
+# processor_flags is used only to determine whether the processor
+# supports MMX.  The script expexts lower-case 'mmx'.  Give it to it.
+        processor_flags=`grep '^  Features=' $dmesg | tr "[:upper:]" "[:lower:]"`
+    fi
+fi
+
 # These have to be looked up early for some types of cross-compiling to work
 cpu_overide="no"
 for opt do
@@ -712,14 +723,14 @@
 ;;
 FreeBSD)
 joystick_menu="no"
-v4l2="no"
+v4l2="yes"
 bktr="yes"
 audio_oss="yes"
 dv1394="no"
 make="gmake"
 backend="yes"
 v4l="yes"
-CFLAGS="$CFLAGS -pthread"
+CFLAGS="$CFLAGS -pthread -I/usr/local/include"
 CCONFIG="$CCONFIG freebsd"
 ;;
 GNU/kFreeBSD)
OpenPOWER on IntegriCloud