public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: media-libs/ftgl/files/, media-libs/ftgl/
@ 2022-03-13 22:37 James Le Cuirot
  0 siblings, 0 replies; only message in thread
From: James Le Cuirot @ 2022-03-13 22:37 UTC (permalink / raw
  To: gentoo-commits

commit:     2919a7d7469a54cf50ff469f76f71bf7cc4ca20f
Author:     Denis Pronin <dannftk <AT> yandex <DOT> ru>
AuthorDate: Sat Mar 12 10:07:26 2022 +0000
Commit:     James Le Cuirot <chewi <AT> gentoo <DOT> org>
CommitDate: Sun Mar 13 22:36:29 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2919a7d7

added ftgl-2.1.3_rc5-clang.patch

patch that fixes building with clang using c++11

Signed-off-by: Denis Pronin <dannftk <AT> yandex.ru>
Closes: https://github.com/gentoo/gentoo/pull/24505
Signed-off-by: James Le Cuirot <chewi <AT> gentoo.org>

 media-libs/ftgl/files/ftgl-2.1.3_rc5-clang.patch | 24 ++++++++++++++++++++++++
 media-libs/ftgl/ftgl-2.1.3_rc5.ebuild            |  1 +
 2 files changed, 25 insertions(+)

diff --git a/media-libs/ftgl/files/ftgl-2.1.3_rc5-clang.patch b/media-libs/ftgl/files/ftgl-2.1.3_rc5-clang.patch
new file mode 100644
index 000000000000..d9866a591733
--- /dev/null
+++ b/media-libs/ftgl/files/ftgl-2.1.3_rc5-clang.patch
@@ -0,0 +1,24 @@
+--- a/demo/simple.cpp
++++ b/demo/simple.cpp
+@@ -105,14 +105,14 @@
+     float t2 = sin(n / 50 + 1);
+     float t3 = sin(n / 30 + 2);
+ 
+-    float ambient[4]  = { (t1 + 2.0) / 3,
+-                          (t2 + 2.0) / 3,
+-                          (t3 + 2.0) / 3, 0.3 };
+-    float diffuse[4]  = { 1.0, 0.9, 0.9, 1.0 };
+-    float specular[4] = { 1.0, 0.7, 0.7, 1.0 };
+-    float position[4] = { 100.0, 100.0, 0.0, 1.0 };
++    float ambient[4]  = { (t1 + 2.0f) / 3,
++                          (t2 + 2.0f) / 3,
++                          (t3 + 2.0f) / 3, 0.3 };
++    float diffuse[4]  = { 1.0f, 0.9f, 0.9f, 1.0f };
++    float specular[4] = { 1.0f, 0.7f, 0.7f, 1.0f };
++    float position[4] = { 100.0f, 100.0f, 0.0f, 1.0f };
+ 
+-    float front_ambient[4]  = { 0.7, 0.7, 0.7, 0.0 };
++    float front_ambient[4]  = { 0.7f, 0.7f, 0.7f, 0.0f };
+ 
+     glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
+ 

diff --git a/media-libs/ftgl/ftgl-2.1.3_rc5.ebuild b/media-libs/ftgl/ftgl-2.1.3_rc5.ebuild
index 8d9baca0cd07..22107b5dd36a 100644
--- a/media-libs/ftgl/ftgl-2.1.3_rc5.ebuild
+++ b/media-libs/ftgl/ftgl-2.1.3_rc5.ebuild
@@ -31,6 +31,7 @@ PATCHES=(
 	"${FILESDIR}"/${P}-gentoo.patch
 	"${FILESDIR}"/${P}-underlink.patch
 	"${FILESDIR}"/${P}-freetype_pkgconfig.patch
+	"${FILESDIR}"/${P}-clang.patch
 )
 
 src_prepare() {


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2022-03-13 22:37 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-03-13 22:37 [gentoo-commits] repo/gentoo:master commit in: media-libs/ftgl/files/, media-libs/ftgl/ James Le Cuirot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox