freebsd-ports/multimedia/mythtv/files/patch-configure
Greg Lehey 65effc8736 Upgrade to a snapshot of the MythTV fixes tree.
This is necessary to maintain protocol compatibility with Linux
distributions, on which we're generally dependent for tuner
functionality.  Unfortunately, there's no distribution for this
version, and it's already been overtaken.  Watch this space.

Submitted by: dmlb

This also fixes a build error reported by pointyhat.
2007-04-15 09:33:30 +00:00

37 lines
895 B
Text

--- 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)