diff options
author | hans <hans@pkgsrc.org> | 2012-01-11 19:51:26 +0000 |
---|---|---|
committer | hans <hans@pkgsrc.org> | 2012-01-11 19:51:26 +0000 |
commit | 65c4bdb924e1457f57516097a448e50a22cfcb04 (patch) | |
tree | 963945da1e5e1df7ea75d45d6e2c36c691e59fbd /audio/mppenc | |
parent | 0335f5d8289eeb47510d2b47d38bc8aa6dd1e522 (diff) | |
download | pkgsrc-65c4bdb924e1457f57516097a448e50a22cfcb04.tar.gz |
Fix build on SunOS.
Diffstat (limited to 'audio/mppenc')
-rw-r--r-- | audio/mppenc/distinfo | 5 | ||||
-rw-r--r-- | audio/mppenc/patches/patch-ab | 4 | ||||
-rw-r--r-- | audio/mppenc/patches/patch-src_wave__in.c | 17 |
3 files changed, 22 insertions, 4 deletions
diff --git a/audio/mppenc/distinfo b/audio/mppenc/distinfo index 5768f7088b6..d428899464f 100644 --- a/audio/mppenc/distinfo +++ b/audio/mppenc/distinfo @@ -1,7 +1,8 @@ -$NetBSD: distinfo,v 1.2 2007/01/29 21:04:22 joerg Exp $ +$NetBSD: distinfo,v 1.3 2012/01/11 19:51:26 hans Exp $ SHA1 (mppenc-1.16.tar.bz2) = f7dc898b14e0bd954941c62435a62c23af89cb8a RMD160 (mppenc-1.16.tar.bz2) = 6e97bfc246b9db11532a628afba631883687554d Size (mppenc-1.16.tar.bz2) = 105569 bytes SHA1 (patch-aa) = 4cc88a533db69fbd8c650358e20f261e162d1049 -SHA1 (patch-ab) = 0aa4c32e90f18f2d2321d69942b087330fb50197 +SHA1 (patch-ab) = 2b2d5d6cffb0c6c8490b19dc45bab6d74b88530c +SHA1 (patch-src_wave__in.c) = 588eb53916fc4ee49b1015d8b44132bbb9841527 diff --git a/audio/mppenc/patches/patch-ab b/audio/mppenc/patches/patch-ab index 94fe852b2b1..cd71c6f9ca6 100644 --- a/audio/mppenc/patches/patch-ab +++ b/audio/mppenc/patches/patch-ab @@ -1,4 +1,4 @@ -$NetBSD: patch-ab,v 1.1 2007/01/29 21:04:22 joerg Exp $ +$NetBSD: patch-ab,v 1.2 2012/01/11 19:51:26 hans Exp $ --- src/mppdec.h.orig 2007-01-29 20:36:43.000000000 +0000 +++ src/mppdec.h @@ -7,7 +7,7 @@ $NetBSD: patch-ab,v 1.1 2007/01/29 21:04:22 joerg Exp $ # if defined __linux__ // the standard is that this file is stored somewhere on the hard disk # include <linux/soundcard.h> -# elif defined __bsdi_ || defined __FreeBSD__ -+# elif defined __bsdi_ || defined __FreeBSD__ || defined(__DragonFly__) ++# elif defined __bsdi_ || defined __FreeBSD__ || defined(__DragonFly__) || defined(__sun) # include <sys/soundcard.h> # elif defined __NetBSD__ || defined __OpenBSD__ # include <soundcard.h> diff --git a/audio/mppenc/patches/patch-src_wave__in.c b/audio/mppenc/patches/patch-src_wave__in.c new file mode 100644 index 00000000000..adaec7f94b2 --- /dev/null +++ b/audio/mppenc/patches/patch-src_wave__in.c @@ -0,0 +1,17 @@ +$NetBSD: patch-src_wave__in.c,v 1.1 2012/01/11 19:51:26 hans Exp $ + +--- src/wave_in.c.orig 2006-11-03 22:48:56.000000000 +0100 ++++ src/wave_in.c 2012-01-02 12:03:16.188471300 +0100 +@@ -19,6 +19,11 @@ + + #include "mppenc.h" + ++#ifdef __sun ++#define SOUND_PCM_WRITE_CHANNELS SNDCTL_DSP_CHANNELS ++#define SOUND_PCM_WRITE_BITS SNDCTL_DSP_SETFMT ++#define SOUND_PCM_WRITE_RATE SNDCTL_DSP_SPEED ++#endif + + static int + init_in ( const int SampleCount, + |