summaryrefslogtreecommitdiff
path: root/audio/tremor-tools
diff options
context:
space:
mode:
authorhans <hans>2012-02-15 23:05:28 +0000
committerhans <hans>2012-02-15 23:05:28 +0000
commitce23150687052a51b4bf8d293f244a81a315a39a (patch)
treed637dbe6cc95cbd33c04643a266d66fd2f3ce8c4 /audio/tremor-tools
parent518d18ad83ac5e81b907db7778234dd472452e9e (diff)
downloadpkgsrc-ce23150687052a51b4bf8d293f244a81a315a39a.tar.gz
Fix build on SunOS.
Diffstat (limited to 'audio/tremor-tools')
-rw-r--r--audio/tremor-tools/distinfo4
-rw-r--r--audio/tremor-tools/patches/patch-ad24
2 files changed, 23 insertions, 5 deletions
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 <unistd.h>
+ #include <locale.h>
+
++#ifdef __sun
++#include <sys/byteorder.h>
++#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);