From 37d61ca65996777b3430ebaec18a21708f51df33 Mon Sep 17 00:00:00 2001 From: hubertf Date: Sat, 21 Feb 1998 22:43:46 +0000 Subject: Audio player/recorder/editor for the X Window System. --- audio/xwave/Makefile | 26 ++++++ audio/xwave/files/md5 | 1 + audio/xwave/patches/patch-aa | 11 +++ audio/xwave/patches/patch-ab | 11 +++ audio/xwave/patches/patch-ac | 11 +++ audio/xwave/patches/patch-ad | 183 +++++++++++++++++++++++++++++++++++++++++++ audio/xwave/patches/patch-ae | 11 +++ audio/xwave/patches/patch-af | 20 +++++ audio/xwave/patches/patch-ag | 11 +++ audio/xwave/patches/patch-ah | 11 +++ audio/xwave/patches/patch-ai | 11 +++ audio/xwave/patches/patch-aj | 11 +++ audio/xwave/patches/patch-ak | 55 +++++++++++++ audio/xwave/patches/patch-al | 12 +++ audio/xwave/patches/patch-am | 11 +++ audio/xwave/patches/patch-an | 22 ++++++ audio/xwave/pkg/COMMENT | 1 + audio/xwave/pkg/DESCR | 36 +++++++++ audio/xwave/pkg/PLIST | 3 + 19 files changed, 458 insertions(+) create mode 100644 audio/xwave/Makefile create mode 100644 audio/xwave/files/md5 create mode 100644 audio/xwave/patches/patch-aa create mode 100644 audio/xwave/patches/patch-ab create mode 100644 audio/xwave/patches/patch-ac create mode 100644 audio/xwave/patches/patch-ad create mode 100644 audio/xwave/patches/patch-ae create mode 100644 audio/xwave/patches/patch-af create mode 100644 audio/xwave/patches/patch-ag create mode 100644 audio/xwave/patches/patch-ah create mode 100644 audio/xwave/patches/patch-ai create mode 100644 audio/xwave/patches/patch-aj create mode 100644 audio/xwave/patches/patch-ak create mode 100644 audio/xwave/patches/patch-al create mode 100644 audio/xwave/patches/patch-am create mode 100644 audio/xwave/patches/patch-an create mode 100644 audio/xwave/pkg/COMMENT create mode 100644 audio/xwave/pkg/DESCR create mode 100644 audio/xwave/pkg/PLIST (limited to 'audio/xwave') diff --git a/audio/xwave/Makefile b/audio/xwave/Makefile new file mode 100644 index 00000000000..a8791c32081 --- /dev/null +++ b/audio/xwave/Makefile @@ -0,0 +1,26 @@ +# New ports collection makefile for: xwave +# Version required: 0.6 +# Date created: 1998-02-21 +# Whom: hubertf@netbsd.org +# +# $NetBSD: Makefile,v 1.1 1998/02/21 22:43:46 hubertf Exp $ +# + +DISTNAME= xwave-0.6 +WRKSRC= ${WRKDIR}/xwave +CATEGORIES= audio +MASTER_SITES= ${MASTER_SITE_SUNSITE} +MASTER_SITE_SUBDIR= apps/sound/editors + +MAINTAINER= hubertf@netbsd.org + +USE_IMAKE= yes + +# XXX This line can be removed if NetBSD >1.3.1 is out - HF +XMKMF= ${SETENV} ${MAKE_ENV} xmkmf -a + +post-patch: + cd ${WRKSRC} ; ${MV} src/XWave src/XWave.ad + cd ${WRKSRC} ; ${TOUCH} src/xwave.man + +.include diff --git a/audio/xwave/files/md5 b/audio/xwave/files/md5 new file mode 100644 index 00000000000..29cb648f4a3 --- /dev/null +++ b/audio/xwave/files/md5 @@ -0,0 +1 @@ +MD5 (xwave-0.6.tar.gz) = c0b062bfc444dc437aedeaa699a381e7 diff --git a/audio/xwave/patches/patch-aa b/audio/xwave/patches/patch-aa new file mode 100644 index 00000000000..eea44cea30d --- /dev/null +++ b/audio/xwave/patches/patch-aa @@ -0,0 +1,11 @@ +--- orig/xwave/src/XWave Tue Nov 19 13:25:36 1996 ++++ src/XWave Fri Feb 20 20:13:48 1998 +@@ -2,7 +2,7 @@ + + XWave*wdir: /usr/share/data/sounds/prosonus + XWave*tdir: /tmp +-XWave*device: /dev/dsp ++XWave*device: /dev/audio + XWave*maxmem: 1000 + XWave*doubleplay: False + XWave*raisecanvas: False diff --git a/audio/xwave/patches/patch-ab b/audio/xwave/patches/patch-ab new file mode 100644 index 00000000000..1d7be9e9a9d --- /dev/null +++ b/audio/xwave/patches/patch-ab @@ -0,0 +1,11 @@ +--- orig/xwave/src/aifc.c Mon Nov 25 13:30:37 1996 ++++ src/aifc.c Sat Sep 13 04:18:47 1997 +@@ -9,7 +9,7 @@ + + #ifdef linux + #include +-#elif defined (FreeBSD) ++#elif defined (FreeBSD) || defined(__NetBSD__) + #include + #elif defined (sgi) + #include diff --git a/audio/xwave/patches/patch-ac b/audio/xwave/patches/patch-ac new file mode 100644 index 00000000000..ce090f44e75 --- /dev/null +++ b/audio/xwave/patches/patch-ac @@ -0,0 +1,11 @@ +--- orig/xwave/src/au.c Mon Nov 25 13:32:18 1996 ++++ src/au.c Sat Sep 13 04:18:56 1997 +@@ -32,7 +32,7 @@ + + #ifdef linux + #include +-#elif defined (FreeBSD) ++#elif defined (FreeBSD) || defined(__NetBSD__) + #include + #elif defined (sgi) + #include diff --git a/audio/xwave/patches/patch-ad b/audio/xwave/patches/patch-ad new file mode 100644 index 00000000000..2d2b1bca453 --- /dev/null +++ b/audio/xwave/patches/patch-ad @@ -0,0 +1,183 @@ +--- orig/xwave/src/audio.c Tue Nov 26 11:13:44 1996 ++++ src/audio.c Fri Feb 20 23:46:06 1998 +@@ -40,6 +40,9 @@ + #elif defined(FreeBSD) + #include + ++#elif defined(__NetBSD__) ++#include ++ + #elif defined(sgi) + #include + +@@ -55,7 +58,7 @@ + #include "sample_settings.h" + #include "audio.h" + +-#if defined(linux) || defined (FreeBSD) || defined(sun) ++#if defined(linux) || defined (FreeBSD) || defined(sun) || defined(__NetBSD__) + static int set_dsp(int o_mode,int res,int channels,int freq,int *buf_size); + #endif + +@@ -67,7 +70,7 @@ + static Audio_File af; + static int stop_record; + +-#if defined (linux) || defined (FreeBSD) ++#if defined (linux) || defined (FreeBSD) || defined(__NetBSD__) + int set_dsp(int o_mode,int res, int channels, int freq, int *buf_size) + { + int check; +@@ -274,7 +277,7 @@ + } + #endif + +-#ifdef sun ++#if defined(sun) + void check_audio(Main_Bool *mb) + /* test if there is a play device, and how fast we can play */ + { +@@ -307,7 +310,7 @@ + case AUDIO_ENCODING_LINEAR: + printf("ULAW\n");break; + default: +- printf("unknown encoding\n"); ++ printf("unknown encoding: %d\n",au_info.play.encoding); + } + close(audio); + } else { +@@ -370,7 +373,7 @@ + + void play_file(char *fname,Main_Bool *mb) + { +-#if defined (linux) || defined (FreeBSD) || defined (sun) ++#if defined (linux) || defined (FreeBSD) || defined (sun) || defined(__NetBSD__) + int audio; + #elif defined(sgi) + ALport port; +@@ -384,7 +387,7 @@ + return; + } + +-#if defined (linux) || defined (FreeBSD) || defined (sun) ++#if defined (linux) || defined (FreeBSD) || defined (sun) || defined(__NetBSD__) + if ((audio=set_dsp(O_WRONLY,af.bps,af.channels,af.freq,&buf_size))==-1) { + fprintf(stderr,"XWave: Error ! Cannot set dsp !\n"); + close(af.fd); +@@ -404,7 +407,7 @@ + if ((buffer=malloc(buf_size))==NULL) { + fprintf(stderr,"XWave: Error ! Cannot alloc mem !\n"); + close(af.fd); +-#if defined (linux) || defined (FreeBSD) || defined (sun) ++#if defined (linux) || defined (FreeBSD) || defined (sun) || defined(__NetBSD__) + close(audio); + #elif defined(sgi) + ALcloseport(port); +@@ -413,7 +416,7 @@ + return; + } + +-#if defined (linux) || defined (FreeBSD) || defined (sun) ++#if defined (linux) || defined (FreeBSD) || defined (sun) || defined(__NetBSD__) + while ((length=af_read(af,buffer,buf_size))>0) { + if (write(audio, buffer, length)==-1) break; + } +@@ -440,7 +443,7 @@ + int offset=0,playlength,length; + #ifdef sgi + ALport port; +-#elif defined(linux) || defined (FreeBSD) || defined (sun) ++#elif defined(linux) || defined (FreeBSD) || defined (sun) || defined(__NetBSD__) + int audio; + + if ((audio=set_dsp(O_WRONLY,wd->res,wd->channels,wd->freq,&buf_size))==-1) { +@@ -473,7 +476,7 @@ + buffer=wd->buffer+offset; + while (playlength>0) { + if (playlength0) { + if (playlengthmg->fbuf,buf_size))==-1) { +-#if defined (linux) || defined (FreeBSD) || defined (sun) ++#if defined (linux) || defined (FreeBSD) || defined (sun) || defined(__NetBSD__) + close(audio); + #elif defined(sgi) + ALcloseport(port); +@@ -518,7 +521,7 @@ + kill((pid_t) getppid(),SIGUSR1); + return; + } +-#if defined (linux) || defined (FreeBSD) || defined (sun) ++#if defined (linux) || defined (FreeBSD) || defined (sun) || defined(__NetBSD__) + if (write(audio,(char*) md->mg->fbuf,length)==-1) { + close(audio); + kill((pid_t) getppid(),SIGUSR1); +@@ -536,7 +539,7 @@ + } + } + +-#if defined (linux) || defined (FreeBSD) || defined (sun) ++#if defined (linux) || defined (FreeBSD) || defined (sun) || defined(__NetBSD__) + close(audio); + #elif defined(sgi) + while (ALgetfilled(port)) sginap(2); +@@ -556,7 +559,7 @@ + void write_length(); + byte *data=NULL; + int abuf_size,count; +-#if defined (linux) || defined (FreeBSD) || defined (sun) ++#if defined (linux) || defined (FreeBSD) || defined (sun) || defined(__NetBSD__) + int audio; + + if ((audio=set_dsp(O_RDONLY,res,mode,freq,&abuf_size))==-1) { +@@ -577,7 +580,7 @@ + + if ((data = (byte *) malloc(abuf_size)) == NULL) { + fprintf(stderr,"XWave: Error while alloc mem for audio_buffer !\n"); +-#if defined (linux) || defined (FreeBSD) || defined (sun) ++#if defined (linux) || defined (FreeBSD) || defined (sun) || defined(__NetBSD__) + close(audio); + #elif defined(sgi) + ALcloseport(port); +@@ -595,7 +598,7 @@ + + if (af_open(fname,&af,AF_NEW)==AF_ERROR) { + free(data); +-#if defined (linux) || defined (FreeBSD) || defined (sun) ++#if defined (linux) || defined (FreeBSD) || defined (sun) || defined(__NetBSD__) + close(audio); + #elif defined(sgi) + ALcloseport(port); +@@ -608,7 +611,7 @@ + signal(SIGUSR1,write_length); + + while(1) { +-#if defined (linux) || defined (FreeBSD) || defined (sun) ++#if defined (linux) || defined (FreeBSD) || defined (sun) || defined(__NetBSD__) + if ((count=read(audio, data, abuf_size))==-1) { + close(audio); + af_close(af); +@@ -632,7 +635,7 @@ + return; + } + if ((count=af_write(af,(char*)data,count))==AF_ERROR) { +-#if defined (linux) || defined (FreeBSD) || defined (sun) ++#if defined (linux) || defined (FreeBSD) || defined (sun) || defined(__NetBSD__) + close(audio); + #elif defined(sgi) + ALcloseport(port); diff --git a/audio/xwave/patches/patch-ae b/audio/xwave/patches/patch-ae new file mode 100644 index 00000000000..61c1fc72240 --- /dev/null +++ b/audio/xwave/patches/patch-ae @@ -0,0 +1,11 @@ +--- orig/xwave/src/button.c Tue Nov 19 13:27:11 1996 ++++ src/button.c Sat Sep 13 04:19:49 1997 +@@ -521,7 +521,7 @@ + now_clock=clock(); + sample_time=(float)md->wd->tlength/(float)md->wd->freq; + +-#if defined(linux) || defined (FreeBSD) || defined(sun) ++#if defined(linux) || defined (FreeBSD) || defined(sun) || defined(__NetBSD__) + gone_time=(float)(now_clock-start_clock)/(float)CLOCKS_PER_SEC; + #elif defined(sgi) + gone_time=(float)(now_clock-start_clock)/(float)750000; diff --git a/audio/xwave/patches/patch-af b/audio/xwave/patches/patch-af new file mode 100644 index 00000000000..00f12b13f67 --- /dev/null +++ b/audio/xwave/patches/patch-af @@ -0,0 +1,20 @@ +--- orig/xwave/src/effects.c Tue Nov 19 15:57:27 1996 ++++ src/effects.c Sat Sep 13 04:21:24 1997 +@@ -350,7 +350,7 @@ + case 8: { + #if defined (linux) || defined (FreeBSD) + for (i=0;ilength;i++) newbuf[(i<<1)+1]=obuf[i]-128; +-#elif defined (sgi) || defined (sun) ++#elif defined (sgi) || defined (sun) || defined(__NetBSD__) + for (i=0;ilength;i++) newbuf[(i<<1)]=obuf[i]-128; + #endif + break; diff --git a/audio/xwave/patches/patch-ag b/audio/xwave/patches/patch-ag new file mode 100644 index 00000000000..d70352b1db3 --- /dev/null +++ b/audio/xwave/patches/patch-ag @@ -0,0 +1,11 @@ +--- orig/xwave/src/endian.h Mon Nov 25 13:25:15 1996 ++++ src/endian.h Sat Sep 13 04:22:54 1997 +@@ -16,7 +16,7 @@ + #define big_endian 1 + #endif + +-#elif defined (linux) || defined (sun) || defined (FreeBSD) ++#elif defined (linux) || defined (sun) || defined (FreeBSD) || defined(__NetBSD__) + + #if BYTE_ORDER==LITTLE_ENDIAN + #define little_endian 1 diff --git a/audio/xwave/patches/patch-ah b/audio/xwave/patches/patch-ah new file mode 100644 index 00000000000..97eb119f2c2 --- /dev/null +++ b/audio/xwave/patches/patch-ah @@ -0,0 +1,11 @@ +--- orig/xwave/src/graphics.c Mon Nov 25 13:33:43 1996 ++++ src/graphics.c Sat Sep 13 04:28:37 1997 +@@ -30,7 +30,7 @@ + + #ifdef linux + #include +-#elif defined (FreeBSD) ++#elif defined (FreeBSD) || defined(__NetBSD__) + #include + #elif defined (sgi) + #include diff --git a/audio/xwave/patches/patch-ai b/audio/xwave/patches/patch-ai new file mode 100644 index 00000000000..11cee175de7 --- /dev/null +++ b/audio/xwave/patches/patch-ai @@ -0,0 +1,11 @@ +--- orig/xwave/src/record_dialog.c Tue Nov 19 15:24:36 1996 ++++ src/record_dialog.c Sat Sep 13 04:28:58 1997 +@@ -498,7 +498,7 @@ + sprintf(MD->mw->messages,"%.2f kbytes (%.2fs)", + (float)playsize/1024,recordtime); + XtVaSetValues(label5,XtNlabel, MD->mw->messages, NULL); +-#if defined(linux)||defined(FreeBSD)||defined(sun) ++#if defined(linux)||defined(FreeBSD)||defined(sun) || defined(__NetBSD__) + usleep(80000); + #elif defined(sgi) + sginap(CLK_TCK/(ONE_SECOND/80000)); diff --git a/audio/xwave/patches/patch-aj b/audio/xwave/patches/patch-aj new file mode 100644 index 00000000000..a197963ac54 --- /dev/null +++ b/audio/xwave/patches/patch-aj @@ -0,0 +1,11 @@ +--- orig/xwave/src/riff.c Mon Nov 25 13:35:17 1996 ++++ src/riff.c Sat Sep 13 04:29:02 1997 +@@ -33,7 +33,7 @@ + + #ifdef linux + #include +-#elif defined (FreeBSD) ++#elif defined (FreeBSD) || defined(__NetBSD__) + #include + #elif defined (sgi) + #include diff --git a/audio/xwave/patches/patch-ak b/audio/xwave/patches/patch-ak new file mode 100644 index 00000000000..73d72e6a6cf --- /dev/null +++ b/audio/xwave/patches/patch-ak @@ -0,0 +1,55 @@ +--- FWF/FWF.rules.orig Mon Jan 29 18:55:22 1996 ++++ FWF/FWF.rules Sat Feb 21 20:45:05 1998 +@@ -23,9 +23,6 @@ + libdir/libname:: objlist @@\ + -@(if [ ! -f libdir/libname ]; then \ @@\ + $(MKDIRHIER) libdir ; \ @@\ +- echo Creating Library libdir/libname ; \ @@\ +- $(AR) libdir/libname ; \ @@\ +- RanLibrary(libdir/libname) ; \ @@\ + fi; exit 0) @@\ + @echo Adding objlist To Library libdir/libname @@\ + $(ARMERGE) libdir/libname objlist @@\ +@@ -44,16 +41,6 @@ + #endif /* FileCopyWhenNeeded */ + + /* +- * RequireThisFileForDepend(file) +- * +- */ +-#ifndef RequireThisFileForDepend +-#define RequireThisFileForDepend(file) @@\ +-depend:: file @@\ +- +-#endif /* RequireThisFileForDepend */ +- +-/* + * RequireThisFileForInit(file) + * + */ +@@ -244,18 +231,6 @@ + #endif /* ObjectRuleWithFlags */ + + /* +- * DependTargetWithFlags(flags,sources) +- * +- */ +-#ifndef DependTargetWithFlags +-#define DependTargetWithFlags(flags,sources) @@\ +-DependDependency() @@\ +- @@\ +-depend:: @@\ +- $(DEPEND) -s "# DO NOT DELETE" -- flags -- sources +-#endif /* DependTargetWithFlags */ +- +-/* + * SqueakyCleanTarget() + * + */ +@@ -282,3 +257,6 @@ + #define SqueakyCleanSubdirs(dirs) @@\ + NamedSqueakyCleanSubdirs(squeakyclean,dirs) + #endif ++ ++DependSubdirs($(SUBDIRS)) ++ diff --git a/audio/xwave/patches/patch-al b/audio/xwave/patches/patch-al new file mode 100644 index 00000000000..d6fa042e4e3 --- /dev/null +++ b/audio/xwave/patches/patch-al @@ -0,0 +1,12 @@ +--- config.site.BAK Sat Feb 21 19:55:25 1998 ++++ config.site Sat Feb 21 19:55:55 1998 +@@ -1,5 +1,8 @@ + +-EXTRA_INCLUDES=-I../ -I../include ++EXTRA_INCLUDES=-I../ -I../include -I${X11BASE}/include + + XCOMM On sgi we need libaudio + XCOMM OSLIBS=-laudio ++ ++XCOMM On NetBSD we use OSS audio ++OSLIBS=-lossaudio diff --git a/audio/xwave/patches/patch-am b/audio/xwave/patches/patch-am new file mode 100644 index 00000000000..7e4509bba7b --- /dev/null +++ b/audio/xwave/patches/patch-am @@ -0,0 +1,11 @@ +--- src/Imakefile.distrib.BAK Sat Feb 21 20:59:35 1998 ++++ src/Imakefile.distrib Sat Feb 21 20:59:43 1998 +@@ -17,6 +17,8 @@ + LIBS= $(OSLIBS) $(XLIBS) $(AUDIOLIBS) -lm -lc + + NormalProgramTarget(xwave,$(OBJS),,$(LIBS),) ++ComplexProgramTarget(xwave) ++InstallAppDefaults(XWave) + + all:: $(PROGRAMS) + diff --git a/audio/xwave/patches/patch-an b/audio/xwave/patches/patch-an new file mode 100644 index 00000000000..8a0377cc2c9 --- /dev/null +++ b/audio/xwave/patches/patch-an @@ -0,0 +1,22 @@ +--- Imakefile.BAK Sat Feb 21 21:53:52 1998 ++++ Imakefile Sat Feb 21 21:56:04 1998 +@@ -2,13 +2,14 @@ + #define IHaveSubDirs + #define PassCDebugFlags CDEBUGFLAGS='$(CDEBUGFLAGS)' + +-SUBDIRS = ccitt adpcm2pcm ieee FWF src ++SUBDIRS = ccitt adpcm2pcm ieee src ++ALLSUBDIRS= FWF ${SUBDIRS} + +-MakeSubdirs($(SUBDIRS)) ++MakeSubdirs($(ALLSUBDIRS)) + InstallSubdirs($(SUBDIRS)) +-DependSubdirs($(SUBDIRS)) +-CleanSubdirs($(SUBDIRS)) +-MakefileSubdirs($(SUBDIRS)) ++DependSubdirs($(ALLSUBDIRS)) ++CleanSubdirs($(ALLSUBDIRS)) ++MakefileSubdirs($(ALLSUBDIRS)) + + clean:: + @rm -rf lib include man diff --git a/audio/xwave/pkg/COMMENT b/audio/xwave/pkg/COMMENT new file mode 100644 index 00000000000..dc8236c0fde --- /dev/null +++ b/audio/xwave/pkg/COMMENT @@ -0,0 +1 @@ +Audio player/recorder/editor for the X Window System diff --git a/audio/xwave/pkg/DESCR b/audio/xwave/pkg/DESCR new file mode 100644 index 00000000000..414c00205c0 --- /dev/null +++ b/audio/xwave/pkg/DESCR @@ -0,0 +1,36 @@ + +xwave - an audio player, recorder, editor for the XWindow System + + Copyright (C) 1996 Kai Kollmorgen + (kkollmor@informatik.uni-rostock.de) + + +This is an alpha release, so be patient. +Many of the features i wanted to include are not there at this time. +I have not heavy tested the installation and xwave on different systems, +so it is possible that xwave will not compile or run on your system. + +I have used some libs from other authors, the copyrights and notes are in +the different directories. + +The Userinterface of xwave is based on the Athena Widget Set and some +Widgets from FWF. The application defaults are optimized for work with +Xaw3d (replaces the Xaw for 3d look), +so if you don't use Xaw3d you will probably modify the resources. + +Features: + - multiple files + - overview window + - zoom window + - mark, cut, copy, paste, merge + - echo, reverse, swap, resample, volume (absolute, dynamic + compressor) + - stop record on demand + - raw, wav, au, aiff, aifc (PCM,ALAW,ULAW,ADPCM <- not all + implementations) + - files of every length + +INSTALL: + If your /tmp is too small for handling temporary files, set + the X ressource XWave*tdir to some big directory (Either in + /usr/X11R6/lib/X11/app-defaults/XWave or your ~/.Xdefaults) diff --git a/audio/xwave/pkg/PLIST b/audio/xwave/pkg/PLIST new file mode 100644 index 00000000000..a261946f319 --- /dev/null +++ b/audio/xwave/pkg/PLIST @@ -0,0 +1,3 @@ +@comment $NetBSD: PLIST,v 1.1 1998/02/21 22:47:35 hubertf Exp $ +bin/xwave +lib/X11/app-defaults/XWave -- cgit v1.2.3