openbsd-ports/audio/timidity/patches/patch-Makefile
espie 28c6caad60 Fix motif interface (missed -LXext)
Flavorize (slang and curses interface... curses non-functional currently).
2001-07-06 08:05:28 +00:00

136 lines
3.8 KiB
Plaintext

$OpenBSD: patch-Makefile,v 1.2 2001/07/06 08:05:29 espie Exp $
--- Makefile.orig Sun May 26 11:26:46 1996
+++ Makefile Fri Jul 6 08:53:41 2001
@@ -24,22 +24,22 @@
# 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
# Where to install the executable
-BIN_DIR = /usr/local/bin
+BIN_DIR = ${DESTDIR}${PREFIX}/bin
# Where to install the manual pages
-MAN_DIR = /usr/local/man/man1
+MAN_DIR = ${DESTDIR}${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 = ${DESTDIR}${PREFIX}/lib/timidity
# Where to install the Tcl code, if you use the Tcl code that is.
TCL_DIR = $(TIMID_DIR)
@@ -59,6 +59,10 @@ SYSEXTRAS += linux_a.c
#EXTRAINCS +=
#EXTRALIBS +=
+#if defined(__OpenBSD__) || defined(__NetBSD__)
+EXTRALIBS += -lossaudio
+#endif
+
## Select the HP-UX network audio server
#SYSTEM += -DHPUX -DAU_HPUX
#SYSEXTRAS += hpux_a.c
@@ -90,31 +94,37 @@ SYSEXTRAS += linux_a.c
# have to make do with a non-interactive interface that just prints out
# messages.
+.if defined(CURSES)
# Select the ncurses full-screen interface
SYSTEM += -DIA_NCURSES
SYSEXTRAS += ncurs_c.c
-EXTRAINCS += -I/usr/include/ncurses
-EXTRALIBS += -lncurses
+EXTRALIBS += -lcurses
+.endif
+.if defined(SLANG)
## Select the S-Lang full-screen interface
-#SYSTEM += -DIA_SLANG
-#SYSEXTRAS += slang_c.c
-#EXTRAINCS += -I/usr/include/slang
-#EXTRALIBS += -lslang
-
-## Select the MOTIF interface
-#SYSTEM += -DMOTIF
-#SYSEXTRAS += motif_c.c motif_i.c motif_p.c
-#EXTRAINCS += -I/usr/local/X11R5/include -L/usr/local/X11R5/lib
-#EXTRAINCS += -I/usr/include/X11
-#EXTRALIBS += -lXm -lXt -lX11
-## Solaris needs libgen?
+SYSTEM += -DIA_SLANG
+SYSEXTRAS += slang_c.c
+EXTRAINCS += -I/usr/local/include
+EXTRALIBS += -L/usr/local/lib -lslang -lcurses
+.endif
+
+.if defined(MOTIF)
+# Select the MOTIF interface
+SYSTEM += -DMOTIF
+SYSEXTRAS += motif_c.c motif_i.c motif_p.c
+EXTRAINCS += -I/usr/local/include -L/usr/local/lib
+EXTRAINCS += -I/usr/X11R6/include -L/usr/X11R6/lib
+EXTRALIBS += -lXm -lXext -lXt -lX11
+.endif
+
+# Solaris needs libgen?
#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 +146,7 @@ DISTZIP = timid$(FNVERSION).zip
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 +238,10 @@ bag: bag.c
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 +272,9 @@ install.config: $(CONFIGF)
mkdir -p $(TIMID_DIR)
$(INSTALL) -m 644 $(CONFIGF) $(TIMID_DIR)
-install.patch: $(PATCHF)
- mkdir -p $(TIMID_DIR)/patch
- $(INSTALL) -m 644 $(PATCHF) $(TIMID_DIR)/patch
+install.patch: #$(PATCHF)
+# mkdir -p $(TIMID_DIR)/patch
+# $(INSTALL) -m 644 $(PATCHF) $(TIMID_DIR)/patch
install.tk: $(ALLTCLF)
$(INSTALL) -m 644 $(ALLTCLF) $(TCL_DIR)