diff options
author | minskim <minskim@pkgsrc.org> | 2004-07-10 16:33:01 +0000 |
---|---|---|
committer | minskim <minskim@pkgsrc.org> | 2004-07-10 16:33:01 +0000 |
commit | 4de62a39877c93faa0a716340dc9466e04d1fbd3 (patch) | |
tree | d85a2379df96bf263c2a53310f50fada19eba16b /audio/tracker/patches | |
parent | 0b09ceddfa4ddbc0e9686ed8a4f517cbb2907e7c (diff) | |
download | pkgsrc-4de62a39877c93faa0a716340dc9466e04d1fbd3.tar.gz |
Make this package build on non-NetBSD platforms by using variables
defined on ossaudio.buildlink3.mk.
Diffstat (limited to 'audio/tracker/patches')
-rw-r--r-- | audio/tracker/patches/patch-aa | 19 | ||||
-rw-r--r-- | audio/tracker/patches/patch-ad | 23 |
2 files changed, 17 insertions, 25 deletions
diff --git a/audio/tracker/patches/patch-aa b/audio/tracker/patches/patch-aa index 5e9311c9b1a..7693399d532 100644 --- a/audio/tracker/patches/patch-aa +++ b/audio/tracker/patches/patch-aa @@ -1,6 +1,6 @@ -$NetBSD: patch-aa,v 1.4 2004/07/10 16:11:59 minskim Exp $ +$NetBSD: patch-aa,v 1.5 2004/07/10 16:33:01 minskim Exp $ ---- Makefile.orig 2004-07-10 11:05:04.000000000 -0500 +--- Makefile.orig 1996-05-07 10:20:50.000000000 -0500 +++ Makefile @@ -20,7 +20,7 @@ CC = gcc @@ -25,7 +25,7 @@ $NetBSD: patch-aa,v 1.4 2004/07/10 16:11:59 minskim Exp $ SHELL_freebsd = /bin/sh +CFLAGS_netbsd = -O2 -funroll-loops -finline-functions -+LIBS_netbsd = -lm -lossaudio ++LIBS_netbsd = -lm +AUDIODIR_netbsd=PCux/ +CONFIG_netbsd = PCux/netbsd_ +O_netbsd = .o @@ -36,6 +36,18 @@ $NetBSD: patch-aa,v 1.4 2004/07/10 16:11:59 minskim Exp $ 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 @@ -57,4 +69,3 @@ $NetBSD: patch-aa,v 1.4 2004/07/10 16:11:59 minskim Exp $ # no manpage available, use the texinfo manual. install.man: -- diff --git a/audio/tracker/patches/patch-ad b/audio/tracker/patches/patch-ad index 64239bb9758..aea6e6dd452 100644 --- a/audio/tracker/patches/patch-ad +++ b/audio/tracker/patches/patch-ad @@ -1,32 +1,13 @@ -$NetBSD: patch-ad,v 1.3 2004/07/10 16:11:59 minskim Exp $ +$NetBSD: patch-ad,v 1.4 2004/07/10 16:33:01 minskim Exp $ --- ../../work/tracker/Arch/PCux/audio.c.orig 2004-07-10 11:05:07.000000000 -0500 +++ ../../work/tracker/Arch/PCux/audio.c -@@ -28,10 +28,18 @@ struct options_set *port_options=0; - #include "/usr/src/linux/drivers/sound/soundcard.h" - #else - #ifndef __FreeBSD__ -+#ifdef __NetBSD__ -+#include <sys/ioctl.h> -+#include <soundcard.h> -+#define DEV "/dev/audio" -+#else - /* This should be sys/soundcard.h */ - #include <sys/soundcard.h> -+#define DEV "/dev/dsp" -+#endif - #else - #include <machine/soundcard.h> -+#define DEV "/dev/dsp" - #endif - #endif - @@ -53,7 +61,7 @@ unsigned long open_audio(unsigned long f int buf_max; unsigned long possible, current; - audio = open("/dev/dsp", O_WRONLY, 0); -+ audio = open(DEV, O_WRONLY, 0); ++ audio = open(DEVOSSAUDIO, O_WRONLY, 0); if (audio == -1) end_all("Error opening audio device"); |