From nobody@FreeBSD.ORG  Fri Jul  7 14:31:58 2000
Return-Path: <nobody@FreeBSD.ORG>
Received: by hub.freebsd.org (Postfix, from userid 32767)
	id 4A90B37BEF6; Fri,  7 Jul 2000 14:31:58 -0700 (PDT)
Message-Id: <20000707213158.4A90B37BEF6@hub.freebsd.org>
Date: Fri,  7 Jul 2000 14:31:58 -0700 (PDT)
From: tkato@prontomail.ne.jp
Sender: nobody@FreeBSD.ORG
To: freebsd-gnats-submit@FreeBSD.org
Subject: Update port: audio/xwave to 2v2 (fix ports/18779)
X-Send-Pr-Version: www-1.0

>Number:         19759
>Category:       ports
>Synopsis:       Update port: audio/xwave to 2v2 (fix ports/18779)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jul 07 14:40:00 PDT 2000
>Closed-Date:    Thu Jul 13 06:33:11 PDT 2000
>Last-Modified:  Thu Jul 13 06:35:24 PDT 2000
>Originator:     KATO Tsuguru
>Release:        4.0-RELEASE i386
>Organization:
>Environment:
>Description:
- Update to version 2v2

New file:
patches/patch-aa  patches/patch-ab  patches/patch-ac  patches/patch-ae
patches/patch-af  patches/patch-ag  patches/patch-ah  patches/patch-ai
patches/patch-aj  patches/patch-ar  patches/patch-as  patches/patch-at

Remove file:
patches/patch-ak  patches/patch-am  patches/patch-an  patches/patch-ao

ports/18779 should be superseded by this PR.

Contacted maintainer with no response.

>How-To-Repeat:

>Fix:
diff -urN /usr/ports/audio/xwave/Makefile audio/xwave/Makefile
--- /usr/ports/audio/xwave/Makefile	Fri Jun 30 17:30:11 2000
+++ audio/xwave/Makefile	Fri Jun 30 20:41:38 2000
@@ -1,35 +1,34 @@
 # New ports collection makefile for:	xwave
 # Date created:				11 June 2000
 # Whom:					Trevor Johnson <trevor@jpj.net>
-# based on the NetBSD port
 #
-# $NetBSD: Makefile,v 1.8 2000/04/24 14:52:33 hubertf Exp $
 # $FreeBSD: ports/audio/xwave/Makefile,v 1.2 2000/06/30 08:30:11 sobomax Exp $
 #
 
 PORTNAME=	xwave
-PORTVERSION=	2
+PORTVERSION=	2v2
 CATEGORIES=	audio
-MASTER_SITES=	ftp://ftp.vex.net/pub/software/
-DISTNAME=	xwave2
+MASTER_SITES=	http://www.funet.fi/~kouhia/waves/
+DISTNAME=	${PORTNAME}${PORTVERSION}
 
 MAINTAINER=	martin.kraft@fal.de
 
 LIB_DEPENDS=	Xpm.4:${PORTSDIR}/graphics/xpm
 
+WRKSRC=		${WRKDIR}/${PORTNAME}2-981109
 USE_IMAKE=	yes
 
-DOC_FILES=	README README-XWAVE2 README.v06 COPYING INSTALL
+DOC_FILES=	README README-XWAVE2 README.v06 INSTALL
 
 do-install:
 	${INSTALL_PROGRAM} ${WRKSRC}/src/xwave ${PREFIX}/bin
-	${INSTALL_DATA} ${WRKSRC}/src/XWave ${PREFIX}/lib/X11/app-defaults/
-
+	${INSTALL_DATA} ${WRKSRC}/src/XWave ${PREFIX}/lib/X11/app-defaults
 .if !defined(NOPORTDOCS)
-	${MKDIR} ${PREFIX}/share/doc/xwave2
+	@${MKDIR} ${PREFIX}/share/doc/xwave
 .for i in ${DOC_FILES}
-	${INSTALL_MAN} ${WRKSRC}/${i} ${PREFIX}/share/doc/xwave2
+	${INSTALL_MAN} ${WRKSRC}/${i} ${PREFIX}/share/doc/xwave
 .endfor
 .endif
+	@${CAT} ${PKGMESSAGE}
 
 .include <bsd.port.mk>
