diff options
author | 2004-08-19 10:57:28 +0000 | |
---|---|---|
committer | 2004-08-19 10:57:28 +0000 | |
commit | 2d3f788eea54d8c24d5eb115eb234fc872e43ac8 (patch) | |
tree | 037a7f625cac0361eed3b35a7d55510f940ddb13 /dev-games/irrlicht | |
parent | Added ~sparc keyword. (Manifest recommit) (diff) | |
download | gentoo-2-2d3f788eea54d8c24d5eb115eb234fc872e43ac8.tar.gz gentoo-2-2d3f788eea54d8c24d5eb115eb234fc872e43ac8.tar.bz2 gentoo-2-2d3f788eea54d8c24d5eb115eb234fc872e43ac8.zip |
Add patch from marco to fix matrix function (bug #44429)
Diffstat (limited to 'dev-games/irrlicht')
-rw-r--r-- | dev-games/irrlicht/ChangeLog | 6 | ||||
-rw-r--r-- | dev-games/irrlicht/files/0.6-matrix4.patch | 44 | ||||
-rw-r--r-- | dev-games/irrlicht/irrlicht-0.6.ebuild | 16 |
3 files changed, 57 insertions, 9 deletions
diff --git a/dev-games/irrlicht/ChangeLog b/dev-games/irrlicht/ChangeLog index f75900295ee7..0cda6a860425 100644 --- a/dev-games/irrlicht/ChangeLog +++ b/dev-games/irrlicht/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for dev-games/irrlicht # Copyright 2000-2004 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-games/irrlicht/ChangeLog,v 1.5 2004/06/24 22:11:56 agriffis Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-games/irrlicht/ChangeLog,v 1.6 2004/08/19 10:57:28 mr_bones_ Exp $ + + 19 Aug 2004; Michael Sterrett <mr_bones_@gentoo.org> + +files/0.6-matrix4.patch, irrlicht-0.6.ebuild: + Add patch from marco to fix matrix function (bug #44429) 13 Apr 2004; David Holm <dholm@gentoo.org> irrlicht-0.6.ebuild: Added to ~ppc. diff --git a/dev-games/irrlicht/files/0.6-matrix4.patch b/dev-games/irrlicht/files/0.6-matrix4.patch new file mode 100644 index 000000000000..bf5d3742a2d9 --- /dev/null +++ b/dev-games/irrlicht/files/0.6-matrix4.patch @@ -0,0 +1,44 @@ +diff -Nur irrlicht-0.6/include/matrix4.h irrlicht-0.6_new/include/matrix4.h +--- irrlicht-0.6/include/matrix4.h 2004-08-17 23:18:27.372459013 +0200 ++++ irrlicht-0.6_new/include/matrix4.h 2004-08-17 23:21:56.520925016 +0200 +@@ -186,7 +186,7 @@ + newMatrix[8] = m1[0]*m2[8] + m1[4]*m2[9] + m1[8]*m2[10] + m1[12]*m2[11];
+ newMatrix[9] = m1[1]*m2[8] + m1[5]*m2[9] + m1[9]*m2[10] + m1[13]*m2[11];
+ newMatrix[10] = m1[2]*m2[8] + m1[6]*m2[9] + m1[10]*m2[10] + m1[14]*m2[11];
+- newMatrix[11] = m1[3]*m2[8] + m1[7]*m2[10] + m1[11]*m2[10] + m1[15]*m2[11];
++ newMatrix[11] = m1[3]*m2[8] + m1[7]*m2[9] + m1[11]*m2[10] + m1[15]*m2[11];
+
+ newMatrix[12] = m1[0]*m2[12] + m1[4]*m2[13] + m1[8]*m2[14] + m1[12]*m2[15];
+ newMatrix[13] = m1[1]*m2[12] + m1[5]*m2[13] + m1[9]*m2[14] + m1[13]*m2[15];
+@@ -308,7 +308,7 @@ +
+ f32 rotx, roty, X, Z;
+
+- if (fabs(Y)>0.0005f)
++ if (fabs(C)>0.0005f)
+ {
+ rotx = mat(2,2) / C;
+ roty = mat(2,1) / C;
+@@ -320,16 +320,16 @@ + else
+ {
+ X = 0.0f;
+- rotx = -mat(1,1);
+- roty = mat(1,0);
++ rotx = mat(1,1);
++ roty = -mat(0,1);
+ Z = atan2f( roty, rotx ) * (f32)GRAD_PI;
+ }
+
+- if (fabs(X)>=360.00f) X=0.00f;
+- if (fabs(Y)>=360.00f) Y=0.00f;
+- if (fabs(Z)>=360.00f) Z=0.00f;
++ if (X<0.00f) X+=360.00f;
++ if (Y<0.00f) Y+=360.00f;
++ if (Z<0.00f) Z+=360.00f;
+
+- return vector3df(X,Y,Z);
++ return vector3df((f32)X,(f32)Y,(f32)Z);
+ }
+
+ inline void matrix4::setInverseRotationRadians( const vector3df& rotation )
diff --git a/dev-games/irrlicht/irrlicht-0.6.ebuild b/dev-games/irrlicht/irrlicht-0.6.ebuild index b502442e3de8..e24cdba0b619 100644 --- a/dev-games/irrlicht/irrlicht-0.6.ebuild +++ b/dev-games/irrlicht/irrlicht-0.6.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-games/irrlicht/irrlicht-0.6.ebuild,v 1.3 2004/06/24 22:11:56 agriffis Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-games/irrlicht/irrlicht-0.6.ebuild,v 1.4 2004/08/19 10:57:28 mr_bones_ Exp $ inherit eutils @@ -20,20 +20,20 @@ DEPEND="media-libs/jpeg src_unpack() { unpack ${A} - cd ${S} - cd source + cd ${S}/source unzip -qo source.zip || die "unpacking source.zip" rm -rf source.zip zlib jpeglib ln -s /usr/include jpeglib ln -s /usr/include zlib - epatch ${FILESDIR}/${PV}-system-libs.patch - epatch ${FILESDIR}/${PV}-jpeg.patch - epatch ${FILESDIR}/${PV}-opengl.patch + epatch "${FILESDIR}/${PV}-system-libs.patch" + epatch "${FILESDIR}/${PV}-jpeg.patch" + epatch "${FILESDIR}/${PV}-opengl.patch" + epatch "${FILESDIR}/${PV}-matrix4.patch" } src_compile() { cd source - emake || die + emake || die "emake failed" } src_install() { @@ -41,5 +41,5 @@ src_install() { insinto /usr/include/${PN} doins include/* dodoc changes.txt readme.txt - use doc && cp -r examples media ${D}/usr/share/doc/${PF}/ + use doc && cp -r examples media "${D}/usr/share/doc/${PF}/" } |