From f6fb7dedcf5c91feb5711ce992bd167d40a34655 Mon Sep 17 00:00:00 2001 From: Dan Horák Date: May 22 2013 14:38:09 +0000 Subject: fix build on big-endian platforms --- diff --git a/audacious-plugins-3.1-beta1-bigendian.patch b/audacious-plugins-3.1-beta1-bigendian.patch new file mode 100644 index 0000000..61c4353 --- /dev/null +++ b/audacious-plugins-3.1-beta1-bigendian.patch @@ -0,0 +1,12 @@ +diff -up audacious-plugins-3.4-beta1/src/xsf/desmume/SPU.c.bigendian audacious-plugins-3.4-beta1/src/xsf/desmume/SPU.c +--- audacious-plugins-3.4-beta1/src/xsf/desmume/SPU.c.bigendian 2013-05-22 16:32:52.000000000 +0200 ++++ audacious-plugins-3.4-beta1/src/xsf/desmume/SPU.c 2013-05-22 16:33:04.000000000 +0200 +@@ -563,7 +563,7 @@ static void decode_pcm16(SChannel *ch, s + for(oi = 0; oi < length; oi++) + { + #ifdef WORDS_BIGENDIAN +- ch->output = (s16)T1ReadWord((u8 *)ch->buf16, pos << 1); ++ ch->output = (s16)T1ReadWord((u8 *)ch->buf16, (int)pos << 1); + #else + ch->output = (s16)ch->buf16[(int)pos]; + #endif diff --git a/audacious-plugins.spec b/audacious-plugins.spec index 55cc2ad..f8daec6 100644 --- a/audacious-plugins.spec +++ b/audacious-plugins.spec @@ -11,7 +11,7 @@ Name: audacious-plugins Version: 3.4 -Release: 0.5.beta1%{?dist} +Release: 0.6.beta1%{?dist} Summary: Plugins for the Audacious audio player Group: Applications/Multimedia URL: http://audacious-media-player.org/ @@ -28,6 +28,8 @@ Patch0: audacious-plugins-3.0-alpha1-xmms-skindir.patch Patch1: audacious-plugins-3.4-alpha1-enable-gnomeshortcuts.patch # Fedora customization: add default system-wide module_path Patch2: audacious-plugins-3.1-beta1-ladspa.patch +# fix build on big-endian platforms +Patch3: audacious-plugins-3.1-beta1-bigendian.patch BuildRequires: audacious-devel >= %{aud_ver} BuildRequires: gettext-devel @@ -128,6 +130,7 @@ autoreconf -f -I m4 %patch0 -p1 -b .xmms-skindir %patch1 -p1 -b .enable-gnomeshortcuts %patch2 -p1 -b .ladspa +%patch3 -p1 -b .bigendian for i in src/ladspa/plugin.c do @@ -239,6 +242,9 @@ make install DESTDIR=${RPM_BUILD_ROOT} INSTALL="install -p" %changelog +* Wed May 22 2013 Dan Horák - 3.4-0.6.beta1 +- fix build on big-endian platforms + * Thu May 2 2013 Michael Schwendt - 3.4-0.5.beta1 - BR soxr-devel (new package) and build SoX Resampler plugin (#958421). - Due to more build requirements being optional also for features enabled