From owner-freebsd-ports Sun Jun 4 14:10:24 2000 Delivered-To: freebsd-ports@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id 06A3537B8CC for ; Sun, 4 Jun 2000 14:10:02 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id OAA89597; Sun, 4 Jun 2000 14:10:02 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Date: Sun, 4 Jun 2000 14:10:02 -0700 (PDT) Message-Id: <200006042110.OAA89597@freefall.freebsd.org> To: freebsd-ports@FreeBSD.org Cc: From: Steve Price Subject: FW: Re: ports/18879: New port audio/xwave Reply-To: Steve Price Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org The following reply was made to PR ports/18879; it has been noted by GNATS. From: Steve Price To: freebsd-gnats-submit@freebsd.org Cc: Subject: FW: Re: ports/18879: New port audio/xwave Date: Sun, 4 Jun 2000 16:07:01 -0500 ----- Forwarded message from KATO Tsuguru ----- Date: Mon, 5 Jun 2000 05:38:12 +0900 From: "KATO Tsuguru" To: Will Andrews Cc: freebsd-ports@FreeBSD.ORG Subject: Re: ports/18879: New port audio/xwave X-Mailer: Web Based Pronto Sender: owner-freebsd-ports@FreeBSD.ORG > I'm not sure where the problem is here... I'm running 4.0-STABLE. Ah, I'm very sorry. You've made no mistake. This port requires Xpm library. :-( By the way, I found quite improved version of this program. Following archve is one for that version. Additional man page is borrowed from Debian package. # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # xwave # xwave/Makefile # xwave/files # xwave/files/md5 # xwave/files/xwave.man # xwave/patches # xwave/patches/patch-aa # xwave/patches/patch-ab # xwave/patches/patch-ac # xwave/patches/patch-ad # xwave/patches/patch-ae # xwave/patches/patch-af # xwave/patches/patch-ag # xwave/patches/patch-ah # xwave/patches/patch-ai # xwave/patches/patch-aj # xwave/patches/patch-ak # xwave/patches/patch-al # xwave/patches/patch-am # xwave/pkg # xwave/pkg/COMMENT # xwave/pkg/DESCR # xwave/pkg/PLIST # echo c - xwave mkdir -p xwave > /dev/null 2>&1 echo x - xwave/Makefile sed 's/^X//' >xwave/Makefile << 'END-of-xwave/Makefile' X# New ports collection makefile for: xwave X# Date created: 17 May 2000 X# Whom: Martin Kraft X# X# $FreeBSD$ X# X XPORTNAME= xwave XPORTVERSION= 0.6.2.2 XCATEGORIES= audio XMASTER_SITES= http://www.physics.adelaide.edu.au/~jwoithe/ XDISTFILES= ${PORTNAME}2v2.tgz X XPATCH_SITES= ${MASTER_SITES} XPATCHFILES= ${PORTNAME}2-981109-991019.diff XPATCH_DIST_STRIP= -p1 X XMAINTAINER= ports@FreeBSD.org X XLIB_DEPENDS= Xpm.4:${PORTSDIR}/graphics/xpm X XWRKSRC= ${WRKDIR}/${PORTNAME}2-981109 XUSE_IMAKE= yes X Xdo-install: X ${INSTALL_PROGRAM} ${WRKSRC}/src/xwave ${PREFIX}/bin X ${INSTALL_DATA} ${WRKSRC}/src/XWave ${PREFIX}/lib/X11/app-defaults X ${INSTALL_MAN} ${FILESDIR}/xwave.man ${PREFIX}/man/man1/xwave.1 X X.include END-of-xwave/Makefile echo c - xwave/files mkdir -p xwave/files > /dev/null 2>&1 echo x - xwave/files/md5 sed 's/^X//' >xwave/files/md5 << 'END-of-xwave/files/md5' XMD5 (xwave2v2.tgz) = b472c76e6ee67a734aacc22c499e8633 XMD5 (xwave2-981109-991019.diff) = 7a4f48ec6ce0319a133a26064c6df553 END-of-xwave/files/md5 echo x - xwave/files/xwave.man sed 's/^X//' >xwave/files/xwave.man << 'END-of-xwave/files/xwave.man' X.TH XWAVE 1 "17 July 1999" X.SH NAME Xxwave \- edits audio files in X Window System X.SH SYNOPSIS X.B xwave X[ X.B \-h X| X.B \-? X| X.B \-help X] X[ X.B \-device " device" X] X[ X.BI \-wdir " working-directory" X] X[ X.BI \-maxmem " mem-in-bytes" X] X.I audio-file X ... X.LP X X.SH DESCRIPTION X.B XWave Xcan edit, modify, and apply effects to sound files. X XIt supports RIFF (also known as WAV), AIFC, AU and RAW audio formats Xwith different compression schemes (PCM, ALAW, ULAW and ADPCM). X X.SH OPTIONS X.TP X.B \-h X.B \-? X.B \-help XPrints a short help. X.TP X.BI \-device " device" XUse the specified X.I device Xfor playing and recording. Defaults to /dev/dsp X.TP X.BI \-wdir " working-directory" XThe directory where files will be loaded and saved by default. X.TP X.BI \-maxmem " mem-in-bytes" XUse at most X.I mem-in-bytes Xbytes of memory per file loaded. If a file exceeds X.I mem-in-bytes Xbytes, it will be played and edited on disk. X X.SH RESOURCES X.TP X.BI XWave*wdir XThe working directory. X X.TP X.BI XWave*tdir XThe temporary directory where files which cannot fit in physical Xmemory are edited. This is overridden by the environment variables X.I TMP Xand X.I TMPDIR. X X.TP X.BI XWave*device XThe device used for playing and recording. X X.TP X.BI XWave*maxmem XMaximum memory in bytes to be allocated in RAM. Any edited file Xexceeding this size will be edited on disk. X X.SH ENVIRONMENT X.TP X.BI TMP XIf this variable exists and points to a writable directory, this Xdirectory will be used as temporary directory. X X.TP X.BI TMPDIR XSame as X.I TMP. X X.SH NOTES X.B Xwave Xwill try to find the temporary directory by searching successively: X.PP Xthe environment variable X.I TMP, X.PP Xthe environment variable X.I TMPDIR, X.PP Xthe X resource X.I XWave*tdir, X.PP Xor the hard-coded /tmp directory. X X.SH AUTHOR X.PP XThis man page has been written for Debian by Philippe Troin X. X X\" LocalWords: XWAVE xwave wdir maxmem mem XWave RIFF WAV AIFC AU PCM ALAW X\" LocalWords: ULAW ADPCM tdir TMP TMPDIR tmp Debian Troin END-of-xwave/files/xwave.man echo c - xwave/patches mkdir -p xwave/patches > /dev/null 2>&1 echo x - xwave/patches/patch-aa sed 's/^X//' >xwave/patches/patch-aa << 'END-of-xwave/patches/patch-aa' X--- src/Imakefile.orig Mon Nov 9 08:22:55 1998 X+++ src/Imakefile Sat Jun 3 00:00:00 2000 X@@ -14,13 +14,13 @@ X X AUDIOLIBS=-L../ccitt -lccitt -L../adpcm2pcm -ladpcm -L../ieee -lieee X XLIBS= -L../lib -lfwf -lXaw -lXpm -lXmu -lXt -lX11 X-LIBS= $(OSLIBS) $(XLIBS) $(AUDIOLIBS) -lm -lc X+LIBS= $(OSLIBS) $(XLIBS) $(AUDIOLIBS) -lm X X NormalProgramTarget(xwave,$(OBJS),,$(LIBS),) X X all:: $(PROGRAMS) X X depend:: X- $(DEPEND) $(EXTRA_INCLUDES) $(SRCS) >>Makefile X+ $(DEPEND) $(EXTRA_INCLUDES) -I$(INCROOT) $(SRCS) >>Makefile X X END-of-xwave/patches/patch-aa echo x - xwave/patches/patch-ab sed 's/^X//' >xwave/patches/patch-ab << 'END-of-xwave/patches/patch-ab' X--- src/aifc.c.orig Mon Nov 9 08:22:55 1998 X+++ src/aifc.c Sat Jun 3 00:00:00 2000 X@@ -9,7 +9,7 @@ X X #ifdef linux X #include X-#elif defined (FreeBSD) X+#elif defined (__FreeBSD__) X #include X #elif defined (sgi) X #include END-of-xwave/patches/patch-ab echo x - xwave/patches/patch-ac sed 's/^X//' >xwave/patches/patch-ac << 'END-of-xwave/patches/patch-ac' X--- src/au.c.orig Mon Nov 9 08:22:55 1998 X+++ src/au.c Sat Jun 3 00:00:00 2000 X@@ -32,7 +32,7 @@ X X #ifdef linux X #include X-#elif defined (FreeBSD) X+#elif defined (__FreeBSD__) X #include X #elif defined (sgi) X #include END-of-xwave/patches/patch-ac echo x - xwave/patches/patch-ad sed 's/^X//' >xwave/patches/patch-ad << 'END-of-xwave/patches/patch-ad' X--- src/audio.c.orig Mon Nov 9 08:22:55 1998 X+++ src/audio.c Sat Jun 3 00:00:00 2000 X@@ -37,7 +37,7 @@ X #ifdef linux X #include X X-#elif defined(FreeBSD) X+#elif defined(__FreeBSD__) X #include X X #elif defined(sgi) X@@ -55,7 +55,7 @@ X #include "sample_settings.h" X #include "audio.h" X X-#if defined(linux) || defined (FreeBSD) || defined(sun) X+#if defined(linux) || defined (__FreeBSD__) || defined(sun) X static int set_dsp(int o_mode,int res,int channels,int freq,int *buf_size); X #endif X X@@ -67,7 +67,7 @@ X static Audio_File af; X static int stop_record; X X-#if defined (linux) || defined (FreeBSD) X+#if defined (linux) || defined (__FreeBSD__) X int set_dsp(int o_mode,int res, int channels, int freq, int *buf_size) X { X int check; X@@ -369,7 +369,7 @@ X X void play_file(char *fname,Main_Bool *mb) X { X-#if defined (linux) || defined (FreeBSD) || defined (sun) X+#if defined (linux) || defined (__FreeBSD__) || defined (sun) X int audio; X #elif defined(sgi) X ALport port; X@@ -383,7 +383,7 @@ X return; X } X X-#if defined (linux) || defined (FreeBSD) || defined (sun) X+#if defined (linux) || defined (__FreeBSD__) || defined (sun) X if ((audio=set_dsp(O_WRONLY,af.bps,af.channels,af.freq,&buf_size))==-1) { X fprintf(stderr,"XWave: Error ! Cannot set dsp !\n"); X close(af.fd); X@@ -403,7 +403,7 @@ X if ((buffer=malloc(buf_size))==NULL) { X fprintf(stderr,"XWave: Error ! Cannot alloc mem !\n"); X close(af.fd); X-#if defined (linux) || defined (FreeBSD) || defined (sun) X+#if defined (linux) || defined (__FreeBSD__) || defined (sun) X close(audio); X #elif defined(sgi) X ALcloseport(port); X@@ -412,7 +412,7 @@ X return; X } X X-#if defined (linux) || defined (FreeBSD) || defined (sun) X+#if defined (linux) || defined (__FreeBSD__) || defined (sun) X while ((length=af_read(af,buffer,buf_size))>0) { X if (write(audio, buffer, length)==-1) break; X } X@@ -439,7 +439,7 @@ X int offset=0,playlength,length; X #ifdef sgi X ALport port; X-#elif defined(linux) || defined (FreeBSD) || defined (sun) X+#elif defined(linux) || defined (__FreeBSD__) || defined (sun) X int audio; X X if ((audio=set_dsp(O_WRONLY,wd->res,wd->channels,wd->freq,&buf_size))==-1) { X@@ -472,7 +472,7 @@ X buffer=wd->buffer+offset; X while (playlength>0) { X if (playlength0) { X if (playlengthmg->fbuf,buf_size))==-1) { X-#if defined (linux) || defined (FreeBSD) || defined (sun) X+#if defined (linux) || defined (__FreeBSD__) || defined (sun) X close(audio); X #elif defined(sgi) X ALcloseport(port); X@@ -518,7 +518,7 @@ X kill((pid_t) getppid(),SIGUSR1); X return; X } X-#if defined (linux) || defined (FreeBSD) || defined (sun) X+#if defined (linux) || defined (__FreeBSD__) || defined (sun) X if (write(audio,(char*) md->mg->fbuf,length)==-1) { X close(audio); X kill((pid_t) getppid(),SIGUSR1); X@@ -537,7 +537,7 @@ X } X } X X-#if defined (linux) || defined (FreeBSD) || defined (sun) X+#if defined (linux) || defined (__FreeBSD__) || defined (sun) X close(audio); X #elif defined(sgi) X while (ALgetfilled(port)) sginap(2); X@@ -558,7 +558,7 @@ X int offset=0,playlength,length; X #ifdef sgi X ALport port; X-#elif defined(linux) || defined (FreeBSD) || defined (sun) X+#elif defined(linux) || defined (__FreeBSD__) || defined (sun) X int audio; X X if ((audio=set_dsp(O_WRONLY,wd->res,wd->channels,wd->freq,&buf_size))==-1) { X@@ -593,7 +593,7 @@ X ((int *)shared_playpos)[0] = wd->playbeg*wd->bpspl; X while (playlength>0) { X if (playlengthmg->fbuf,buf_size))==-1) { X ((int *)shared_playpos)[0] = -1; X-#if defined (linux) || defined (FreeBSD) || defined (sun) X+#if defined (linux) || defined (__FreeBSD__) || defined (sun) X close(audio); X #elif defined(sgi) X ALcloseport(port); X@@ -644,7 +644,7 @@ X kill((pid_t) getppid(),SIGUSR1); X return; X } X-#if defined (linux) || defined (FreeBSD) || defined (sun) X+#if defined (linux) || defined (__FreeBSD__) || defined (sun) X if (write(audio,(char*) md->mg->fbuf,length)==-1) { X ((int *)shared_playpos)[0] = -1; X close(audio); X@@ -666,7 +666,7 @@ X } X X ((int *)shared_playpos)[0] = -1; X-#if defined (linux) || defined (FreeBSD) || defined (sun) X+#if defined (linux) || defined (__FreeBSD__) || defined (sun) X close(audio); X #elif defined(sgi) X while (ALgetfilled(port)) sginap(2); X@@ -686,7 +686,7 @@ X void write_length(); X byte *data=NULL; X int abuf_size,count; X-#if defined (linux) || defined (FreeBSD) || defined (sun) X+#if defined (linux) || defined (__FreeBSD__) || defined (sun) X int audio; X X if ((audio=set_dsp(O_RDONLY,res,mode,freq,&abuf_size))==-1) { X@@ -707,7 +707,7 @@ X X if ((data = (byte *) malloc(abuf_size)) == NULL) { X fprintf(stderr,"XWave: Error while alloc mem for audio_buffer !\n"); X-#if defined (linux) || defined (FreeBSD) || defined (sun) X+#if defined (linux) || defined (__FreeBSD__) || defined (sun) X close(audio); X #elif defined(sgi) X ALcloseport(port); X@@ -725,7 +725,7 @@ X X if (af_open(fname,&af,AF_NEW)==AF_ERROR) { X free(data); X-#if defined (linux) || defined (FreeBSD) || defined (sun) X+#if defined (linux) || defined (__FreeBSD__) || defined (sun) X close(audio); X #elif defined(sgi) X ALcloseport(port); X@@ -738,7 +738,7 @@ X signal(SIGUSR1,write_length); X X while(1) { X-#if defined (linux) || defined (FreeBSD) || defined (sun) X+#if defined (linux) || defined (__FreeBSD__) || defined (sun) X if ((count=read(audio, data, abuf_size))==-1) { X close(audio); X af_close(af); X@@ -762,7 +762,7 @@ X return; X } X if ((count=af_write(af,(char*)data,count))==AF_ERROR) { X-#if defined (linux) || defined (FreeBSD) || defined (sun) X+#if defined (linux) || defined (__FreeBSD__) || defined (sun) X close(audio); X #elif defined(sgi) X ALcloseport(port); END-of-xwave/patches/patch-ad echo x - xwave/patches/patch-ae sed 's/^X//' >xwave/patches/patch-ae << 'END-of-xwave/patches/patch-ae' X--- src/button.c.orig Tue Nov 19 21:27:11 1996 X+++ src/button.c Sat Jun 3 00:00:00 2000 X@@ -521,7 +521,7 @@ X now_clock=clock(); X sample_time=(float)md->wd->tlength/(float)md->wd->freq; X X-#if defined(linux) || defined (FreeBSD) || defined(sun) X+#if defined(linux) || defined (__FreeBSD__) || defined(sun) X gone_time=(float)(now_clock-start_clock)/(float)CLOCKS_PER_SEC; X #elif defined(sgi) X gone_time=(float)(now_clock-start_clock)/(float)750000; END-of-xwave/patches/patch-ae echo x - xwave/patches/patch-af sed 's/^X//' >xwave/patches/patch-af << 'END-of-xwave/patches/patch-af' X--- src/effects.c.orig Mon Nov 9 08:22:55 1998 X+++ src/effects.c Sat Jun 3 00:00:00 2000 X@@ -348,7 +348,7 @@ X X switch (sr->res) { X case 8: { X-#if defined (linux) || defined (FreeBSD) X+#if defined (linux) || defined (__FreeBSD__) X for (i=0;ilength;i++) newbuf[(i<<1)+1]=obuf[i]-128; X #elif defined (sgi) || defined (sun) X for (i=0;ilength;i++) newbuf[(i<<1)]=obuf[i]-128; END-of-xwave/patches/patch-af echo x - xwave/patches/patch-ag sed 's/^X//' >xwave/patches/patch-ag << 'END-of-xwave/patches/patch-ag' X--- src/endian.h.orig Mon Nov 9 08:22:55 1998 X+++ src/endian.h Sat Jun 3 00:00:00 2000 X@@ -16,7 +16,7 @@ X #define big_endian 1 X #endif X X-#elif defined (linux) || defined (sun) || defined (FreeBSD) X+#elif defined (linux) || defined (sun) || defined (__FreeBSD__) X X #if BYTE_ORDER==LITTLE_ENDIAN X #define little_endian 1 END-of-xwave/patches/patch-ag echo x - xwave/patches/patch-ah sed 's/^X//' >xwave/patches/patch-ah << 'END-of-xwave/patches/patch-ah' X--- src/graphics.c.orig Mon Nov 25 21:33:43 1996 X+++ src/graphics.c Sat Jun 3 00:00:00 2000 X@@ -30,7 +30,7 @@ X X #ifdef linux X #include X-#elif defined (FreeBSD) X+#elif defined (__FreeBSD__) X #include X #elif defined (sgi) X #include X@@ -1442,7 +1442,7 @@ X if (md->mb->exposing) return; X */ X X-#if defined (linux) || defined (FreeBSD) X+#if defined (linux) || defined (__FreeBSD__) X if (resizing) { X resizing=FALSE; X return; X@@ -1498,7 +1498,7 @@ X X void expose_canvas (Widget w, Main_Data *md, XExposeEvent *event, Boolean *flg) X { X-#if defined (linux) || defined (FreeBSD) X+#if defined (linux) || defined (__FreeBSD__) X if (resizing) { X if (!event->count) resizing=FALSE; X return; END-of-xwave/patches/patch-ah echo x - xwave/patches/patch-ai sed 's/^X//' >xwave/patches/patch-ai << 'END-of-xwave/patches/patch-ai' X--- src/record_dialog.c.orig Tue Nov 19 23:24:36 1996 X+++ src/record_dialog.c Sat Jun 3 00:00:00 2000 X@@ -498,7 +498,7 @@ X sprintf(MD->mw->messages,"%.2f kbytes (%.2fs)", X (float)playsize/1024,recordtime); X XtVaSetValues(label5,XtNlabel, MD->mw->messages, NULL); X-#if defined(linux)||defined(FreeBSD)||defined(sun) X+#if defined(linux)||defined(__FreeBSD__)||defined(sun) X usleep(80000); X #elif defined(sgi) X sginap(CLK_TCK/(ONE_SECOND/80000)); END-of-xwave/patches/patch-ai echo x - xwave/patches/patch-aj sed 's/^X//' >xwave/patches/patch-aj << 'END-of-xwave/patches/patch-aj' X--- src/riff.c.orig Mon Nov 9 08:22:55 1998 X+++ src/riff.c Sat Jun 3 00:00:00 2000 X@@ -33,7 +33,7 @@ X X #ifdef linux X #include X-#elif defined (FreeBSD) X+#elif defined (__FreeBSD__) X #include X #elif defined (sgi) X #include END-of-xwave/patches/patch-aj echo x - xwave/patches/patch-ak sed 's/^X//' >xwave/patches/patch-ak << 'END-of-xwave/patches/patch-ak' X--- src/types.h.orig Mon Nov 9 08:22:55 1998 X+++ src/types.h Sat Jun 3 00:00:00 2000 X@@ -27,7 +27,7 @@ X typedef unsigned char byte; X typedef byte bool; X X-#ifdef FreeBSD X+#ifdef __FreeBSD__ X typedef unsigned long ulong; X #endif X END-of-xwave/patches/patch-ak echo x - xwave/patches/patch-al sed 's/^X//' >xwave/patches/patch-al << 'END-of-xwave/patches/patch-al' X--- FWF/Imakefile.orig Thu Feb 15 23:43:46 1996 X+++ FWF/Imakefile Sat Jun 3 00:00:00 2000 X@@ -9,6 +9,7 @@ X MakeDirectories(all,$(ALLDIRS)) X X InitSubdirs($(SUBDIRS)) X+DependSubdirs($(SUBDIRS)) X MakeObjectsSubdirs($(SUBDIRS)) X MakeExecsSubdirs($(SUBDIRS)) X GatherDescriptionSubdirs($(SUBDIRS)) END-of-xwave/patches/patch-al echo x - xwave/patches/patch-am sed 's/^X//' >xwave/patches/patch-am << 'END-of-xwave/patches/patch-am' X--- FWF/src/Imakefile.orig Thu Feb 15 23:38:37 1996 X+++ FWF/src/Imakefile Sat Jun 3 00:00:00 2000 X@@ -34,6 +34,7 @@ X X X InitSubdirs($(SUBDIRS)) X+DependSubdirs($(SUBDIRS)) X MakeObjectsSubdirs($(SUBDIRS)) X MakeExecsSubdirs($(SUBDIRS)) X GatherDescriptionSubdirs($(SUBDIRS)) END-of-xwave/patches/patch-am echo c - xwave/pkg mkdir -p xwave/pkg > /dev/null 2>&1 echo x - xwave/pkg/COMMENT sed 's/^X//' >xwave/pkg/COMMENT << 'END-of-xwave/pkg/COMMENT' XAn audio player, recorder, editor for the XWindow System END-of-xwave/pkg/COMMENT echo x - xwave/pkg/DESCR sed 's/^X//' >xwave/pkg/DESCR << 'END-of-xwave/pkg/DESCR' XXwave is an audio editor, player, recorder for X Window System, X - supports editing of large files (on hdd), X - cut,copy,paste,merge, X - some effects (echo,reverse,swap channels,resample,volume), X - supports RIFF,AIFF,AIFC,AU X - Linux,SGI,SUN,FreeBSD X XThe user interface of xwave is based on the Athena Widget XSet and some Widgets from FWF. X Xxwave was written and is maintained by XKai Kollmorgen . X X- Martin Kraft Xmartin.kraft@fal.de END-of-xwave/pkg/DESCR echo x - xwave/pkg/PLIST sed 's/^X//' >xwave/pkg/PLIST << 'END-of-xwave/pkg/PLIST' Xbin/xwave Xlib/X11/app-defaults/XWave END-of-xwave/pkg/PLIST exit -- KATO Tsuguru / tkato@prontomail.ne.jp Sent by Japanese ProntoMail To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message ----- End forwarded message ----- -- "This fence rail is pointy and cold and I think we're all going to come down with an embarrassing medical condition if we keep sitting on it." - Jordan K. Hubbard To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message