pkgsrc/audio/tracker/patches/patch-aa
2004-07-10 16:33:01 +00:00

71 lines
2.1 KiB
Text

$NetBSD: patch-aa,v 1.5 2004/07/10 16:33:01 minskim Exp $
--- Makefile.orig 1996-05-07 10:20:50.000000000 -0500
+++ Makefile
@@ -20,7 +20,7 @@ CC = gcc
OPTS=-c
-PREFIX=/users/algo/espie/pub
+PREFIX?=/users/algo/espie/pub
# Destination directory for tracker binaries and manpage.
#
# If you don't wish to use the 'make install' and 'make install.man'
@@ -166,7 +166,7 @@ EXE_linux =
UI_linux = Unix/
SHELL_linux = /bin/sh
-CFLAGS_freebsd = -O2 -funroll-loops -finline-functions -fno-strength-reduce
+CFLAGS_freebsd = -O2 -funroll-loops -finline-functions
LIBS_freebsd = -lm
AUDIODIR_freebsd=PCux/
CONFIG_freebsd = PCux/freebsd_
@@ -175,6 +175,15 @@ EXE_freebsd =
UI_freebsd = Unix/
SHELL_freebsd = /bin/sh
+CFLAGS_netbsd = -O2 -funroll-loops -finline-functions
+LIBS_netbsd = -lm
+AUDIODIR_netbsd=PCux/
+CONFIG_netbsd = PCux/netbsd_
+O_netbsd = .o
+EXE_netbsd =
+UI_netbsd = Unix/
+SHELL_netbsd = /bin/sh
+
CFLAGS_aix = -O
LIBS_aix = -lm
AUDIODIR_aix = Aix/
@@ -220,9 +229,9 @@ EXE_sbos2 = .exe
UI_sbos2 = OS2/./
SHELL_sbos2 = /bin/sh
-CFLAGS = $(CFLAGS_${MACHINE})
+CFLAGS = $(CFLAGS_${MACHINE}) -DDEVOSSAUDIO=\"${DEVOSSAUDIO}\"
COPTS = $(OPTS) $(CFLAGS)
-LIBS = $(LIBS_${MACHINE})
+LIBS = $(LIBS_${MACHINE}) ${LIBOSSAUDIO}
CONFIG = Arch/$(CONFIG_${MACHINE})
AUDIODIR = Arch/$(AUDIODIR_${MACHINE})
AUDIONAME = $(AUDIONAME_${MACHINE})
@@ -250,7 +259,7 @@ OBJ_SPLITMOD = split$O time$O st_read$O
display$O prefs$O autoinit$O $(UI)ui$O empty$O color$O version$O \
st_virt$O automaton$O
-all: tracker${EXE} randomize${EXE} splitmod${EXE} Docs/tracker.text
+all: tracker${EXE} randomize${EXE}
config.h: $(CONFIG)config.h
rm -f config.h
@@ -272,9 +281,8 @@ version.c: Makefile
install:
$(INSTALL) $(INST_BIN_OPT) tracker $(BIN_DIR)
$(INSTALL) $(INST_BIN_OPT) randomize $(BIN_DIR)
- $(INSTALL) $(INST_BIN_OPT) splitmod $(BIN_DIR)
- [ -f ${COMPRESSION_FILE} ] || \
- $(INSTALL) $(INST_MAN_OPT) compression_methods ${COMPRESSION_FILE}
+ [ -f ${COMPRESSION_FILE_EG} ] || \
+ $(INSTALL) $(INST_MAN_OPT) Lib/compression_methods ${COMPRESSION_FILE_EG}
# no manpage available, use the texinfo manual.
install.man: