--- Makefile.orig Sat Mar 7 05:45:21 1998 +++ Makefile Sat Mar 7 05:47:52 1998 @@ -25,8 +25,8 @@ # ############################################################################ -OSDEF=-DOSS -CC = gcc +#OSDEF=-DOSS +#CC = gcc # if you want to use the Ultra driver uncomment the 3 lines below. # You need a Gravis Ultrasound and the library from the Linux Ultrasound @@ -35,12 +35,25 @@ #ULTRALIB=-lgus #ULTRADRV=drv_ultra.o -OSFLAGS = -O2 $(OSDEF) $(ULTRA) +#OSFLAGS = -O2 $(OSDEF) $(ULTRA) #debug options #OSFLAGS = -g $(OSDEF) $(ULTRA) -LIBS=-lncurses -lm $(ULTRALIB) -DRIVERS = drv_nos.o drv_raw.o drv_vox.o $(ULTRADRV) +#LIBS=-lncurses -lm $(ULTRALIB) +#DRIVERS = drv_nos.o drv_raw.o drv_vox.o $(ULTRADRV) + +############################################################################ +# +# NetBSD definitions +# +# for output on the Sun-like audio device (/dev/audio) +# +############################################################################ + +CC = cc +OSFLAGS = -O2 -I${PREFIX}/include +LIBS = -L${PREFIX}/lib -lncurses -lm +DRIVERS = drv_nos.o drv_raw.o drv_sun.o ############################################################################ # --- mikmod.h.orig Sun Dec 29 13:46:39 1996 +++ mikmod.h Sat Mar 7 05:49:57 1998 @@ -59,11 +59,15 @@ #elif defined(SUN) #define mikbannerdriver \ -" - Sun/Solaris driver by Valtteri Vuorikoski \n" +" - Sun/Solaris/NetBSD driver by Valtteri Vuorikoski \n" #elif defined(SOLARIS) #define mikbannerdriver \ -" - Sun/Solaris driver by Valtteri Vuorikoski \n" +" - Sun/Solaris/NetBSD driver by Valtteri Vuorikoski \n" + +#elif defined(__NetBSD__) +#define mikbannerdriver \ +" - Sun/Solaris/NetBSD driver by Valtteri Vuorikoski \n" #elif defined(__alpha) #define mikbannerdriver \ --- mikmodux.c.orig Mon Dec 16 19:31:16 1996 +++ mikmodux.c Sat Mar 7 05:45:21 1998 @@ -199,6 +199,8 @@ MD_RegisterDriver(&drv_sun); #elif defined(SOLARIS) MD_RegisterDriver(&drv_sun); +#elif defined(__NetBSD__) + MD_RegisterDriver(&drv_sun); #elif defined(__alpha) MD_RegisterDriver(&drv_AF); #elif defined(OSS)