pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/audio/splay Make this package build on Linux.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/dc0eea8164f8
branches:  trunk
changeset: 476397:dc0eea8164f8
user:      minskim <minskim%pkgsrc.org@localhost>
date:      Wed Jun 09 12:53:46 2004 +0000

description:
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:

 audio/splay/distinfo         |   6 +++---
 audio/splay/patches/patch-ab |  20 ++++++++++++--------
 audio/splay/patches/patch-ae |   8 ++++----
 3 files changed, 19 insertions(+), 15 deletions(-)

diffs (92 lines):

diff -r 866082acafb4 -r dc0eea8164f8 audio/splay/distinfo
--- a/audio/splay/distinfo      Wed Jun 09 09:22:35 2004 +0000
+++ b/audio/splay/distinfo      Wed Jun 09 12:53:46 2004 +0000
@@ -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 -r 866082acafb4 -r dc0eea8164f8 audio/splay/patches/patch-ab
--- a/audio/splay/patches/patch-ab      Wed Jun 09 09:22:35 2004 +0000
+++ b/audio/splay/patches/patch-ab      Wed Jun 09 12:53:46 2004 +0000
@@ -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 @@
  #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 @@
 +#define MODE_STEREO 1
 +
 +#endif
- 
++
  /********************/
  /* Type definitions */
+ /********************/
diff -r 866082acafb4 -r dc0eea8164f8 audio/splay/patches/patch-ae
--- a/audio/splay/patches/patch-ae      Wed Jun 09 09:22:35 2004 +0000
+++ b/audio/splay/patches/patch-ae      Wed Jun 09 12:53:46 2004 +0000
@@ -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;



Home | Main Index | Thread Index | Old Index