diff options
author | minskim <minskim> | 2004-06-09 12:53:46 +0000 |
---|---|---|
committer | minskim <minskim> | 2004-06-09 12:53:46 +0000 |
commit | fa05945a42e98c3a46b3b4fd6b1af84d252662a8 (patch) | |
tree | 2bbaf666721ff3179b5cecd18d3069ea6ec292be /audio/splay | |
parent | 38bb98dfaee17682ab02847bbe8fb41b0dcb335d (diff) | |
download | pkgsrc-fa05945a42e98c3a46b3b4fd6b1af84d252662a8.tar.gz |
Make this package build on Linux.
- Include endian.h instead of machine/endian.h on Linux.
- Include sys/soundcard.h instead of soundcard.h on every platform.
Diffstat (limited to 'audio/splay')
-rw-r--r-- | audio/splay/distinfo | 6 | ||||
-rw-r--r-- | audio/splay/patches/patch-ab | 20 | ||||
-rw-r--r-- | audio/splay/patches/patch-ae | 8 |
3 files changed, 19 insertions, 15 deletions
diff --git a/audio/splay/distinfo b/audio/splay/distinfo index 850c2467011..e496be94c8f 100644 --- a/audio/splay/distinfo +++ b/audio/splay/distinfo @@ -1,10 +1,10 @@ -$NetBSD: distinfo,v 1.3 2002/08/05 17:39:17 wiz Exp $ +$NetBSD: distinfo,v 1.4 2004/06/09 12:53:46 minskim Exp $ SHA1 (splay-0.8.2.tar.gz) = 25288afa1b52bf25be8f9c4ceb44325c50fa00c8 Size (splay-0.8.2.tar.gz) = 109060 bytes SHA1 (patch-aa) = a1c7edc9939454e437a6ad301cd5955f59612ed5 -SHA1 (patch-ab) = ca72194251e01de99c91362da1207f310a9d52be +SHA1 (patch-ab) = 9fc28c320ad90922dd0aa583904acd58f4cf3ba1 SHA1 (patch-ac) = f90b0e93ed4e72d20926e1bbe7dd5d21f4b39770 SHA1 (patch-ad) = 5d52e0878eb313a7d7684a6505daa4ece3add746 -SHA1 (patch-ae) = d5733b9d73b18713e203581a6d3ea49e32a9a4b7 +SHA1 (patch-ae) = 6b343541593d1d6ca8dd641ebb299a95d3bdc067 SHA1 (patch-ai) = 9ac8c7aa7a7d341585e57dec4ddba4e285db7b34 diff --git a/audio/splay/patches/patch-ab b/audio/splay/patches/patch-ab index 24b82317641..1e438a50646 100644 --- a/audio/splay/patches/patch-ab +++ b/audio/splay/patches/patch-ab @@ -1,16 +1,20 @@ -$NetBSD: patch-ab,v 1.5 2002/08/05 17:39:18 wiz Exp $ +$NetBSD: patch-ab,v 1.6 2004/06/09 12:53:46 minskim Exp $ ---- mpegsound/mpegsound.h.orig Fri Mar 6 18:43:55 1998 +--- mpegsound/mpegsound.h.orig 1998-03-06 11:43:55.000000000 -0600 +++ mpegsound/mpegsound.h -@@ -11,6 +11,7 @@ +@@ -11,6 +11,11 @@ /************************************/ #include <stdio.h> #include <sys/types.h> ++#ifdef __linux__ ++#include <endian.h> ++#else +#include <machine/endian.h> ++#endif #ifdef PTHREADEDMPEG #ifdef HAVE_PTHREAD_H -@@ -90,6 +91,8 @@ +@@ -90,6 +95,8 @@ /*******************************************/ /* Define values for Microsoft WAVE format */ /*******************************************/ @@ -19,11 +23,10 @@ $NetBSD: patch-ab,v 1.5 2002/08/05 17:39:18 wiz Exp $ #define RIFF 0x46464952 #define WAVE 0x45564157 #define FMT 0x20746D66 -@@ -100,6 +103,21 @@ - +@@ -101,6 +108,21 @@ #define MODE_MONO 0 #define MODE_STEREO 1 -+ + +#else + +#define RIFF 0x52494646 @@ -38,6 +41,7 @@ $NetBSD: patch-ab,v 1.5 2002/08/05 17:39:18 wiz Exp $ +#define MODE_STEREO 1 + +#endif - ++ /********************/ /* Type definitions */ + /********************/ diff --git a/audio/splay/patches/patch-ae b/audio/splay/patches/patch-ae index 0c6c6b169dc..cd2e3adaff1 100644 --- a/audio/splay/patches/patch-ae +++ b/audio/splay/patches/patch-ae @@ -1,16 +1,16 @@ -$NetBSD: patch-ae,v 1.4 2002/08/05 17:39:19 wiz Exp $ +$NetBSD: patch-ae,v 1.5 2004/06/09 12:53:46 minskim Exp $ ---- mpegsound/mpegtoraw.cc.orig Fri Mar 6 18:43:55 1998 +--- mpegsound/mpegtoraw.cc.orig 1998-03-06 11:43:55.000000000 -0600 +++ mpegsound/mpegtoraw.cc @@ -15,6 +15,7 @@ #include "mpegsound.h" #include "mpegsound_locals.h" -+#include <soundcard.h> ++#include <sys/soundcard.h> #define MY_PI 3.14159265358979323846 -@@ -618,7 +619,7 @@ +@@ -618,7 +619,7 @@ bool Mpegtoraw::run(int frames) if(frames<0) { frames=-frames; |