diff -urN /usr/ports/audio/xwave/files/md5 audio/xwave/files/md5
--- /usr/ports/audio/xwave/files/md5	Fri Jun 30 00:26:45 2000
+++ audio/xwave/files/md5	Fri Jun 30 19:47:02 2000
@@ -1,3 +1 @@
-$NetBSD: md5,v 1.3 1999/02/08 21:27:11 hubertf Exp $
-
-MD5 (xwave2.tar.gz) = fddc9ac33e3c7ec5272212abe8c8e606
+MD5 (xwave2v2.tar.gz) = b472c76e6ee67a734aacc22c499e8633
diff -urN /usr/ports/audio/xwave/patches/patch-aa audio/xwave/patches/patch-aa
--- /usr/ports/audio/xwave/patches/patch-aa	Thu Jan  1 09:00:00 1970
+++ audio/xwave/patches/patch-aa	Fri Jun 30 20:10:47 2000
@@ -0,0 +1,11 @@
+--- src/Imakefile.orig	Mon Nov  9 08:22:55 1998
++++ src/Imakefile	Fri Jun 30 20:10:38 2000
+@@ -14,7 +14,7 @@
+ 
+ AUDIOLIBS=-L../ccitt -lccitt -L../adpcm2pcm -ladpcm -L../ieee -lieee
+ XLIBS= -L../lib -lfwf -lXaw -lXpm -lXmu -lXt -lX11
+-LIBS=  $(OSLIBS) $(XLIBS) $(AUDIOLIBS) -lm -lc 
++LIBS=  $(OSLIBS) $(XLIBS) $(AUDIOLIBS) -lm
+ 
+ NormalProgramTarget(xwave,$(OBJS),,$(LIBS),)
+ 
diff -urN /usr/ports/audio/xwave/patches/patch-ab audio/xwave/patches/patch-ab
--- /usr/ports/audio/xwave/patches/patch-ab	Thu Jan  1 09:00:00 1970
+++ audio/xwave/patches/patch-ab	Fri Jun 30 19:55:31 2000
@@ -0,0 +1,11 @@
+--- src/aifc.c.orig	Mon Nov  9 08:22:55 1998
++++ src/aifc.c	Fri Jun 30 19:49:15 2000
+@@ -9,7 +9,7 @@
+ 
+ #ifdef linux
+ #include <endian.h>
+-#elif defined (FreeBSD)
++#elif defined (__FreeBSD__)
+ #include <machine/endian.h>
+ #elif defined (sgi)
+ #include <sys/endian.h>
diff -urN /usr/ports/audio/xwave/patches/patch-ac audio/xwave/patches/patch-ac
--- /usr/ports/audio/xwave/patches/patch-ac	Thu Jan  1 09:00:00 1970
+++ audio/xwave/patches/patch-ac	Fri Jun 30 19:55:40 2000
@@ -0,0 +1,11 @@
+--- src/au.c.orig	Mon Nov  9 08:22:55 1998
++++ src/au.c	Fri Jun 30 19:49:15 2000
+@@ -32,7 +32,7 @@
+ 
+ #ifdef linux
+ #include <endian.h>
+-#elif defined (FreeBSD)
++#elif defined (__FreeBSD__)
+ #include <machine/endian.h>
+ #elif defined (sgi)
+ #include <sys/endian.h>
diff -urN /usr/ports/audio/xwave/patches/patch-ad audio/xwave/patches/patch-ad
--- /usr/ports/audio/xwave/patches/patch-ad	Fri Jun 30 00:26:46 2000
+++ audio/xwave/patches/patch-ad	Fri Jun 30 19:55:52 2000
@@ -1,7 +1,5 @@
-$NetBSD: patch-ad,v 1.2 1998/08/07 10:36:23 agc Exp $
-
---- xwave/src/audio.c.orig	Wed Aug 12 23:27:09 1998
-+++ src/audio.c	Sun Jun 11 13:35:54 2000
+--- src/audio.c.orig	Mon Nov  9 08:22:55 1998
++++ src/audio.c	Fri Jun 30 19:49:15 2000
 @@ -37,7 +37,7 @@
  #ifdef linux
  #include <linux/soundcard.h>
