diff --git a/vegastrike-0.4.3-ppc.patch b/vegastrike-0.4.3-ppc.patch new file mode 100644 index 0000000..0186b8a --- /dev/null +++ b/vegastrike-0.4.3-ppc.patch @@ -0,0 +1,20 @@ +--- vegastrike-0.4.3/objconv/mesher/endianness.h~ 2007-05-10 22:55:21.000000000 +0200 ++++ vegastrike-0.4.3/objconv/mesher/endianness.h 2007-05-10 22:55:21.000000000 +0200 +@@ -42,7 +42,7 @@ + (((uint32_t)(x) >> 8) & 0x0000FF00) | \ + ((uint32_t)(x) >> 24)) + # define le16_to_cpu(x) (((x&0xFF)<<8) | ((unsigned short)(x)>>8)) +- # define le64_to_cpu(x) (DONTUSE__NXSwapBigDoubleToLittle(x)) ++ # define le64_to_cpu(x) (DONTUSE__NXSwapBigDoubleToLittleEndian(x)) + # else + # define le32_to_cpu(x) (x) + # define le16_to_cpu(x) (x) +@@ -53,7 +53,7 @@ + # include + # define le32_to_cpu(x) (bswap_32(x)) + # define le16_to_cpu(x) (bswap_16(x)) +- # define le64_to_cpu(x) (DONTUSE__NXSwapBigDoubleToLittle(x)) ++ # define le64_to_cpu(x) (DONTUSE__NXSwapBigDoubleToLittleEndian(x)) + #else + # define le32_to_cpu(x) (x) + # define le16_to_cpu(x) (x) diff --git a/vegastrike.spec b/vegastrike.spec index ee855fd..0c6200e 100644 --- a/vegastrike.spec +++ b/vegastrike.spec @@ -44,6 +44,7 @@ Patch12: vegastrike-0.4.3-gcc41-fix.patch Patch13: vegastrike-0.4.3-use-system-boost.patch Patch14: vegastrike-0.4.3-openal.patch Patch15: vegastrike-0.4.3-sys-python.patch +Patch16: vegastrike-0.4.3-ppc.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: libGLU-devel freeglut-devel libXi-devel libXmu-devel gtk2-devel BuildRequires: libjpeg-devel libpng-devel boost-devel expat-devel python-devel @@ -73,6 +74,7 @@ Yet danger lurks in the space beyond. %patch13 -p1 -b .boost %patch14 -p1 -b .openal %patch15 -p1 -b .sys-py +%patch16 -p1 -b .ppc chmod -x `find src -type f` sed -i 's|lib/python|%{_lib}/python|g' configure.in sed -i 's/\r//g' README @@ -147,6 +149,7 @@ touch --no-create %{_datadir}/icons/hicolor || : %changelog * Wed May 9 2007 Hans de Goede 0.4.3-3 - Add some missing files including COPYING to %%doc +- Fix PPC compilation * Mon Apr 23 2007 Hans de Goede 0.4.3-2 - Add some missing BuildRequires