diff options
author | hans <hans@pkgsrc.org> | 2012-02-15 22:57:55 +0000 |
---|---|---|
committer | hans <hans@pkgsrc.org> | 2012-02-15 22:57:55 +0000 |
commit | 067bfb8d82f6b15488e07c0e3819967ab63bf773 (patch) | |
tree | dc2c4728bb0f27a09916943a3a51b62d7943f816 /audio/sweep | |
parent | d254ab9749e28bcb3951b727fc0107d1bb327d78 (diff) | |
download | pkgsrc-067bfb8d82f6b15488e07c0e3819967ab63bf773.tar.gz |
Fix build on SunOS.
Diffstat (limited to 'audio/sweep')
-rw-r--r-- | audio/sweep/distinfo | 4 | ||||
-rw-r--r-- | audio/sweep/patches/patch-aa | 21 |
2 files changed, 19 insertions, 6 deletions
diff --git a/audio/sweep/distinfo b/audio/sweep/distinfo index 4f16905dcc3..642cda6a984 100644 --- a/audio/sweep/distinfo +++ b/audio/sweep/distinfo @@ -1,7 +1,7 @@ -$NetBSD: distinfo,v 1.7 2008/06/30 10:38:23 wiz Exp $ +$NetBSD: distinfo,v 1.8 2012/02/15 22:57:55 hans Exp $ SHA1 (sweep-0.9.3.tar.gz) = 1257e2c5544ca45708f8d99bf2ec0116a22708e4 RMD160 (sweep-0.9.3.tar.gz) = 54c1e6ea94d58494dfc362150551b6a02268476d Size (sweep-0.9.3.tar.gz) = 1248948 bytes -SHA1 (patch-aa) = fb4f123c1abcef93a53530961ad07bb67354aa2f +SHA1 (patch-aa) = a2465a985e0bd0593bdfb9181d83b79e5144af15 SHA1 (patch-ab) = 370e388b2d7cb6f2279e49299a01ef553226b07b diff --git a/audio/sweep/patches/patch-aa b/audio/sweep/patches/patch-aa index bc4c4d09915..a18bd4136b4 100644 --- a/audio/sweep/patches/patch-aa +++ b/audio/sweep/patches/patch-aa @@ -1,8 +1,21 @@ -$NetBSD: patch-aa,v 1.3 2003/04/30 17:13:02 jmmv Exp $ +$NetBSD: patch-aa,v 1.4 2012/02/15 22:57:55 hans Exp $ --- src/driver_oss.c.orig 2003-04-27 07:37:14.000000000 +0200 +++ src/driver_oss.c -@@ -85,6 +85,7 @@ oss_get_names (void) +@@ -51,6 +51,12 @@ + + #include <sys/soundcard.h> + ++#ifdef __sun ++#define SOUND_PCM_WRITE_CHANNELS SNDCTL_DSP_CHANNELS ++#define SOUND_PCM_WRITE_RATE SNDCTL_DSP_SPEED ++#define SOUND_PCM_WRITE_BITS SNDCTL_DSP_SETFMT ++#endif ++ + #ifdef DEVEL_CODE + /*#define DEBUG*/ + #endif +@@ -85,6 +91,7 @@ oss_get_names (void) { GList * names = NULL; @@ -10,7 +23,7 @@ $NetBSD: patch-aa,v 1.3 2003/04/30 17:13:02 jmmv Exp $ names = g_list_append (names, "/dev/dsp"); names = g_list_append (names, "/dev/dsp1"); names = g_list_append (names, "/dev/sound/dsp"); -@@ -212,6 +213,7 @@ setup_dev_dsp (sw_handle * handle, sw_fo +@@ -212,6 +219,7 @@ setup_dev_dsp (sw_handle * handle, sw_fo exit (1) ; } @@ -18,7 +31,7 @@ $NetBSD: patch-aa,v 1.3 2003/04/30 17:13:02 jmmv Exp $ fmt = AFMT_QUERY; if ((error = ioctl (dev_dsp, SOUND_PCM_SETFMT, &fmt)) != 0) { perror ("open_dsp_device 8") ; -@@ -229,6 +231,7 @@ setup_dev_dsp (sw_handle * handle, sw_fo +@@ -229,6 +237,7 @@ setup_dev_dsp (sw_handle * handle, sw_fo handle->custom_data = GINT_TO_POINTER(1); } #endif |