From ce23150687052a51b4bf8d293f244a81a315a39a Mon Sep 17 00:00:00 2001 From: hans Date: Wed, 15 Feb 2012 23:05:28 +0000 Subject: Fix build on SunOS. --- audio/tremor-tools/distinfo | 4 ++-- audio/tremor-tools/patches/patch-ad | 24 +++++++++++++++++++++--- 2 files changed, 23 insertions(+), 5 deletions(-) (limited to 'audio/tremor-tools') diff --git a/audio/tremor-tools/distinfo b/audio/tremor-tools/distinfo index 81749dc996d..3f5ef582899 100644 --- a/audio/tremor-tools/distinfo +++ b/audio/tremor-tools/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.6 2011/03/20 19:13:15 shattered Exp $ +$NetBSD: distinfo,v 1.7 2012/02/15 23:05:28 hans Exp $ SHA1 (vorbis-tools-1.0.tar.gz) = 5c2508786cf6a2a270c697d3debe66ee83df376d RMD160 (vorbis-tools-1.0.tar.gz) = 2f3874699be904fdf64c6edf09e21ccb8f0eee28 @@ -6,7 +6,7 @@ Size (vorbis-tools-1.0.tar.gz) = 425404 bytes SHA1 (patch-aa) = c2104ab110674452a440d3992158627db89b9eba SHA1 (patch-ab) = 67987002621dd1aedddc39177d3e8267cd8aa930 SHA1 (patch-ac) = c38abc6647d990c89258e14a959db80cd4656db7 -SHA1 (patch-ad) = f4876082223020f88aec9fe2797948860076009f +SHA1 (patch-ad) = 1a8a23bd3a980bc854ae3c83ba98a642ae13d410 SHA1 (patch-ae) = 37b3128b58fd6dcaf303930c64ac7bf6df9fa043 SHA1 (patch-af) = 4bdf3edbd80ffdeacdc260fe172468ec2b0b3efb SHA1 (patch-ag) = 729ca84168ee781335429840ee54a2b894b82f54 diff --git a/audio/tremor-tools/patches/patch-ad b/audio/tremor-tools/patches/patch-ad index 7f61d9196fa..ff613405e75 100644 --- a/audio/tremor-tools/patches/patch-ad +++ b/audio/tremor-tools/patches/patch-ad @@ -1,8 +1,26 @@ -$NetBSD: patch-ad,v 1.2 2011/03/20 19:13:16 shattered Exp $ +$NetBSD: patch-ad,v 1.3 2012/02/15 23:05:28 hans Exp $ --- ogg123/ogg123.c.orig 2002-07-06 19:12:18.000000000 +0000 +++ ogg123/ogg123.c -@@ -453,6 +453,16 @@ void play (char *source_string) +@@ -32,6 +32,17 @@ + #include + #include + ++#ifdef __sun ++#include ++#define LITTLE_ENDIAN 1234 ++#define BIG_ENDIAN 4321 ++#ifdef _BIG_ENDIAN ++#define BYTE_ORDER BIG_ENDIAN ++#else ++#define BYTE_ORDER LITTLE_ENDIAN ++#endif ++#endif ++ + #include "audio.h" + #include "buffer.h" + #include "callbacks.h" +@@ -453,6 +464,16 @@ void play (char *source_string) return; } @@ -19,7 +37,7 @@ $NetBSD: patch-ad,v 1.2 2011/03/20 19:13:16 shattered Exp $ /* Decide which statistics are valid */ select_stats(stat_format, &options, source, decoder, audio_buffer); -@@ -580,7 +590,13 @@ void play (char *source_string) +@@ -580,7 +601,13 @@ void play (char *source_string) format->cleanup(decoder); transport->close(source); -- cgit v1.2.3