summaryrefslogtreecommitdiff
path: root/audio/mp3blaster/patches/patch-ad
blob: 58565badcdcd70ee4ce7e400d4f51f568352961e (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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
$NetBSD: patch-ad,v 1.3 2005/12/11 22:22:37 joerg Exp $

--- configure.orig	2003-11-28 20:07:16.000000000 +0000
+++ configure
@@ -1591,7 +1591,7 @@ echo "$ac_t""$ac_cv_prog_gcc_traditional
   fi
 fi
 
-for ac_func in strdup strstr
+for ac_func in strdup strstr getopt_long_only
 do
 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
 echo "configure:1598: checking for $ac_func" >&5
@@ -1665,7 +1665,14 @@ if test "`uname -s`" = "FreeBSD" ; then
   cat >> confdefs.h <<\EOF
 #define AUDIO_NONBLOCKING 1
 EOF
+fi
 
+if test "`uname -s`" = "DragonFly" ; then
+  echo "DragonFly detected."
+  DRAGONFLY=1
+  cat >> confdefs.h <<\EOF
+#define AUDIO_NONBLOCKING 1
+EOF
 fi
 
 #For NetBSD, look in /usr/pkg/(lib,include) first. Otherwise, the wrong
@@ -1987,7 +1994,7 @@ fi
 
 
 if test "$INCLUDEPTHREAD" = 1 ; then
-	if test "$FREEBSD" = 1 -o "$OPENBSD" = 1 ; then
+	if test "$FREEBSD" = 1 -o "$OPENBSD" = 1 -o "$DRAGONFLY" = 1 ; then
   	LDFLAGS="$LDFLAGS -pthread"
 	else
   	echo $ac_n "checking for main in -lpthread""... $ac_c" 1>&6
@@ -2542,7 +2549,7 @@ else
 fi
 done
 
-for ac_hdr in sys/soundcard.h machine/soundcard.h soundcard.h getopt.h
+for ac_hdr in sys/soundcard.h machine/soundcard.h soundcard.h
 do
 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
@@ -3862,7 +3869,7 @@ EOF
 
 
 if test "$INCLUDEPTHREAD" = 1 ; then
-  if test "$FREEBSD" = 1 -o "$OPENBSD" = 1 ; then
+  if test "$FREEBSD" = 1 -o "$OPENBSD" = 1 -o "$DRAGONFLY" = 1 ; then
     LDFLAGS="$LDFLAGS -pthread"
     cat >> confdefs.h <<\EOF
 #define _THREAD_SAFE 1
@@ -3907,13 +3914,15 @@ fi
 
 
 
-LDFLAGS="$LDFLAGS -L../mpegsound -L../nmixer"
+LDFLAGS="$LDFLAGS -L../mpegsound -L../nmixer -L../getopt"
 LIBMPEGSOUND="-lmpegsound"
 LIBNMIXER="-lnmixer"
+LIBGETOPT="-lgetopt"
+
 
 
 
-SRCDIRS="mpegsound nmixer src doc doc/charmap"
+SRCDIRS="getopt mpegsound nmixer src doc doc/charmap"
 
 trap '' 1 2 15
 cat > confcache <<\EOF
@@ -4016,7 +4025,7 @@ done
 ac_given_srcdir=$srcdir
 ac_given_INSTALL="$INSTALL"
 
-trap 'rm -fr `echo "src/Makefile mpegsound/Makefile Makefile nmixer/Makefile doc/Makefile doc/charmap/Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
+trap 'rm -fr `echo "getopt/Makefile src/Makefile mpegsound/Makefile Makefile nmixer/Makefile doc/Makefile doc/charmap/Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
 EOF
 cat >> $CONFIG_STATUS <<EOF
 
@@ -4079,6 +4088,7 @@ s%@NAS_CFLAGS@%$NAS_CFLAGS%g
 s%@NCURSES_LIBS@%$NCURSES_LIBS%g
 s%@LIBMPEGSOUND@%$LIBMPEGSOUND%g
 s%@LIBNMIXER@%$LIBNMIXER%g
+s%@LIBGETOPT@%$LIBGETOPT%g
 s%@SRCDIRS@%$SRCDIRS%g
 
 CEOF
@@ -4121,7 +4131,7 @@ EOF
 
 cat >> $CONFIG_STATUS <<EOF
 
-CONFIG_FILES=\${CONFIG_FILES-"src/Makefile mpegsound/Makefile Makefile nmixer/Makefile doc/Makefile doc/charmap/Makefile"}
+CONFIG_FILES=\${CONFIG_FILES-"getopt/Makefile src/Makefile mpegsound/Makefile Makefile nmixer/Makefile doc/Makefile doc/charmap/Makefile"}
 EOF
 cat >> $CONFIG_STATUS <<\EOF
 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then