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
|
--- Makefile.orig Sun May 26 10:26:46 1996
+++ Makefile Mon Jan 26 16:54:39 1998
@@ -24,22 +24,23 @@
# But where to change without revealing my secret identity?
########### Compiler and flags.
-CC = gcc
-DEBUGFLAGS = -Wall -O2
+#CC = gcc
+DEBUGFLAGS = -Wall
########### Install.
-INSTALL = /usr/bin/install
+#INSTALL = /usr/bin/install
+INSTALL= install -c
# Where to install the executable
-BIN_DIR = /usr/local/bin
+BIN_DIR = ${PREFIX}/bin
# Where to install the manual pages
-MAN_DIR = /usr/local/man/man1
+MAN_DIR = ${PREFIX}/man/man1
# Where to install the patches, config files, and MIDI files.
# If you change this, it's a good idea to recompile the binary,
# or you'll need to invoke timidity with the -L option.
-TIMID_DIR = /usr/local/lib/timidity
+TIMID_DIR = ${PREFIX}/lib/timidity
# Where to install the Tcl code, if you use the Tcl code that is.
TCL_DIR = $(TIMID_DIR)
@@ -93,8 +94,8 @@
# Select the ncurses full-screen interface
SYSTEM += -DIA_NCURSES
SYSEXTRAS += ncurs_c.c
-EXTRAINCS += -I/usr/include/ncurses
-EXTRALIBS += -lncurses
+EXTRAINCS += -I${PREFIX}/include
+EXTRALIBS += -L${PREFIX}/lib -lncurses -lossaudio
## Select the S-Lang full-screen interface
#SYSTEM += -DIA_SLANG
@@ -112,9 +113,9 @@
#EXTRALIBS += -lgen
# Select the Tcl/Tk interface
-SYSTEM += -DTCLTK -DWISH=\"wishx\" -DTKPROGPATH=\"$(TCL_DIR)/tkmidity.tcl\"
-SYSEXTRAS += tk_c.c
-INST_TK = install.tk
+#SYSTEM += -DTCLTK -DWISH=\"wishx\" -DTKPROGPATH=\"$(TCL_DIR)/tkmidity.tcl\"
+#SYSEXTRAS += tk_c.c
+#INST_TK = install.tk
#EXTRAINCS +=
#EXTRALIBS +=
@@ -136,7 +137,7 @@
SDIST = timidity-lib-$(SUPPVERSION).tar.gz
SDISTZIP = tilib$(FNSUPPVERSION).zip
-CFLAGS= $(DEBUGFLAGS) -DDEFAULT_PATH=\"$(TIMID_DIR)\" \
+CFLAGS+= $(DEBUGFLAGS) -DDEFAULT_PATH=\"$(TIMID_DIR)\" \
-DTIMID_VERSION=\"$(VERSION)\" $(SYSTEM) $(EXTRAINCS)
########### All relevant files.. Anybody know autoconf?
@@ -228,10 +229,10 @@
wav2pat: wav2pat.c
$(CC) $(CFLAGS) -o wav2pat wav2pat.c
-depends depend dep:
- $(CC) $(CFLAGS) -MM $(CSRCS) $(OPTSRCS) $(TOOLSRCS) > depends
-
-include depends
+#depends depend dep:
+# $(CC) $(CFLAGS) -MM $(CSRCS) $(OPTSRCS) $(TOOLSRCS) > depends
+#
+#include depends
########### Installation targets
@@ -262,9 +263,9 @@
mkdir -p $(TIMID_DIR)
$(INSTALL) -m 644 $(CONFIGF) $(TIMID_DIR)
-install.patch: $(PATCHF)
+install.patch: #$(PATCHF)
mkdir -p $(TIMID_DIR)/patch
- $(INSTALL) -m 644 $(PATCHF) $(TIMID_DIR)/patch
+# $(INSTALL) -m 644 $(PATCHF) $(TIMID_DIR)/patch
install.tk: $(ALLTCLF)
$(INSTALL) -m 644 $(ALLTCLF) $(TCL_DIR)
|