summaryrefslogtreecommitdiff
path: root/sysutils/cdrdao/files/patch-ac
blob: 9fc888409e7747f64b64037abb05063fe641bad8 (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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
--- configure.orig	Wed Oct 27 01:13:45 1999
+++ configure	Fri Jun 23 08:40:42 2000
@@ -2592,6 +2592,8 @@
   { echo "configure: error: No PCCTS installation detected." 1>&2; exit 1; }
 fi
 
+# Disable xcdrdao feature (temporary)
+if false ; then
 # Check whether --with-gtkmm-prefix or --without-gtkmm-prefix was given.
 if test "${with_gtkmm_prefix+set}" = set; then
   withval="$with_gtkmm_prefix"
@@ -2869,8 +2871,8 @@
   
   
   rm -f conf.gtkmmtest
-
-
+# End Disable xcdrdao feature (temporary)
+fi
 
 
 if test "$use_scglib" = default; then
@@ -2897,7 +2899,7 @@
   scsi_if_src=ScsiIf-lib.cc
   
   case "$host" in
-    *-freebsd3* | *-freebsd4*)
+    *-freebsd3* | *-freebsd4* | *-freebsd5*)
 			       scsilib_libs="$scsilib_libs -lcam"
 			       ;;
   esac
@@ -2913,7 +2915,7 @@
 	       scsi_if_src="ScsiIf-linux.cc sg_err.cc"
 	       ;;
     
-    *-freebsd3* | *-freebsd4*)
+    *-freebsd3* | *-freebsd4* | *-freebsd5*)
 			       scsi_if_src="ScsiIf-freebsd-cam.cc"
 			       scsilib_libs="-lcam"
 			       ;;
@@ -2945,7 +2947,7 @@
 esac
 
 case "$host" in
-  *-linux-*)
+  *-linux-* | *-freebsd*)
 	     sound_if_src=SoundIF-linux.cc
 	     ;;
 
--- xdao/SoundIF-linux.cc.orig	Wed Oct 27 01:13:46 1999
+++ xdao/SoundIF-linux.cc	Wed Oct 27 03:37:23 1999
@@ -31,7 +31,14 @@
  *
  */
 
+# if defined(__FreeBSD__)
+#include <machine/soundcard.h>
+# if !defined(SNDCTL_DSP_CHANNELS)
+#   define SNDCTL_DSP_CHANNELS SNDCTL_DSP_STEREO
+# endif
+# else 
 #include <linux/soundcard.h>
+# endif
 
 #include <stdio.h>
 #include <assert.h>