pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

din: Added support for clang / clang++ builds (in FreeBSD 11.1).



Module Name:	pkgsrc-wip
Committed By:	fox <santhosh.raju%gmail.com@localhost>
Pushed By:	fox
Date:		Sun Jun 17 23:31:22 2018 +0530
Changeset:	cc6df38a36ca7970a23cfd3a538b205ea2a6289f

Modified Files:
	din/distinfo
Added Files:
	din/patches/patch-src_main.cc

Log Message:
din: Added support for clang / clang++ builds (in FreeBSD 11.1).

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=cc6df38a36ca7970a23cfd3a538b205ea2a6289f

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 din/distinfo                  |  1 +
 din/patches/patch-src_main.cc | 18 ++++++++++++++++++
 2 files changed, 19 insertions(+)

diffs:
diff --git a/din/distinfo b/din/distinfo
index 395e1f7d40..e8d1a88299 100644
--- a/din/distinfo
+++ b/din/distinfo
@@ -4,3 +4,4 @@ SHA1 (din-35.tar.gz) = 8a21258da1f0c97cbc8372c3e9f87f45e915ed8c
 RMD160 (din-35.tar.gz) = a86fe3198a7472ca68024ce53b6e5784be01db7e
 SHA512 (din-35.tar.gz) = a3f16996eab7362624e6bb6156843173c6d5e5662843a4502920aedff4c81efa34723d07b8982973cc99ff5e0c945efeb1b66d7e52e14f92cf26d817b8a5a309
 Size (din-35.tar.gz) = 3613126 bytes
+SHA1 (patch-src_main.cc) = 21a55217a2e03a49ccbae4e46994e6da68f83d92
diff --git a/din/patches/patch-src_main.cc b/din/patches/patch-src_main.cc
new file mode 100644
index 0000000000..6ea8cafe45
--- /dev/null
+++ b/din/patches/patch-src_main.cc
@@ -0,0 +1,18 @@
+$NetBSD$
+
+Removed "extern" so that clang (in FreeBSD 11.1) builds are fixed.
+
+--- src/main.cc.orig	2018-06-17 16:39:50.160053000 +0000
++++ src/main.cc
+@@ -73,7 +73,11 @@ extern const float TWO_PI = 2 * PI;
+ extern const float PI_BY_180 = PI / 180.;
+ extern const int MILLION = 1000000;
+ extern const char SPC = ' ';
++#if defined (__FreeBSD__)
++const string tokenizer::DEFAULT_DELIMITER (" ");
++#else
+ extern const string tokenizer::DEFAULT_DELIMITER (" ");
++#endif
+ float widget::R = 0.980392, widget::G = 0.792157, widget::B = 0.509804; // default color for all widgets
+ 
+ // for attack, decay and deltas [see keyboard-keyboard.cc, mondrian.cc, triggered_note.cc]


Home | Main Index | Thread Index | Old Index