aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSanthosh Raju <fox@FreeBSD.org>2021-07-14 02:56:45 +0000
committerSanthosh Raju <fox@FreeBSD.org>2021-07-14 03:01:24 +0000
commit910486d2112b3af32019415d09bc86156cb8a52b (patch)
tree7611bf3b6bd3657b5559f9d1a087563469da9170
parentdb140f4bdbf0df2c9509d57638031a023135e264 (diff)
downloadports-910486d2112b3af32019415d09bc86156cb8a52b.tar.gz
ports-910486d2112b3af32019415d09bc86156cb8a52b.zip
audio/din: Update distinfo due to upstream change.
- Also include the patches to fix the build.
-rw-r--r--audio/din/distinfo6
-rw-r--r--audio/din/files/patch-src_ball.cc13
-rw-r--r--audio/din/files/patch-src_modulator.h13
-rw-r--r--audio/din/files/patch-src_mondrian.cc13
4 files changed, 42 insertions, 3 deletions
diff --git a/audio/din/distinfo b/audio/din/distinfo
index 7575e7511f81..8c55751959fc 100644
--- a/audio/din/distinfo
+++ b/audio/din/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1626083256
-SHA256 (din-51.1.tar.gz) = 783484ef6e13f1e8da7239d02c2c1f13b0c3c6917dbd200441fb227aa6e3a7e8
-SIZE (din-51.1.tar.gz) = 3700738
+TIMESTAMP = 1626222892
+SHA256 (din-51.1.tar.gz) = 4cdeebba091a8ed298840ccdecf204089d8481c5599bbd8bd526f3466a728e7c
+SIZE (din-51.1.tar.gz) = 3700748
diff --git a/audio/din/files/patch-src_ball.cc b/audio/din/files/patch-src_ball.cc
new file mode 100644
index 000000000000..c786baad8a95
--- /dev/null
+++ b/audio/din/files/patch-src_ball.cc
@@ -0,0 +1,13 @@
+Fixes the redeclaration error. float vs const float.
+
+--- src/ball.cc.orig 2021-07-12 10:55:38 UTC
++++ src/ball.cc
+@@ -14,7 +14,7 @@
+ using namespace std;
+
+ extern mondrian mondrian0;
+-extern float PI_BY_180;
++extern const float PI_BY_180;
+ extern float TWO_PI;
+ extern int TRAILSIZE;
+
diff --git a/audio/din/files/patch-src_modulator.h b/audio/din/files/patch-src_modulator.h
new file mode 100644
index 000000000000..3f582d51c6cc
--- /dev/null
+++ b/audio/din/files/patch-src_modulator.h
@@ -0,0 +1,13 @@
+Fixes the redeclaration error. float vs const float.
+
+--- src/modulator.h.orig 2021-07-12 11:03:15 UTC
++++ src/modulator.h
+@@ -70,7 +70,7 @@ struct autorotator {
+ inline void setdeg (float d) {
+ deg = d;
+ if (deg < 0.0f) deg = 0.0f;
+- extern float PI_BY_180;
++ extern const float PI_BY_180;
+ angle.persec = deg * PI_BY_180;
+ }
+
diff --git a/audio/din/files/patch-src_mondrian.cc b/audio/din/files/patch-src_mondrian.cc
new file mode 100644
index 000000000000..18620eac5a2f
--- /dev/null
+++ b/audio/din/files/patch-src_mondrian.cc
@@ -0,0 +1,13 @@
+Fixes the redeclaration error. float vs const float.
+
+--- src/mondrian.cc.orig 2021-07-12 13:10:37 UTC
++++ src/mondrian.cc
+@@ -42,7 +42,7 @@ extern gotog _gotomax;
+ extern int quit;
+ extern beat2value octave_shift;
+ extern float GOLDEN_RATIO;
+-extern float PI_BY_180;
++extern const float PI_BY_180;
+ extern int IPS;
+ extern std::map <string, float> INTERVALS;
+ extern oscilloscope scope;