@@ -29,25 +27,7 @@
  int set_dsp(int o_mode,int res, int channels, int freq, int *buf_size)
  {
      int check;
-@@ -274,7 +274,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 +307,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 +370,7 @@
+@@ -369,7 +369,7 @@
  
  void play_file(char *fname,Main_Bool *mb)
  {
@@ -56,7 +36,7 @@
      int audio;
  #elif defined(sgi)
      ALport port;
-@@ -384,7 +384,7 @@
+@@ -383,7 +383,7 @@
  	return;
      }
      
@@ -65,7 +45,7 @@
      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 +404,7 @@
+@@ -403,7 +403,7 @@
      if ((buffer=malloc(buf_size))==NULL) {
  	fprintf(stderr,"XWave: Error ! Cannot alloc mem !\n");
  	close(af.fd);
@@ -74,7 +54,7 @@
  	close(audio);
  #elif defined(sgi)
  	ALcloseport(port);
-@@ -413,7 +413,7 @@
+@@ -412,7 +412,7 @@
  	return;
      }
      
@@ -83,7 +63,61 @@
      while ((length=af_read(af,buffer,buf_size))>0) {
  	if (write(audio, buffer, length)==-1) break;
      }
-@@ -440,7 +440,7 @@
+@@ -439,7 +439,7 @@
+     int offset=0,playlength,length;
+ #ifdef sgi
+     ALport port;
+-#elif defined(linux) || defined (FreeBSD) || defined (sun)
++#elif defined(linux) || defined (__FreeBSD__) || defined (sun)
+     int audio;
+     
+     if ((audio=set_dsp(O_WRONLY,wd->res,wd->channels,wd->freq,&buf_size))==-1) {
+@@ -472,7 +472,7 @@
+         buffer=wd->buffer+offset;
+         while (playlength>0) {
+             if (playlength<buf_size) buf_size=playlength;
+-#if defined (linux) || defined (FreeBSD) || defined (sun)
++#if defined (linux) || defined (__FreeBSD__) || defined (sun)
+             if (write(audio, buffer, buf_size)==-1) {
+                 close(audio);
+                 kill((pid_t) getppid(),SIGUSR1);
+@@ -497,7 +497,7 @@
+         wd2af(wd,&af);
+         af_rewind(af);
+         if (af_seek(af,offset,SEEK_CUR)==AF_ERROR) {
+-#if defined (linux) || defined (FreeBSD) || defined (sun)
++#if defined (linux) || defined (__FreeBSD__) || defined (sun)
+             close(audio);
+ #elif defined(sgi)
+             ALcloseport(port);
+@@ -510,7 +510,7 @@
+         while (playlength>0) {
+             if (playlength<buf_size) buf_size=playlength;
+             if ((length=af_read(af,(char*) md->mg->fbuf,buf_size))==-1) {
+-#if defined (linux) || defined (FreeBSD) || defined (sun)
++#if defined (linux) || defined (__FreeBSD__) || defined (sun)
+                 close(audio);
+ #elif defined(sgi)
+                 ALcloseport(port);
+@@ -518,7 +518,7 @@
+                 kill((pid_t) getppid(),SIGUSR1);
+                 return;
+             }
+-#if defined (linux) || defined (FreeBSD) || defined (sun)
++#if defined (linux) || defined (__FreeBSD__) || defined (sun)
+             if (write(audio,(char*) md->mg->fbuf,length)==-1) {
+                 close(audio);
+                 kill((pid_t) getppid(),SIGUSR1);
+@@ -537,7 +537,7 @@
+         }
+     }
+     
+-#if defined (linux) || defined (FreeBSD) || defined (sun)
++#if defined (linux) || defined (__FreeBSD__) || defined (sun)
+     close(audio);
+ #elif defined(sgi)
+     while (ALgetfilled(port)) sginap(2);
+@@ -558,7 +558,7 @@
      int offset=0,playlength,length;
  #ifdef sgi
      ALport port;
@@ -92,52 +126,52 @@
      int audio;
      
      if ((audio=set_dsp(O_WRONLY,wd->res,wd->channels,wd->freq,&buf_size))==-1) {
-@@ -473,7 +473,7 @@
- 	buffer=wd->buffer+offset;
+@@ -593,7 +593,7 @@
+ 	((int *)shared_playpos)[0] = wd->playbeg*wd->bpspl;
  	while (playlength>0) {
  	    if (playlength<buf_size) buf_size=playlength;
 -#if defined (linux) || defined (FreeBSD) || defined (sun)
 +#if defined (linux) || defined (__FreeBSD__) || defined (sun)
  	    if (write(audio, buffer, buf_size)==-1) {
+ 		((int *)shared_playpos)[0] = -1;
  		close(audio);
- 		kill((pid_t) getppid(),SIGUSR1);
-@@ -497,7 +497,7 @@
- 	wd2af(wd,&af);
+@@ -621,7 +621,7 @@
  	af_rewind(af);
  	if (af_seek(af,offset,SEEK_CUR)==AF_ERROR) {
+ 	    ((int *)shared_playpos)[0] = -1;
 -#if defined (linux) || defined (FreeBSD) || defined (sun)
 +#if defined (linux) || defined (__FreeBSD__) || defined (sun)
  	    close(audio);
  #elif defined(sgi)
  	    ALcloseport(port);
-@@ -510,7 +510,7 @@
- 	while (playlength>0) {
+@@ -636,7 +636,7 @@
  	    if (playlength<buf_size) buf_size=playlength;
  	    if ((length=af_read(af,(char*) md->mg->fbuf,buf_size))==-1) {
+ 		((int *)shared_playpos)[0] = -1;
 -#if defined (linux) || defined (FreeBSD) || defined (sun)
 +#if defined (linux) || defined (__FreeBSD__) || defined (sun)
  		close(audio);
  #elif defined(sgi)
  		ALcloseport(port);
-@@ -518,7 +518,7 @@
+@@ -644,7 +644,7 @@
  		kill((pid_t) getppid(),SIGUSR1);
  		return;
  	    }
 -#if defined (linux) || defined (FreeBSD) || defined (sun)
 +#if defined (linux) || defined (__FreeBSD__) || defined (sun)
  	    if (write(audio,(char*) md->mg->fbuf,length)==-1) {
+ 		((int *)shared_playpos)[0] = -1;
  		close(audio);
- 		kill((pid_t) getppid(),SIGUSR1);
-@@ -536,7 +536,7 @@
- 	}
+@@ -666,7 +666,7 @@
      }
      
+     ((int *)shared_playpos)[0] = -1;
 -#if defined (linux) || defined (FreeBSD) || defined (sun)
 +#if defined (linux) || defined (__FreeBSD__) || defined (sun)
      close(audio);
  #elif defined(sgi)
      while (ALgetfilled(port)) sginap(2);
-@@ -556,7 +556,7 @@
+@@ -686,7 +686,7 @@
      void write_length();
      byte *data=NULL;
      int abuf_size,count;
@@ -146,7 +180,7 @@
      int audio;
      
      if ((audio=set_dsp(O_RDONLY,res,mode,freq,&abuf_size))==-1) {
-@@ -577,7 +577,7 @@
+@@ -707,7 +707,7 @@
      
      if ((data = (byte *) malloc(abuf_size)) == NULL) {
  	fprintf(stderr,"XWave: Error while alloc mem for audio_buffer !\n");
@@ -155,7 +189,7 @@
  	close(audio);
  #elif defined(sgi)
  	ALcloseport(port);
-@@ -595,7 +595,7 @@
+@@ -725,7 +725,7 @@
      
      if (af_open(fname,&af,AF_NEW)==AF_ERROR) {
  	free(data);
@@ -164,7 +198,7 @@
  	close(audio);
  #elif defined(sgi)
  	ALcloseport(port);
-@@ -608,7 +608,7 @@
+@@ -738,7 +738,7 @@
      signal(SIGUSR1,write_length);
      
      while(1) {
@@ -173,7 +207,7 @@
  	if ((count=read(audio, data, abuf_size))==-1) {
  	    close(audio);
  	    af_close(af);
-@@ -632,7 +632,7 @@
+@@ -762,7 +762,7 @@
  	    return;
  	}
  	if ((count=af_write(af,(char*)data,count))==AF_ERROR) {
diff -urN /usr/ports/audio/xwave/patches/patch-ae audio/xwave/patches/patch-ae
--- /usr/ports/audio/xwave/patches/patch-ae	Thu Jan  1 09:00:00 1970
+++ audio/xwave/patches/patch-ae	Fri Jun 30 19:56:05 2000
@@ -0,0 +1,11 @@
+--- src/button.c.orig	Mon Nov  9 08:22:55 1998
++++ src/button.c	Fri Jun 30 19:49:16 2000
+@@ -679,7 +679,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)
+     gone_time=(float)(now_clock-start_clock)/(float)CLOCKS_PER_SEC;
+ #elif defined(sgi)
+     gone_time=(float)(now_clock-start_clock)/(float)750000;
diff -urN /usr/ports/audio/xwave/patches/patch-af audio/xwave/patches/patch-af
--- /usr/ports/audio/xwave/patches/patch-af	Thu Jan  1 09:00:00 1970
+++ audio/xwave/patches/patch-af	Fri Jun 30 19:56:48 2000
@@ -0,0 +1,20 @@
+--- src/effects.c.orig	Mon Nov  9 08:22:55 1998
++++ src/effects.c	Fri Jun 30 19:49:16 2000
+@@ -348,7 +348,7 @@
+ 	
+ 	switch (sr->res) {
+ 	 case 8: {
+-#if defined (linux) || defined (FreeBSD) 
++#if defined (linux) || defined (__FreeBSD__) 
+ 	     for (i=0;i<newlength;i++) newbuf[i]=obuf[(i<<1)+1]+128;
+ #elif defined (sgi) || defined (sun)
+ 	     for (i=0;i<newlength;i++) newbuf[i]=obuf[(i<<1)]+128;
+@@ -356,7 +356,7 @@
+ 	     break;
+ 	 }
+ 	 case 16: {
+-#if defined (linux) || defined (FreeBSD) 
++#if defined (linux) || defined (__FreeBSD__) 
+ 	     for (i=0;i<wd->length;i++) newbuf[(i<<1)+1]=obuf[i]-128;
+ #elif defined (sgi) || defined (sun)
+ 	     for (i=0;i<wd->length;i++) newbuf[(i<<1)]=obuf[i]-128;
diff -urN /usr/ports/audio/xwave/patches/patch-ag audio/xwave/patches/patch-ag
--- /usr/ports/audio/xwave/patches/patch-ag	Thu Jan  1 09:00:00 1970
+++ audio/xwave/patches/patch-ag	Fri Jun 30 19:56:51 2000
@@ -0,0 +1,11 @@
+--- src/endian.h.orig	Mon Nov  9 08:22:55 1998
++++ src/endian.h	Fri Jun 30 19:49:16 2000
+@@ -16,7 +16,7 @@
+ #define big_endian 1
+ #endif
+ 
+-#elif defined (linux) || defined (sun) || defined (FreeBSD)
++#elif defined (linux) || defined (sun) || defined (__FreeBSD__)
+ 
+ #if BYTE_ORDER==LITTLE_ENDIAN
+ #define little_endian 1
diff -urN /usr/ports/audio/xwave/patches/patch-ah audio/xwave/patches/patch-ah
--- /usr/ports/audio/xwave/patches/patch-ah	Thu Jan  1 09:00:00 1970
+++ audio/xwave/patches/patch-ah	Fri Jun 30 19:57:06 2000
@@ -0,0 +1,29 @@
+--- src/graphics.c.orig	Mon Nov  9 08:22:55 1998
++++ src/graphics.c	Fri Jun 30 19:49:18 2000
+@@ -30,7 +30,7 @@
+ 
+ #ifdef linux
+ #include <endian.h>
+-#elif defined (FreeBSD)
++#elif defined (__FreeBSD__)
+ #include <machine/endian.h>
+ #elif defined (sgi)
+ #include <sys/endian.h>
+@@ -1476,7 +1476,7 @@
+     if (md->mb->exposing) return;
+     */
+     
+-#if defined (linux) || defined (FreeBSD)
++#if defined (linux) || defined (__FreeBSD__)
+     if (resizing) {
+ 	resizing=FALSE;
+ 	return;
+@@ -1532,7 +1532,7 @@
+ 
+ void expose_canvas (Widget w, Main_Data *md, XExposeEvent *event, Boolean *flg)
+ {
+-#if defined (linux) || defined (FreeBSD)
++#if defined (linux) || defined (__FreeBSD__)
+     if (resizing) {
+ 	if (!event->count) resizing=FALSE;
+ 	return;
diff -urN /usr/ports/audio/xwave/patches/patch-ai audio/xwave/patches/patch-ai
--- /usr/ports/audio/xwave/patches/patch-ai	Thu Jan  1 09:00:00 1970
+++ audio/xwave/patches/patch-ai	Fri Jun 30 19:57:22 2000
@@ -0,0 +1,11 @@
+--- src/record_dialog.c.orig	Mon Nov  9 08:22:55 1998
++++ src/record_dialog.c	Fri Jun 30 19:49:18 2000
+@@ -524,7 +524,7 @@
+     sprintf(MD->mw->messages,"%.2lf kbytes (%.2lfs)",
+ 	    (double)playsize/1024,recordtime);
+     XtVaSetValues(label5,XtNlabel, MD->mw->messages, NULL);
+-#if defined(linux)||defined(FreeBSD)||defined(sun)
++#if defined(linux)||defined(__FreeBSD__)||defined(sun)
+     usleep(80000);
+ #elif defined(sgi)
+     sginap(CLK_TCK/(ONE_SECOND/80000));
diff -urN /usr/ports/audio/xwave/patches/patch-aj audio/xwave/patches/patch-aj
--- /usr/ports/audio/xwave/patches/patch-aj	Thu Jan  1 09:00:00 1970
+++ audio/xwave/patches/patch-aj	Fri Jun 30 19:57:35 2000
@@ -0,0 +1,11 @@
+--- src/riff.c.orig	Mon Nov  9 08:22:55 1998
++++ src/riff.c	Fri Jun 30 19:49:19 2000
+@@ -33,7 +33,7 @@
+ 
+ #ifdef linux
+ #include <endian.h>
+-#elif defined (FreeBSD)
++#elif defined (__FreeBSD__)
+ #include <machine/endian.h>
+ #elif defined (sgi)
+ #include <sys/endian.h>
diff -urN /usr/ports/audio/xwave/patches/patch-ak audio/xwave/patches/patch-ak
--- /usr/ports/audio/xwave/patches/patch-ak	Fri Jun 30 00:26:46 2000
+++ audio/xwave/patches/patch-ak	Thu Jan  1 09:00:00 1970
@@ -1,72 +0,0 @@
-$NetBSD: patch-ak,v 1.4 1999/12/25 23:58:59 wiz Exp $
---- FWF/FWF.rules.orig	Thu Aug 13 01:27:07 1998
-+++ FWF/FWF.rules	Fri Oct 22 15:13:20 1999
-@@ -23,13 +23,11 @@
- 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				@@\
--	RanLibrary(libdir/libname)
-+	RanLibrary(libdir/libname)					@@\
-+	sleep 1
- #endif /* AddToLibraryTarget */
- 
- /*
-@@ -44,16 +42,6 @@
- #endif /* FileCopyWhenNeeded */
- 
- /*
-- * RequireThisFileForDepend(file)
-- *
-- */
--#ifndef RequireThisFileForDepend
--#define RequireThisFileForDepend(file)					@@\
--depend:: file								@@\
--
--#endif /* RequireThisFileForDepend */
--
--/*
-  * RequireThisFileForInit(file)
-  *
-  */
-@@ -146,7 +134,8 @@
- #define InstallLibraryFile(srcdir,lib,destdir)				@@\
- install:: srcdir/lib							@@\
- 	$(INSTALL) -c $(INSTLIBFLAGS) srcdir/lib destdir		@@\
--	RanLibrary($(RANLIBINSTFLAGS) destdir/lib)
-+	RanLibrary($(RANLIBINSTFLAGS) destdir/lib)			@@\
-+	sleep 1
- #endif /* InstallLibraryFile */
- 
- /*
-@@ -244,18 +233,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 +259,6 @@
- #define SqueakyCleanSubdirs(dirs)					@@\
- NamedSqueakyCleanSubdirs(squeakyclean,dirs)
- #endif
-+
-+DependSubdirs($(SUBDIRS))
-+
diff -urN /usr/ports/audio/xwave/patches/patch-al audio/xwave/patches/patch-al
--- /usr/ports/audio/xwave/patches/patch-al	Fri Jun 30 00:26:46 2000
+++ audio/xwave/patches/patch-al	Fri Jun 30 20:53:48 2000
@@ -1,11 +1,9 @@
-$NetBSD: patch-al,v 1.2 1998/08/07 10:36:24 agc Exp $
-
---- config.site.BAK	Sat Feb 21 19:55:25 1998
-+++ config.site	Sat Feb 21 19:55:55 1998
+--- config.site.orig	Mon Nov  9 08:22:55 1998
++++ config.site	Fri Jun 30 19:52:45 2000
 @@ -1,5 +1,5 @@
  
 -EXTRA_INCLUDES=-I../ -I../include
-+EXTRA_INCLUDES=-I../ -I../include -I${X11BASE}/include
++EXTRA_INCLUDES=-I$(TOP) -I$(TOP)/include -I$(INCROOT)
  
  XCOMM On sgi we need libaudio
  XCOMM OSLIBS=-laudio
diff -urN /usr/ports/audio/xwave/patches/patch-am audio/xwave/patches/patch-am
--- /usr/ports/audio/xwave/patches/patch-am	Fri Jun 30 00:26:46 2000
+++ audio/xwave/patches/patch-am	Thu Jan  1 09:00:00 1970
@@ -1,13 +0,0 @@
-$NetBSD: patch-am,v 1.2 1998/08/07 10:36:25 agc Exp $
-
---- 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 -urN /usr/ports/audio/xwave/patches/patch-an audio/xwave/patches/patch-an
--- /usr/ports/audio/xwave/patches/patch-an	Fri Jun 30 00:26:46 2000
+++ audio/xwave/patches/patch-an	Thu Jan  1 09:00:00 1970
@@ -1,24 +0,0 @@
-$NetBSD: patch-an,v 1.2 1998/08/07 10:36:25 agc Exp $
-
---- 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 -urN /usr/ports/audio/xwave/patches/patch-ao audio/xwave/patches/patch-ao
--- /usr/ports/audio/xwave/patches/patch-ao	Fri Jun 30 00:26:46 2000
+++ audio/xwave/patches/patch-ao	Thu Jan  1 09:00:00 1970
@@ -1,11 +0,0 @@
-$NetBSD: patch-ao,v 1.2 1998/08/07 10:36:25 agc Exp $
-
---- FWF/FWF.tmpl.orig   Thu Jul 23 02:11:50 1998
-+++ FWF/FWF.tmpl        Thu Jul 23 02:16:13 1998
-@@ -54,4 +54,4 @@
- 
--XPM_LIBDIR = 
--XPM_INCDIR = 
-+XPM_LIBDIR = $(PREFIX)/lib
-+XPM_INCDIR = $(PREFIX)/include
- XPM_LIB = -lXpm
diff -urN /usr/ports/audio/xwave/patches/patch-ap audio/xwave/patches/patch-ap
--- /usr/ports/audio/xwave/patches/patch-ap	Fri Jun 30 00:26:46 2000
+++ audio/xwave/patches/patch-ap	Fri Jun 30 19:58:10 2000
@@ -1,26 +1,10 @@
---- src/record_dialog.c.orig	Wed Aug 12 23:27:10 1998
-+++ src/record_dialog.c	Sun Jun 11 13:36:13 2000
-@@ -33,8 +33,6 @@
- #include <sys/wait.h>
- #include <signal.h>
+--- FWF/Imakefile.orig	Mon Nov  9 08:22:54 1998
++++ FWF/Imakefile	Fri Jun 30 19:53:17 2000
+@@ -9,6 +9,7 @@
+ MakeDirectories(all,$(ALLDIRS))
  
--
--
- #include <X11/Intrinsic.h>	/* Intrinsics Definitions */
- #include <X11/StringDefs.h>	/* Standard Name-String definitions */
- #include <X11/Shell.h>     	/* Shell Definitions */
-@@ -52,12 +50,13 @@
- #include "button.h"
- #include "xwave_widget.h"
- #include "sample_settings.h"
--#include "audio.h"
-+//#include "audio.h"
- #include "audio_file.h"
- #include "filebrowse.h"
- #include "graphics.h"
- #include "fileop.h"
- #include "record_dialog.h"
-+#include "audio.h"
- 
- extern Main_Data *MD;
- extern AppResources app_resources;
+ InitSubdirs($(SUBDIRS))
++DependSubdirs($(SUBDIRS))
+ MakeObjectsSubdirs($(SUBDIRS))
+ MakeExecsSubdirs($(SUBDIRS))
+ GatherDescriptionSubdirs($(SUBDIRS))
diff -urN /usr/ports/audio/xwave/patches/patch-aq audio/xwave/patches/patch-aq
--- /usr/ports/audio/xwave/patches/patch-aq	Fri Jun 30 00:26:46 2000
+++ audio/xwave/patches/patch-aq	Fri Jun 30 19:57:53 2000
@@ -1,5 +1,5 @@
---- src/types.h.orig	Wed Aug 12 23:27:10 1998
-+++ src/types.h	Sun Jun 11 13:17:49 2000
+--- src/types.h.orig	Mon Nov  9 08:22:55 1998
++++ src/types.h	Fri Jun 30 19:49:19 2000
 @@ -27,7 +27,7 @@
  typedef unsigned char byte;
  typedef byte bool;
diff -urN /usr/ports/audio/xwave/patches/patch-ar audio/xwave/patches/patch-ar
--- /usr/ports/audio/xwave/patches/patch-ar	Thu Jan  1 09:00:00 1970
+++ audio/xwave/patches/patch-ar	Fri Jun 30 20:09:07 2000
@@ -0,0 +1,11 @@
+--- src/XWave.orig	Mon Nov  9 08:22:55 1998
++++ src/XWave	Fri Jun 30 20:08:56 2000
+@@ -1,7 +1,7 @@
+ ! My self defined Resources
+ 
+ XWave*wdir: 					/usr/share/data/sounds/prosonus
+-XWave*tdir:					/mnt/d/tmp
++XWave*tdir:					/tmp
+ XWave*device:					/dev/dsp
+ XWave*maxmem:					1000
+ XWave*doubleplay:				False
diff -urN /usr/ports/audio/xwave/patches/patch-as audio/xwave/patches/patch-as
--- /usr/ports/audio/xwave/patches/patch-as	Thu Jan  1 09:00:00 1970
+++ audio/xwave/patches/patch-as	Fri Jun 30 20:48:37 2000
@@ -0,0 +1,19 @@
+--- src/edit.c.orig	Mon Nov  9 08:22:55 1998
++++ src/edit.c	Fri Jun 30 20:48:28 2000
+@@ -54,6 +54,7 @@
+ extern bool button_2;
+ 
+ /* these conversion routines are also in graphics.c */
++/* Commented out. M. Kraft 2000-06-28
+ int mg_sel_leftsample(float step,int x)
+ {
+   return(ceil(step*x-0.5));
+@@ -73,7 +74,7 @@
+ {
+   return((int)(((float)x+0.5)/step));
+ } 
+-
++*/
+ 
+ void begin_up(Widget w, XtPointer client_data, XtPointer call_data)
+ {
diff -urN /usr/ports/audio/xwave/patches/patch-at audio/xwave/patches/patch-at
--- /usr/ports/audio/xwave/patches/patch-at	Thu Jan  1 09:00:00 1970
+++ audio/xwave/patches/patch-at	Fri Jun 30 20:14:23 2000
@@ -0,0 +1,10 @@
+--- FWF/src/Imakefile.orig	Mon Nov  9 08:22:54 1998
++++ FWF/src/Imakefile	Fri Jun 30 19:53:43 2000
+@@ -34,6 +34,7 @@
+ 
+ 
+ InitSubdirs($(SUBDIRS))
++DependSubdirs($(SUBDIRS))
+ MakeObjectsSubdirs($(SUBDIRS))
+ MakeExecsSubdirs($(SUBDIRS))
+ GatherDescriptionSubdirs($(SUBDIRS))
diff -urN /usr/ports/audio/xwave/pkg/PLIST audio/xwave/pkg/PLIST
--- /usr/ports/audio/xwave/pkg/PLIST	Fri Jun 30 00:26:46 2000
+++ audio/xwave/pkg/PLIST	Fri Jun 30 20:41:54 2000
@@ -1,9 +1,7 @@
-@comment $NetBSD: PLIST,v 1.2 1999/02/08 21:27:12 hubertf Exp $
 bin/xwave
 lib/X11/app-defaults/XWave
-share/doc/xwave2/README
-share/doc/xwave2/README-XWAVE2
-share/doc/xwave2/README.v06
-share/doc/xwave2/COPYING
-share/doc/xwave2/INSTALL
-@dirrm share/doc/xwave2
+share/doc/xwave/README
+share/doc/xwave/README-XWAVE2
+share/doc/xwave/README.v06
+share/doc/xwave/INSTALL
+@dirrm share/doc/xwave


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: sobomax 
State-Changed-When: Thu Jul 13 06:33:11 PDT 2000 
State-Changed-Why:  
Committed, thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=19759 
>Unformatted:
