summaryrefslogtreecommitdiff
path: root/audio/dap/files/patch-ab
blob: 7b5f277e175a82a3515d7c3e59d9340157ee9ba9 (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
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
100
101
102
103
104
105
106
107
108
109
110
111
112
--- main/Makefile.freebsd.orig	Wed Sep 16 09:26:42 1998
+++ main/Makefile.freebsd	Wed Sep 16 18:34:39 1998
@@ -0,0 +1,83 @@
+CC      = gcc
+CXX     = g++
+FORMS   = /usr/X11R6/include
+SOUND   = ../sound
+SPKIT   = ../spkit
+TOOLTIP = ../tooltips
+BACKDIR = ../mainbak
+HOMEDIR = $(HOME)
+INCDIR  = -I. -I$(SOUND) -I$(SPKIT) -I$(FORMS) -I$(TOOLTIP) -I/usr/include
+LIBDIR  = -L$(SPKIT)/spkit -L$(FORMS) -L$(TOOLTIP) -L/usr/lib -L/usr/X11R6/lib
+CCFLAGS = $(CFLAGS) $(INCDIR) -DLINUX -DUSINGGCC
+LDFLAGS = $(LIBDIR) -ldsp -ltooltips -lxforms -lXpm -lX11 -lm
+
+PROGS =	DAP
+OBJS  = DPTich.o DPTich_cb.o DPTich_DSP.o DPTich_edit_cb.o DPTich_macros.o \
+        DPTich_effect_cb.o DPTich_main.o DPSampleXforms.o DPTich_prefs.o \
+        DPTich_linux_audio.o DPTich_linux_audiofile.o \
+        DPTich_linux_macros.o DPTich_linux_ieee.o  \
+        $(SOUND)/DPSample.o $(SOUND)/DPResample.o $(SOUND)/DPMixPlay.o \
+        DPCrossButton.o
+
+.c.o:
+	$(CC) $(CCFLAGS) -c $*.c -o $*.o
+
+.cc.o:
+	$(CXX) $(CCFLAGS) -c $*.cc -o $*.o
+
+all: $(PROGS)
+
+DAP: $(OBJS)
+	$(CXX) $(OBJS) -o DAP $(LDFLAGS) 
+
+clean:
+	-rm -f $(OBJS) core
+
+empty:
+	-rm -f $(OBJS) $(PROGS) core
+
+back:
+	"cp" *.c $(BACKDIR)
+	"cp" *.cc $(BACKDIR)
+	"cp" *.h $(BACKDIR)
+	"cp" *.fd $(BACKDIR)
+	"cp" icons/*.gif $(BACKDIR)/icons
+	"cp" icons/*.xpm $(BACKDIR)/icons
+	"cp" Makefile.* $(BACKDIR)
+	lha a $(HOMEDIR)/tich3.lzh *.c *.cc *.h *.fd icons/*.gif icons/*.xpm \
+	Makefile.*
+
+restore:
+	lha x $(HOMEDIR)/tich3.lzh
+
+print:
+	a2ps \
+	DPTich_main.h \
+	DPTich_main.cc \
+	DPTich_prefs.h \
+	DPTich_prefs.cc \
+	DPTich_macros.h \
+	DPTich_macros.cc \
+	DPTich_cb.h \
+	DPTich_cb.cc \
+	DPTich_edit_cb.cc \
+	DPTich_effect_cb.cc \
+	DPTich_effect.h \
+	DPTich_DSP.h \
+	DPTich_DSP.cc \
+	DPTich_linux_macros.h \
+	DPTich_linux_macros.c \
+	DPTich_linux_audio.h \
+	DPTich_linux_audio.c \
+	DPTich_linux_audiofile.h \
+	DPTich_linux_audiofile.c \
+	DPTich_linux_ieee.h \
+	DPTich_linux_ieee.c \
+	DPSampleXforms.h \
+	DPSampleXforms.cc \
+	DPCrossButton.h \
+	DPCrossButton.c \
+	DPTich.h \
+	DPTich.c \
+	Makefile.* \
+	>$(HOMEDIR)/tich3.ps
--- main/DPTich_linux_audio.h.orig	Wed Sep 16 18:40:00 1998
+++ main/DPTich_linux_audio.h	Wed Sep 16 18:43:04 1998
@@ -23,7 +23,11 @@
 #define _DPTich_linux_audio_h
 
 #include <stdio.h>
+#ifdef	__FreeBSD__
+#include <stdio.h>
+#else
 #include <malloc.h>
+#endif
 #include <unistd.h>
 #include <fcntl.h>
 #include <limits.h>
@@ -31,7 +35,11 @@
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <sys/ioctl.h>
+#ifdef	__FreeBSD__
+#include <machine/soundcard.h>
+#else
 #include <sys/soundcard.h>
+#endif
 
 #ifdef __cplusplus
 extern "C"