diff options
author | db <db@FreeBSD.org> | 2007-04-21 05:27:48 +0800 |
---|---|---|
committer | db <db@FreeBSD.org> | 2007-04-21 05:27:48 +0800 |
commit | d52c630855e5b5f3ae456b00433ac570e89a9377 (patch) | |
tree | e3e287c4a9ea4ffe9a4ec8102e415090619b7d7d /audio/xanalyser/files | |
parent | 9e7510b9a1299479907cbb3b0ba6b82811385018 (diff) | |
download | freebsd-ports-gnome-d52c630855e5b5f3ae456b00433ac570e89a9377.tar.gz freebsd-ports-gnome-d52c630855e5b5f3ae456b00433ac570e89a9377.tar.zst freebsd-ports-gnome-d52c630855e5b5f3ae456b00433ac570e89a9377.zip |
- cleanup non-supported [1] (with changes)
- update to 1.30 [2]
PR: ports/111694 [1]
Submitted by: edwin [1], Diane Bruce (maintainer) [2]
Approved by: ehaupt (mentor)
Diffstat (limited to 'audio/xanalyser/files')
-rw-r--r-- | audio/xanalyser/files/patch-src-pcm-wav.cc | 19 | ||||
-rw-r--r-- | audio/xanalyser/files/patch-src_Sample.cc | 11 | ||||
-rw-r--r-- | audio/xanalyser/files/patch-src_pcm-cdr.cc | 22 | ||||
-rw-r--r-- | audio/xanalyser/files/patch-src_pcm-wav.cc | 11 | ||||
-rw-r--r-- | audio/xanalyser/files/patch-src_pcm.cc | 51 |
5 files changed, 42 insertions, 72 deletions
diff --git a/audio/xanalyser/files/patch-src-pcm-wav.cc b/audio/xanalyser/files/patch-src-pcm-wav.cc new file mode 100644 index 000000000000..eef8cc9c2c91 --- /dev/null +++ b/audio/xanalyser/files/patch-src-pcm-wav.cc @@ -0,0 +1,19 @@ +--- src/pcm-wav.cc.orig Mon Apr 16 17:30:40 2007 ++++ src/pcm-wav.cc Mon Apr 16 17:31:31 2007 +@@ -14,6 +14,16 @@ + #include <sys/types.h> + #include <sys/stat.h> + #include <iostream> ++#ifdef __NetBSD__ ++# include <machine/byte_swap.h> ++#elif __FreeBSD__ ++# include <sys/endian.h> ++# define __BYTE_ORDER _BYTE_ORDER ++# define __LITTLE_ENDIAN _LITTLE_ENDIAN ++# define __BIG_ENDIAN _BIG_ENDIAN ++#else ++# include <byteswap.h> ++#endif + + using std::cerr; + diff --git a/audio/xanalyser/files/patch-src_Sample.cc b/audio/xanalyser/files/patch-src_Sample.cc deleted file mode 100644 index f8bee277cb5b..000000000000 --- a/audio/xanalyser/files/patch-src_Sample.cc +++ /dev/null @@ -1,11 +0,0 @@ ---- src/Sample.cc.orig Sun Oct 29 20:53:54 2006 -+++ src/Sample.cc Sun Oct 29 20:54:32 2006 -@@ -12,6 +12,8 @@ - #include <errno.h> - #ifdef __NetBSD__ - # include <machine/endian.h> -+#elif __FreeBSD__ -+# include <sys/endian.h> - #else - # include <endian.h> - #endif diff --git a/audio/xanalyser/files/patch-src_pcm-cdr.cc b/audio/xanalyser/files/patch-src_pcm-cdr.cc index 389655bcf624..2b35b1048fb5 100644 --- a/audio/xanalyser/files/patch-src_pcm-cdr.cc +++ b/audio/xanalyser/files/patch-src_pcm-cdr.cc @@ -1,11 +1,19 @@ ---- src/pcm-cdr.cc.orig Sun Oct 29 20:50:05 2006 -+++ src/pcm-cdr.cc Sun Oct 29 20:50:43 2006 -@@ -12,6 +12,8 @@ - #include <errno.h> - #include <string.h> +--- src/pcm-cdr.cc.orig Mon Apr 16 17:23:03 2007 ++++ src/pcm-cdr.cc Mon Apr 16 17:25:16 2007 +@@ -14,6 +14,16 @@ + #include <sys/types.h> + #include <sys/stat.h> #include <iostream> -+#include <sys/types.h> -+#include <sys/stat.h> ++#ifdef __NetBSD__ ++# include <machine/byte_swap.h> ++#elif __FreeBSD__ ++# include <sys/endian.h> ++# define __BYTE_ORDER _BYTE_ORDER ++# define __LITTLE_ENDIAN _LITTLE_ENDIAN ++# define __BIG_ENDIAN _BIG_ENDIAN ++#else ++# include <byteswap.h> ++#endif using std::cerr; diff --git a/audio/xanalyser/files/patch-src_pcm-wav.cc b/audio/xanalyser/files/patch-src_pcm-wav.cc deleted file mode 100644 index 76f1827b29dc..000000000000 --- a/audio/xanalyser/files/patch-src_pcm-wav.cc +++ /dev/null @@ -1,11 +0,0 @@ ---- src/pcm-wav.cc.orig Sun Oct 29 20:52:28 2006 -+++ src/pcm-wav.cc Sun Oct 29 20:52:38 2006 -@@ -12,6 +12,8 @@ - #include <errno.h> - #include <string.h> - #include <iostream> -+#include <sys/types.h> -+#include <sys/stat.h> - - using std::cerr; - diff --git a/audio/xanalyser/files/patch-src_pcm.cc b/audio/xanalyser/files/patch-src_pcm.cc index 80fb01fd985c..d9d1310da56b 100644 --- a/audio/xanalyser/files/patch-src_pcm.cc +++ b/audio/xanalyser/files/patch-src_pcm.cc @@ -1,47 +1,12 @@ ---- src/pcm.cc.orig Sun Oct 29 20:39:22 2006 -+++ src/pcm.cc Sun Oct 29 20:47:16 2006 -@@ -9,6 +9,8 @@ - #include <stdlib.h> - #ifdef __NetBSD__ +--- src/pcm.cc.orig Mon Apr 16 17:16:58 2007 ++++ src/pcm.cc Mon Apr 16 17:26:52 2007 +@@ -11,6 +11,9 @@ # include <machine/byte_swap.h> -+#elif __FreeBSD__ -+# include <sys/endian.h> + #elif __FreeBSD__ + # include <sys/endian.h> ++# define __BYTE_ORDER _BYTE_ORDER ++# define __LITTLE_ENDIAN _LITTLE_ENDIAN ++# define __BIG_ENDIAN _BIG_ENDIAN #else # include <byteswap.h> #endif -@@ -163,7 +165,7 @@ - case S16: { - int16_t* tmp_buffer = (int16_t*) buffer; - for (size_t i = n; i != 0; i--) { --#ifdef __NetBSD__ -+#if defined (__NetBSD__) || (__FreeBSD__) - *tmp_buffer = bswap16 (*tmp_buffer); - #else - *tmp_buffer = bswap_16 (*tmp_buffer); -@@ -175,7 +177,7 @@ - case S32: { - int32_t* tmp_buffer = (int32_t*) buffer; - for (size_t i = n; i != 0; i--) { --#ifdef __NetBSD__ -+#if defined (__NetBSD__) || (__FreeBSD__) - *tmp_buffer = bswap32 (*tmp_buffer); - #else - *tmp_buffer = bswap_32 (*tmp_buffer); -@@ -191,7 +193,7 @@ - PCM::uint16_to_le (uint16_t i) const - { - #if __BYTE_ORDER == __BIG_ENDIAN --# ifdef __NetBSD__ -+# if defined (__NetBSD__) || (__FreeBSD__) - return bswap16 (i); - # else - return bswap_16 (i); -@@ -206,7 +208,7 @@ - PCM::uint32_to_le (uint32_t i) const - { - #if __BYTE_ORDER == __BIG_ENDIAN --# ifdef __NetBSD__ -+# if defined (__NetBSD__)||(__FreeBSD__) - return bswap32 (i); - # else - return bswap_32 (i); |