diff options
author | joerg <joerg@pkgsrc.org> | 2005-12-11 20:46:50 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2005-12-11 20:46:50 +0000 |
commit | ea9a441962449fee2577aebc93e0e3a85a408e21 (patch) | |
tree | feb50e4b4d73133a75f12781207a0c25f2988158 /audio | |
parent | d2d34486a29260cd819b3ec1a9b2a3edfe4f0ec4 (diff) | |
download | pkgsrc-ea9a441962449fee2577aebc93e0e3a85a408e21.tar.gz |
DragonFly support.
Diffstat (limited to 'audio')
-rw-r--r-- | audio/xanalyser/distinfo | 4 | ||||
-rw-r--r-- | audio/xanalyser/patches/patch-aa | 31 | ||||
-rw-r--r-- | audio/xanalyser/patches/patch-ab | 13 |
3 files changed, 47 insertions, 1 deletions
diff --git a/audio/xanalyser/distinfo b/audio/xanalyser/distinfo index ac8a82d3041..1c0166498af 100644 --- a/audio/xanalyser/distinfo +++ b/audio/xanalyser/distinfo @@ -1,6 +1,8 @@ -$NetBSD: distinfo,v 1.8 2005/02/23 20:39:53 agc Exp $ +$NetBSD: distinfo,v 1.9 2005/12/11 20:46:50 joerg Exp $ SHA1 (xanalyser-1.24.tar.bz2) = 0b261568b8573d81b7e99980c2ffede6be683bdb RMD160 (xanalyser-1.24.tar.bz2) = 9fa7c1ae489be127ca8e519168eb7b48bbabab24 Size (xanalyser-1.24.tar.bz2) = 73451 bytes +SHA1 (patch-aa) = c0504392de44bcde7235bf6e5617764ae34b1ec4 +SHA1 (patch-ab) = 505f9814afdad9aa558ccf980321805f66d8c9e3 SHA1 (patch-ad) = 46d15c6ff4ddc236de7d424dee667088dd693062 diff --git a/audio/xanalyser/patches/patch-aa b/audio/xanalyser/patches/patch-aa new file mode 100644 index 00000000000..632ffd3a373 --- /dev/null +++ b/audio/xanalyser/patches/patch-aa @@ -0,0 +1,31 @@ +$NetBSD: patch-aa,v 1.3 2005/12/11 20:46:50 joerg Exp $ + +--- src/pcm.cc.orig 2005-12-11 20:35:40.000000000 +0000 ++++ src/pcm.cc +@@ -9,6 +9,8 @@ + #include <stdlib.h> + #ifdef __NetBSD__ + # include <machine/byte_swap.h> ++#elif defined(__DragonFly__) ++# include <sys/endian.h> + #else + # include <byteswap.h> + #endif +@@ -122,7 +124,7 @@ PCM::swap_buffer (void* buffer, int fram + case S16: { + int16_t* tmp_buffer = (int16_t*) buffer; + for (int i = n; i != 0; i--) { +-#ifdef __NetBSD__ ++#if defined(__NetBSD__) || defined(__DragonFly__) + *tmp_buffer = bswap16 (*tmp_buffer); + #else + *tmp_buffer = bswap_16 (*tmp_buffer); +@@ -134,7 +136,7 @@ PCM::swap_buffer (void* buffer, int fram + case S32: { + int32_t* tmp_buffer = (int32_t*) buffer; + for (int i = n; i != 0; i--) { +-#ifdef __NetBSD__ ++#if defined(__NetBSD__) || defined(__DragonFly__) + *tmp_buffer = bswap32 (*tmp_buffer); + #else + *tmp_buffer = bswap_32 (*tmp_buffer); diff --git a/audio/xanalyser/patches/patch-ab b/audio/xanalyser/patches/patch-ab new file mode 100644 index 00000000000..d0f2d1d011f --- /dev/null +++ b/audio/xanalyser/patches/patch-ab @@ -0,0 +1,13 @@ +$NetBSD: patch-ab,v 1.6 2005/12/11 20:46:50 joerg Exp $ + +--- src/Sample.cc.orig 2005-12-11 20:37:17.000000000 +0000 ++++ src/Sample.cc +@@ -12,6 +12,8 @@ + #include <errno.h> + #ifdef __NetBSD__ + # include <machine/endian.h> ++#elif defined(__DragonFly__) ++# include <sys/endian.h> + #else + # include <endian.h> + #endif |