svn commit: r345030 - in head/audio/spiralsynth: . files

Dmitry Marakasov amdmi3 at FreeBSD.org
Wed Feb 19 09:00:18 UTC 2014


Author: amdmi3
Date: Wed Feb 19 09:00:17 2014
New Revision: 345030
URL: http://svnweb.freebsd.org/changeset/ports/345030
QAT: https://qat.redports.org/buildarchive/r345030/

Log:
  - Fix build on 10.x

Added:
  head/audio/spiralsynth/files/patch-SpiralSound-RiffWav.C   (contents, props changed)
Modified:
  head/audio/spiralsynth/Makefile
  head/audio/spiralsynth/files/patch-SpiralInfo.C

Modified: head/audio/spiralsynth/Makefile
==============================================================================
--- head/audio/spiralsynth/Makefile	Wed Feb 19 09:00:13 2014	(r345029)
+++ head/audio/spiralsynth/Makefile	Wed Feb 19 09:00:17 2014	(r345030)
@@ -34,6 +34,7 @@ post-patch:
 	SpiralInfo.C \
 	SpiralSound/Midi.h \
 	SpiralSound/Output.h \
+	SpiralSound/RiffWav.C \
 	SpiralSound/SpiralInfo.h \
 	SpiralSound/Synth.C \
 	SpiralSound/Synth.h \
@@ -49,6 +50,7 @@ post-patch:
 			s|-lm|${PTHREAD_LIBS} -lm|g ; \
 			s|/usr/X11R6|${LOCALBASE}|g ; \
 			s|iostream.h|iostream|g ;\
+			s|fstream.h|fstream|g ;\
 			s|<strstream>|<sstream>|g ;\
 			s|machine/soundcard|sys/soundcard|g' \
 			< ${WRKSRC}/${ii}.orig \

Modified: head/audio/spiralsynth/files/patch-SpiralInfo.C
==============================================================================
--- head/audio/spiralsynth/files/patch-SpiralInfo.C	Wed Feb 19 09:00:13 2014	(r345029)
+++ head/audio/spiralsynth/files/patch-SpiralInfo.C	Wed Feb 19 09:00:17 2014	(r345030)
@@ -1,14 +1,12 @@
 --- SpiralInfo.C.orig	Mon Feb  9 13:26:01 2004
 +++ SpiralInfo.C	Mon Feb  9 13:26:59 2004
-@@ -22,8 +22,10 @@
+@@ -22,8 +22,8 @@
  
  #include "SpiralSound/SpiralInfo.h"
  
 -float RandFloat(float s=0.0f, float e=1.0f)
 +float RandFloat(float s, float e)
  {
-+	s=0.0f;
-+	e=1.0f;
  	return s+((rand()%10000/10000.0)*(e-s));
  }
  

Added: head/audio/spiralsynth/files/patch-SpiralSound-RiffWav.C
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/audio/spiralsynth/files/patch-SpiralSound-RiffWav.C	Wed Feb 19 09:00:17 2014	(r345030)
@@ -0,0 +1,10 @@
+--- SpiralSound/RiffWav.C.orig	2000-11-26 18:52:41.000000000 +0300
++++ SpiralSound/RiffWav.C	2014-02-13 05:40:18.946204286 +0400
+@@ -143,6 +143,7 @@
+ 			m_TotalLength/=2;
+ 			
+ 			// leave the filepointer on the first sample
++			return 1;
+ 		}
+ 		else
+ 		{


More information about the svn-ports-all mailing list