summaryrefslogtreecommitdiff
path: root/audio/xanalyser
diff options
context:
space:
mode:
authorschmonz <schmonz@pkgsrc.org>2005-01-09 08:37:48 +0000
committerschmonz <schmonz@pkgsrc.org>2005-01-09 08:37:48 +0000
commit3e8d9be75a0eed65f83750a6fbde7634fad19798 (patch)
tree2ee5b743dfcfd08d5b152d89a70915fb90574241 /audio/xanalyser
parent2219bf83a1b92bbc181364ec3dd046f45645844c (diff)
downloadpkgsrc-3e8d9be75a0eed65f83750a6fbde7634fad19798.tar.gz
Update to 1.24. No changelog available. Most visible change is
incorporation of most of our build patches.
Diffstat (limited to 'audio/xanalyser')
-rw-r--r--audio/xanalyser/Makefile5
-rw-r--r--audio/xanalyser/distinfo16
-rw-r--r--audio/xanalyser/patches/patch-aa22
-rw-r--r--audio/xanalyser/patches/patch-ab19
-rw-r--r--audio/xanalyser/patches/patch-ad20
-rw-r--r--audio/xanalyser/patches/patch-ae27
-rw-r--r--audio/xanalyser/patches/patch-af13
-rw-r--r--audio/xanalyser/patches/patch-ag33
-rw-r--r--audio/xanalyser/patches/patch-ah12
-rw-r--r--audio/xanalyser/patches/patch-ai13
-rw-r--r--audio/xanalyser/patches/patch-aj12
11 files changed, 16 insertions, 176 deletions
diff --git a/audio/xanalyser/Makefile b/audio/xanalyser/Makefile
index b877f3b8783..d93550c18d7 100644
--- a/audio/xanalyser/Makefile
+++ b/audio/xanalyser/Makefile
@@ -1,8 +1,7 @@
-# $NetBSD: Makefile,v 1.6 2004/10/03 00:13:10 tv Exp $
+# $NetBSD: Makefile,v 1.7 2005/01/09 08:37:48 schmonz Exp $
#
-DISTNAME= xanalyser-1.21
-PKGREVISION= 2
+DISTNAME= xanalyser-1.24
CATEGORIES= audio
MASTER_SITES= ftp://ftp.suse.com/pub/people/arvin/private/
EXTRACT_SUFX= .tar.bz2
diff --git a/audio/xanalyser/distinfo b/audio/xanalyser/distinfo
index 34f6373d483..50ee7bb077a 100644
--- a/audio/xanalyser/distinfo
+++ b/audio/xanalyser/distinfo
@@ -1,13 +1,5 @@
-$NetBSD: distinfo,v 1.6 2004/05/03 17:00:42 minskim Exp $
+$NetBSD: distinfo,v 1.7 2005/01/09 08:37:48 schmonz Exp $
-SHA1 (xanalyser-1.21.tar.bz2) = abdc1ddaffcb7dd4074672a54798b4b1ec4b0061
-Size (xanalyser-1.21.tar.bz2) = 58542 bytes
-SHA1 (patch-aa) = 29651c643550679f647b54726fb8d25579cdaaf7
-SHA1 (patch-ab) = 838c49ff3e15cbcd798aea0b3caec59b09f5c482
-SHA1 (patch-ad) = 835948759070cfab385e52e78a92494fe96ea140
-SHA1 (patch-ae) = 26fd8129f6283672d43e68163c372459e8cb93dc
-SHA1 (patch-af) = bf6af0c140a802fb98e82e82ecbfb7240696db09
-SHA1 (patch-ag) = 0ae5680df966e534d76d04cddf6a78259d87cbfe
-SHA1 (patch-ah) = a8bae5da6db1098ce1520cc49e167fc5999b0dda
-SHA1 (patch-ai) = 6805fc79e0c3135f6f22eb0b91c68cacd96c483c
-SHA1 (patch-aj) = 2a6549638be3d3d25126b0938a11572ffe1c6564
+SHA1 (xanalyser-1.24.tar.bz2) = 0b261568b8573d81b7e99980c2ffede6be683bdb
+Size (xanalyser-1.24.tar.bz2) = 73451 bytes
+SHA1 (patch-ad) = 46d15c6ff4ddc236de7d424dee667088dd693062
diff --git a/audio/xanalyser/patches/patch-aa b/audio/xanalyser/patches/patch-aa
deleted file mode 100644
index 070a80307c0..00000000000
--- a/audio/xanalyser/patches/patch-aa
+++ /dev/null
@@ -1,22 +0,0 @@
-$NetBSD: patch-aa,v 1.1.1.1 2002/04/23 03:33:26 schmonz Exp $
-
---- src/Analyser.cc.orig Wed Dec 12 16:41:57 2001
-+++ src/Analyser.cc
-@@ -8,7 +8,7 @@
- #include <stdio.h>
- #include <stdlib.h>
- #include <math.h>
--#include <values.h>
-+#include <limits.h>
- #include <assert.h>
-
- #include <X11/Xlib.h>
-@@ -559,7 +559,7 @@
- void
- Analyser::snd2u (const int32_t* buffer, int channel)
- {
-- const double norm = (channel == MONO ? 0.5 : 1.0) / (double) MAXINT;
-+ const double norm = (channel == MONO ? 0.5 : 1.0) / (double) INT_MAX;
-
- switch (channel) {
-
diff --git a/audio/xanalyser/patches/patch-ab b/audio/xanalyser/patches/patch-ab
deleted file mode 100644
index 77ab8424901..00000000000
--- a/audio/xanalyser/patches/patch-ab
+++ /dev/null
@@ -1,19 +0,0 @@
-$NetBSD: patch-ab,v 1.4 2004/05/03 17:00:42 minskim Exp $
-
---- src/DSP.cc.orig 2001-12-01 19:05:15.000000000 -0600
-+++ src/DSP.cc
-@@ -14,8 +14,13 @@
- #include <math.h>
- #include <errno.h>
- #include <string.h>
--#include <values.h>
-+#include <limits.h>
-+#ifdef __linux__
- #include <byteswap.h>
-+#else
-+#include <sys/bswap.h>
-+#define bswap_16 bswap16
-+#endif
-
- #include "DSP.h"
-
diff --git a/audio/xanalyser/patches/patch-ad b/audio/xanalyser/patches/patch-ad
index 825d4595ea4..2f10dc84114 100644
--- a/audio/xanalyser/patches/patch-ad
+++ b/audio/xanalyser/patches/patch-ad
@@ -1,17 +1,17 @@
-$NetBSD: patch-ad,v 1.3 2004/05/03 17:00:42 minskim Exp $
+$NetBSD: patch-ad,v 1.4 2005/01/09 08:37:48 schmonz Exp $
---- src/Makefile.in.orig 2002-01-23 13:49:25.000000000 -0600
+--- src/Makefile.in.orig 2004-08-28 17:06:57.000000000 -0400
+++ src/Makefile.in
-@@ -73,7 +73,7 @@ bin_PROGRAMS = xanalyser
- xanalyser_SOURCES = Analyser.cc Analyser.h DSP.cc DSP.h Sample.cc Sample.h Scope.cc Scope.h XAnalyser.ad.h control.cc control.h fft.cc fft.h help.cc help.h help.txt.h main.cc main.h utils.cc utils.h Trans.h
+@@ -107,7 +107,7 @@ xanalyser_SOURCES = \
--xanalyser_LDADD = -lXext -lXm -lXt -lSM -lICE -lXmu -lXpm -lX11 # -ldfftw -ldrfftw
-+xanalyser_LDADD = -lXext -lXm -lXt -lSM -lICE -lXmu -lXpm -lX11 ${LIBOSSAUDIO}# -ldfftw -ldrfftw
+ xanalyser_LDADD = -lXext -lXm -lXt -lSM -lICE -lXmu -lXpm -lX11 \
+- $(FFTWLDADD) $(ALSALDADD)
++ ${LIBOSSAUDIO} $(FFTWLDADD) $(ALSALDADD)
+
EXTRA_DIST = XAnalyser.ad help.txt *.xpm
- mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
-@@ -302,8 +302,8 @@ mostlyclean distclean maintainer-clean
+@@ -375,8 +375,8 @@ uninstall-am: uninstall-binPROGRAMS unin
main.cc: XAnalyser.ad.h
@@ -22,7 +22,7 @@ $NetBSD: patch-ad,v 1.3 2004/05/03 17:00:42 minskim Exp $
help.cc: help.txt.h
-@@ -311,8 +311,8 @@ help.txt.h: help.txt
+@@ -384,8 +384,8 @@ help.txt.h: help.txt
txt2c help.txt > help.txt.h
install-data-hook:
@@ -30,6 +30,6 @@ $NetBSD: patch-ad,v 1.3 2004/05/03 17:00:42 minskim Exp $
- cp XAnalyser.ad $(DESTDIR)/usr/X11R6/lib/X11/app-defaults/XAnalyser
+ mkdir -p $(DESTDIR)$(prefix)/lib/X11/app-defaults
+ cp XAnalyser.ad $(DESTDIR)$(prefix)/lib/X11/app-defaults/XAnalyser
-
# Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.
+ .NOEXPORT:
diff --git a/audio/xanalyser/patches/patch-ae b/audio/xanalyser/patches/patch-ae
deleted file mode 100644
index e07f782272d..00000000000
--- a/audio/xanalyser/patches/patch-ae
+++ /dev/null
@@ -1,27 +0,0 @@
-$NetBSD: patch-ae,v 1.3 2004/05/03 17:00:42 minskim Exp $
-
---- src/Sample.cc.orig 2001-12-12 15:36:27.000000000 -0600
-+++ src/Sample.cc
-@@ -10,8 +10,12 @@
- #include <math.h>
- #include <string.h>
- #include <errno.h>
--#include <values.h>
-+#include <limits.h>
-+#ifdef __linux__
- #include <endian.h>
-+#else
-+#include <machine/endian.h>
-+#endif
-
- #include <X11/Xlib.h>
- #include <Xm/Xm.h>
-@@ -116,7 +120,7 @@ Sample::shot ()
- if (j == 0 || j != length) // EOF
- return false;
-
--#if __BYTE_ORDER == __LITTLE_ENDIAN
-+#if BYTE_ORDER == LITTLE_ENDIAN
- dsp.swapbuffer (buffer, 4 * length);
- #endif
-
diff --git a/audio/xanalyser/patches/patch-af b/audio/xanalyser/patches/patch-af
deleted file mode 100644
index f15ecc58689..00000000000
--- a/audio/xanalyser/patches/patch-af
+++ /dev/null
@@ -1,13 +0,0 @@
-$NetBSD: patch-af,v 1.1.1.1 2002/04/23 03:33:27 schmonz Exp $
-
---- src/Sample.h.orig Wed Dec 12 16:36:27 2001
-+++ src/Sample.h
-@@ -10,7 +10,7 @@
-
-
- #include <stdio.h>
--#include <stdint.h>
-+//#include <stdint.h>
-
- #include "DSP.h"
-
diff --git a/audio/xanalyser/patches/patch-ag b/audio/xanalyser/patches/patch-ag
deleted file mode 100644
index e7ffafdad9f..00000000000
--- a/audio/xanalyser/patches/patch-ag
+++ /dev/null
@@ -1,33 +0,0 @@
-$NetBSD: patch-ag,v 1.1.1.1 2002/04/23 03:33:27 schmonz Exp $
-
---- src/Scope.cc.orig Wed Dec 12 16:39:48 2001
-+++ src/Scope.cc
-@@ -8,7 +8,7 @@
- #include <stdio.h>
- #include <stdlib.h>
- #include <math.h>
--#include <values.h>
-+#include <limits.h>
-
- #include <X11/Xlib.h>
- #ifdef DBE
-@@ -250,15 +250,15 @@
- if (sample.frame_count % num_count == 0)
- clear (0);
-
-- const double dx = xanalyser.dcadjust ? sample.dc[0] / MAXINT : 0;
-- const double dy = xanalyser.dcadjust ? sample.dc[1] / MAXINT : 0;
-+ const double dx = xanalyser.dcadjust ? sample.dc[0] / INT_MAX : 0;
-+ const double dy = xanalyser.dcadjust ? sample.dc[1] / INT_MAX : 0;
-
- const double sf = M_LOG2E * exp (0.05 * zoom * log (10.0));
-
- for (unsigned int i = 0; i < sample.length; i++) {
-
-- double x = (double)(buffer[2 * i + 0]) / (double)(MAXINT) - dx;
-- double y = (double)(buffer[2 * i + 1]) / (double)(MAXINT) - dy;
-+ double x = (double)(buffer[2 * i + 0]) / (double)(INT_MAX) - dx;
-+ double y = (double)(buffer[2 * i + 1]) / (double)(INT_MAX) - dy;
-
- double h = hypot (x, y);
- double rdh = h == 0.0 ? 0.0 : sf * log (h + 1.0) / h;
diff --git a/audio/xanalyser/patches/patch-ah b/audio/xanalyser/patches/patch-ah
deleted file mode 100644
index 87775136e65..00000000000
--- a/audio/xanalyser/patches/patch-ah
+++ /dev/null
@@ -1,12 +0,0 @@
-$NetBSD: patch-ah,v 1.1.1.1 2002/04/23 03:33:27 schmonz Exp $
-
---- src/XAnalyser.ad.h.orig Sat Dec 1 20:07:38 2001
-+++ src/XAnalyser.ad.h
-@@ -1,6 +1,6 @@
- "XAnalyser.SampleSpeed: 44100",
- "XAnalyser.SampleLength: 2048",
--"XAnalyser.SampleDevice: /dev/dsp",
-+"XAnalyser.SampleDevice: /dev/audio",
- "XAnalyser.DCAdjust: True",
- "XAnalyser.Source: Soundcard",
- "XAnalyser.Filename: test.cdr",
diff --git a/audio/xanalyser/patches/patch-ai b/audio/xanalyser/patches/patch-ai
deleted file mode 100644
index 49cb86d574b..00000000000
--- a/audio/xanalyser/patches/patch-ai
+++ /dev/null
@@ -1,13 +0,0 @@
-$NetBSD: patch-ai,v 1.1.1.1 2002/04/23 03:33:27 schmonz Exp $
-
---- src/XAnalyser.ad.orig Sat Dec 1 20:07:37 2001
-+++ src/XAnalyser.ad
-@@ -1,7 +1,7 @@
-
- XAnalyser.SampleSpeed: 44100
- XAnalyser.SampleLength: 2048
--XAnalyser.SampleDevice: /dev/dsp
-+XAnalyser.SampleDevice: /dev/audio
-
- XAnalyser.DCAdjust: True
-
diff --git a/audio/xanalyser/patches/patch-aj b/audio/xanalyser/patches/patch-aj
deleted file mode 100644
index 36f2229d15a..00000000000
--- a/audio/xanalyser/patches/patch-aj
+++ /dev/null
@@ -1,12 +0,0 @@
-$NetBSD: patch-aj,v 1.1 2002/05/12 14:47:12 schmonz Exp $
-
---- src/utils.cc.orig Sat Dec 1 19:37:13 2001
-+++ src/utils.cc
-@@ -7,6 +7,7 @@
-
- #include <stdio.h>
- #include <math.h>
-+#include <ctype.h>
-
- #include <X11/Xlib.h>
- #include <Xm/Xm.h>