From c8be45380b1f166bf4a8cd01f70cedc27b9ceb6c Mon Sep 17 00:00:00 2001 From: augustss Date: Wed, 29 Oct 1997 00:34:33 +0000 Subject: Change RCS id. NetBSD port. --- audio/timidity/Makefile | 5 ++- audio/timidity/patches/patch-ae | 90 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 94 insertions(+), 1 deletion(-) create mode 100644 audio/timidity/patches/patch-ae diff --git a/audio/timidity/Makefile b/audio/timidity/Makefile index a3685eb2c52..7dc03712fa6 100644 --- a/audio/timidity/Makefile +++ b/audio/timidity/Makefile @@ -4,7 +4,8 @@ # Date created: 17 Nov 1996 # Whom: ache # -# $Id: Makefile,v 1.1.1.1 1997/10/28 23:19:06 augustss Exp $ +# $NetBSD: Makefile,v 1.2 1997/10/29 00:34:33 augustss Exp $ +# FreeBSD Id: Makefile,v 1.5 1997/09/07 22:08:13 ache Exp # DISTNAME= timidity-0.2i @@ -14,11 +15,13 @@ MASTER_SITES= ftp://ftp.cdrom.com/pub/demos/music/samples/ \ TIINS= dgguspat.zip DISTFILES= ${TIINS} ${DISTNAME}.tar.gz +# FreeBSD maintainer MAINTAINER= ache@FreeBSD.ORG NO_CDROM= "Uses copyrighted patches" BUILD_DEPENDS= unzip:${PORTSDIR}/archivers/unzip +BUILD_DEPENDS+= ${PREFIX}/lib/libncurses.a:${PORTSDIR}/devel/ncurses EXTRACT_ONLY= ${DISTNAME}.tar.gz INSTALL_TARGET= install.all diff --git a/audio/timidity/patches/patch-ae b/audio/timidity/patches/patch-ae new file mode 100644 index 00000000000..ec43ba135c4 --- /dev/null +++ b/audio/timidity/patches/patch-ae @@ -0,0 +1,90 @@ +diff -u ../../work/timidity-0.2i/Makefile ./Makefile +--- ../../work/timidity-0.2i/Makefile Wed Oct 29 01:16:48 1997 ++++ ./Makefile Tue Oct 28 09:10:22 1997 +@@ -56,8 +56,8 @@ + # Select the Linux/FreeBSD audio driver + SYSTEM += -DAU_LINUX + SYSEXTRAS += linux_a.c +-#EXTRAINCS += +-#EXTRALIBS += ++EXTRAINCS += -I${PREFIX}/include ++EXTRALIBS += -L${PREFIX}/lib -lossaudio + + ## Select the HP-UX network audio server + #SYSTEM += -DHPUX -DAU_HPUX +@@ -94,7 +94,7 @@ + SYSTEM += -DIA_NCURSES + SYSEXTRAS += ncurs_c.c + #EXTRAINCS += -I/usr/include/ncurses +-EXTRALIBS += -lncurses -lmytinfo ++EXTRALIBS += -lncurses + + ## Select the S-Lang full-screen interface + #SYSTEM += -DIA_SLANG +diff -u ../../work/timidity-0.2i/config.h ./config.h +--- ../../work/timidity-0.2i/config.h Wed Oct 29 01:16:48 1997 ++++ ./config.h Sun Oct 26 13:55:33 1997 +@@ -185,6 +185,12 @@ + fragments under the VoxWare (Linux & FreeBSD) audio driver */ + #define AUDIO_BUFFER_SIZE (1< ++#undef FSCALE ++#endif ++ ++ + /* Byte order, defined in for FreeBSD and DEC OSF/1 */ + #ifdef DEC + #include +@@ -217,7 +223,7 @@ + # endif + #endif /* linux */ + +-#ifdef __FreeBSD__ ++#if (defined(BSD) && (BSD >= 199306)) + #include + #include + #if BYTE_ORDER == LITTLE_ENDIAN +diff -u ../../work/timidity-0.2i/linux_a.c ./linux_a.c +--- ../../work/timidity-0.2i/linux_a.c Mon May 20 15:09:46 1996 ++++ ./linux_a.c Wed Oct 29 01:09:19 1997 +@@ -32,6 +32,16 @@ + #include + #endif + ++#ifdef __NetBSD__ ++#include ++#include ++#undef EINTR ++#define EINTR EWOULDBLOCK ++#define DEV "/dev/audio" ++#else ++#define DEV "/dev/dsp" ++#endif ++ + #ifdef __FreeBSD__ + #include + #include +@@ -56,7 +66,7 @@ + -1, + {0}, /* default: get all the buffer fragments you can */ + "Linux dsp device", 'd', +- "/dev/dsp", ++ DEV, + open_output, + close_output, + output_data, +@@ -220,10 +230,10 @@ + + static void flush_output(void) + { +- ioctl(dpm.fd, SNDCTL_DSP_SYNC); ++ ioctl(dpm.fd, SNDCTL_DSP_SYNC, 0); + } + + static void purge_output(void) + { +- ioctl(dpm.fd, SNDCTL_DSP_RESET); ++ ioctl(dpm.fd, SNDCTL_DSP_RESET, 0); + } -- cgit v1.2.3