summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--media-sound/sndpeek/Manifest12
-rw-r--r--media-sound/sndpeek/files/digest-sndpeek-1.13
-rw-r--r--media-sound/sndpeek/files/sndpeek-1.1-makefile.patch289
-rw-r--r--media-sound/sndpeek/sndpeek-1.1.ebuild69
4 files changed, 373 insertions, 0 deletions
diff --git a/media-sound/sndpeek/Manifest b/media-sound/sndpeek/Manifest
new file mode 100644
index 0000000..b242d8f
--- /dev/null
+++ b/media-sound/sndpeek/Manifest
@@ -0,0 +1,12 @@
+AUX sndpeek-1.1-makefile.patch 7483 RMD160 cd6d9542334e4730e8cafc6c46ca2dc819595123 SHA1 308626810732e5015553c0d5f4eb159ba48e7406 SHA256 4e4fc3d4f795867512a6fdd208c1b91e76354e97c2249417b0bf70ed29a76be7
+MD5 4785bf7647aabd04c9a6e2df602ed5a0 files/sndpeek-1.1-makefile.patch 7483
+RMD160 cd6d9542334e4730e8cafc6c46ca2dc819595123 files/sndpeek-1.1-makefile.patch 7483
+SHA256 4e4fc3d4f795867512a6fdd208c1b91e76354e97c2249417b0bf70ed29a76be7 files/sndpeek-1.1-makefile.patch 7483
+DIST sndpeek-1.1.tgz 109859 RMD160 912e9c9523020ea4eff6250a064c7a71d7f216b5 SHA1 f70f32475160828de4b59784e6d8fb62122f9d6d SHA256 eef56be9fd0e20bb431b41832ee5fbd18aff19f35889af3c5143868e6953b9d5
+EBUILD sndpeek-1.1.ebuild 1702 RMD160 d96a2a43f232dd9c6f2272a5f8e15d4016ed380d SHA1 e02ae68b4f5104b1eea4ab815cc374f777964c9d SHA256 ae3b144e94b6398b609c822487bbf148ee5b3369a3c137d46f9127b531dc4907
+MD5 33e452eb2d4d29afe71e6c0ffbd30a70 sndpeek-1.1.ebuild 1702
+RMD160 d96a2a43f232dd9c6f2272a5f8e15d4016ed380d sndpeek-1.1.ebuild 1702
+SHA256 ae3b144e94b6398b609c822487bbf148ee5b3369a3c137d46f9127b531dc4907 sndpeek-1.1.ebuild 1702
+MD5 c146750f3c1863168dbc314dd31b5703 files/digest-sndpeek-1.1 226
+RMD160 7c2b4ec8483a7191e43af1b73f795b0ab34480e3 files/digest-sndpeek-1.1 226
+SHA256 8c0acee033869565cc96f73ca778c9790316ae97e0dd0c8d84bda244a1c927ad files/digest-sndpeek-1.1 226
diff --git a/media-sound/sndpeek/files/digest-sndpeek-1.1 b/media-sound/sndpeek/files/digest-sndpeek-1.1
new file mode 100644
index 0000000..00e4daa
--- /dev/null
+++ b/media-sound/sndpeek/files/digest-sndpeek-1.1
@@ -0,0 +1,3 @@
+MD5 5c374f1240dea7b4001ef3046637847e sndpeek-1.1.tgz 109859
+RMD160 912e9c9523020ea4eff6250a064c7a71d7f216b5 sndpeek-1.1.tgz 109859
+SHA256 eef56be9fd0e20bb431b41832ee5fbd18aff19f35889af3c5143868e6953b9d5 sndpeek-1.1.tgz 109859
diff --git a/media-sound/sndpeek/files/sndpeek-1.1-makefile.patch b/media-sound/sndpeek/files/sndpeek-1.1-makefile.patch
new file mode 100644
index 0000000..cac9cf8
--- /dev/null
+++ b/media-sound/sndpeek/files/sndpeek-1.1-makefile.patch
@@ -0,0 +1,289 @@
+diff -ru sndpeek-1.1~/src/sndpeek/makefile.alsa sndpeek-1.1/src/sndpeek/makefile.alsa
+--- sndpeek-1.1~/src/sndpeek/makefile.alsa 2006-07-29 12:50:41.000000000 +0200
++++ sndpeek-1.1/src/sndpeek/makefile.alsa 2006-07-29 12:57:13.000000000 +0200
+@@ -4,63 +4,63 @@
+ Centroid.o DownSampler.o Flux.o LPC.o MFCC.o RMS.o Rolloff.o System.o fvec.o \
+ AutoCorrelation.o Communicator.o Hamming.o MagFFT.o NormRMS.o MarSignal.o fmatrix.o
+
+-CC=gcc
+-CPP=g++
++CC?=gcc
++CXX?=g++
+ INCLUDES=-I../marsyas/
+ MARSYAS_DIR=../marsyas/
+-CFLAGS=-D__LINUX_ALSA__ -D__LITTLE_ENDIAN__ $(INCLUDES) -O3 -c
+-LIBS=-L/usr/X11R6/lib -lglut -lGL -lGLU -lasound -lXmu -lX11 -lXext -lXi -lm
++CFLAGS+=-D__LINUX_ALSA__ -D__LITTLE_ENDIAN__ $(INCLUDES) -c
++LIBS=-L/usr/X11R6/lib -lpthread -lstdc++ -lglut -lGL -lGLU -lasound -lXmu -lX11 -lXext -lXi -lm
+
+ sndpeek: $(OBJS)
+- $(CPP) -o $@ $(OBJS) $(LIBS)
++ $(CXX) -o $@ $(OBJS) $(LIBS)
+
+ Centroid.o:
+- $(CC) $(CFLAGS) $(MARSYAS_DIR)$*.cpp
++ $(CXX) $(CFLAGS) $(MARSYAS_DIR)$*.cpp
+
+ DownSampler.o:
+- $(CC) $(CFLAGS) $(MARSYAS_DIR)$*.cpp
++ $(CXX) $(CFLAGS) $(MARSYAS_DIR)$*.cpp
+
+ Flux.o:
+- $(CC) $(CFLAGS) $(MARSYAS_DIR)$*.cpp
++ $(CXX) $(CFLAGS) $(MARSYAS_DIR)$*.cpp
+
+ LPC.o:
+- $(CC) $(CFLAGS) $(MARSYAS_DIR)$*.cpp
++ $(CXX) $(CFLAGS) $(MARSYAS_DIR)$*.cpp
+
+ MFCC.o:
+- $(CC) $(CFLAGS) $(MARSYAS_DIR)$*.cpp
++ $(CXX) $(CFLAGS) $(MARSYAS_DIR)$*.cpp
+
+ RMS.o:
+- $(CC) $(CFLAGS) $(MARSYAS_DIR)$*.cpp
++ $(CXX) $(CFLAGS) $(MARSYAS_DIR)$*.cpp
+
+ Rolloff.o:
+- $(CC) $(CFLAGS) $(MARSYAS_DIR)$*.cpp
++ $(CXX) $(CFLAGS) $(MARSYAS_DIR)$*.cpp
+
+ System.o:
+- $(CC) $(CFLAGS) $(MARSYAS_DIR)$*.cpp
++ $(CXX) $(CFLAGS) $(MARSYAS_DIR)$*.cpp
+
+ fvec.o:
+- $(CC) $(CFLAGS) $(MARSYAS_DIR)$*.cpp
++ $(CXX) $(CFLAGS) $(MARSYAS_DIR)$*.cpp
+
+ AutoCorrelation.o:
+- $(CC) $(CFLAGS) $(MARSYAS_DIR)$*.cpp
++ $(CXX) $(CFLAGS) $(MARSYAS_DIR)$*.cpp
+
+ Communicator.o:
+- $(CC) $(CFLAGS) $(MARSYAS_DIR)$*.cpp
++ $(CXX) $(CFLAGS) $(MARSYAS_DIR)$*.cpp
+
+ Hamming.o:
+- $(CC) $(CFLAGS) $(MARSYAS_DIR)$*.cpp
++ $(CXX) $(CFLAGS) $(MARSYAS_DIR)$*.cpp
+
+ MagFFT.o:
+- $(CC) $(CFLAGS) $(MARSYAS_DIR)$*.cpp
++ $(CXX) $(CFLAGS) $(MARSYAS_DIR)$*.cpp
+
+ NormRMS.o:
+- $(CC) $(CFLAGS) $(MARSYAS_DIR)$*.cpp
++ $(CXX) $(CFLAGS) $(MARSYAS_DIR)$*.cpp
+
+ MarSignal.o:
+- $(CC) $(CFLAGS) $(MARSYAS_DIR)$*.cpp
++ $(CXX) $(CFLAGS) $(MARSYAS_DIR)$*.cpp
+
+ fmatrix.o:
+- $(CC) $(CFLAGS) $(MARSYAS_DIR)$*.cpp
++ $(CXX) $(CFLAGS) $(MARSYAS_DIR)$*.cpp
+
+ .o: $*.h
+
+@@ -68,7 +68,7 @@
+ $(CC) $(CFLAGS) $*.c
+
+ .cpp.o: $*.h $*.cpp
+- $(CC) $(CFLAGS) $*.cpp
++ $(CXX) $(CFLAGS) $*.cpp
+
+ clean:
+ rm -f sndpeek *~ *.o
+diff -ru sndpeek-1.1~/src/sndpeek/makefile.jack sndpeek-1.1/src/sndpeek/makefile.jack
+--- sndpeek-1.1~/src/sndpeek/makefile.jack 2006-07-29 12:50:41.000000000 +0200
++++ sndpeek-1.1/src/sndpeek/makefile.jack 2006-07-29 12:56:20.000000000 +0200
+@@ -4,63 +4,63 @@
+ Centroid.o DownSampler.o Flux.o LPC.o MFCC.o RMS.o Rolloff.o System.o fvec.o \
+ AutoCorrelation.o Communicator.o Hamming.o MagFFT.o NormRMS.o MarSignal.o fmatrix.o
+
+-CC=gcc
+-CPP=g++
++CC?=gcc
++CXX?=g++
+ INCLUDES=-I../marsyas/
+ MARSYAS_DIR=../marsyas/
+-CFLAGS=-D__LINUX_JACK__ -D__LITTLE_ENDIAN__ $(INCLUDES) -O3 -c
++CFLAGS+=-D__LINUX_JACK__ -D__LITTLE_ENDIAN__ $(INCLUDES) -c
+ LIBS=-L/usr/X11R6/lib -lpthread -lstdc++ -lglut -lGL -lGLU -lasound -ljack -lXmu -lX11 -lXext -lXi -lm
+
+ sndpeek: $(OBJS)
+- $(CPP) -o $@ $(OBJS) $(LIBS)
++ $(CXX) -o $@ $(OBJS) $(LIBS)
+
+ Centroid.o:
+- $(CC) $(CFLAGS) $(MARSYAS_DIR)$*.cpp
++ $(CXX) $(CFLAGS) $(MARSYAS_DIR)$*.cpp
+
+ DownSampler.o:
+- $(CC) $(CFLAGS) $(MARSYAS_DIR)$*.cpp
++ $(CXX) $(CFLAGS) $(MARSYAS_DIR)$*.cpp
+
+ Flux.o:
+- $(CC) $(CFLAGS) $(MARSYAS_DIR)$*.cpp
++ $(CXX) $(CFLAGS) $(MARSYAS_DIR)$*.cpp
+
+ LPC.o:
+- $(CC) $(CFLAGS) $(MARSYAS_DIR)$*.cpp
++ $(CXX) $(CFLAGS) $(MARSYAS_DIR)$*.cpp
+
+ MFCC.o:
+- $(CC) $(CFLAGS) $(MARSYAS_DIR)$*.cpp
++ $(CXX) $(CFLAGS) $(MARSYAS_DIR)$*.cpp
+
+ RMS.o:
+- $(CC) $(CFLAGS) $(MARSYAS_DIR)$*.cpp
++ $(CXX) $(CFLAGS) $(MARSYAS_DIR)$*.cpp
+
+ Rolloff.o:
+- $(CC) $(CFLAGS) $(MARSYAS_DIR)$*.cpp
++ $(CXX) $(CFLAGS) $(MARSYAS_DIR)$*.cpp
+
+ System.o:
+- $(CC) $(CFLAGS) $(MARSYAS_DIR)$*.cpp
++ $(CXX) $(CFLAGS) $(MARSYAS_DIR)$*.cpp
+
+ fvec.o:
+- $(CC) $(CFLAGS) $(MARSYAS_DIR)$*.cpp
++ $(CXX) $(CFLAGS) $(MARSYAS_DIR)$*.cpp
+
+ AutoCorrelation.o:
+- $(CC) $(CFLAGS) $(MARSYAS_DIR)$*.cpp
++ $(CXX) $(CFLAGS) $(MARSYAS_DIR)$*.cpp
+
+ Communicator.o:
+- $(CC) $(CFLAGS) $(MARSYAS_DIR)$*.cpp
++ $(CXX) $(CFLAGS) $(MARSYAS_DIR)$*.cpp
+
+ Hamming.o:
+- $(CC) $(CFLAGS) $(MARSYAS_DIR)$*.cpp
++ $(CXX) $(CFLAGS) $(MARSYAS_DIR)$*.cpp
+
+ MagFFT.o:
+- $(CC) $(CFLAGS) $(MARSYAS_DIR)$*.cpp
++ $(CXX) $(CFLAGS) $(MARSYAS_DIR)$*.cpp
+
+ NormRMS.o:
+- $(CC) $(CFLAGS) $(MARSYAS_DIR)$*.cpp
++ $(CXX) $(CFLAGS) $(MARSYAS_DIR)$*.cpp
+
+ MarSignal.o:
+- $(CC) $(CFLAGS) $(MARSYAS_DIR)$*.cpp
++ $(CXX) $(CFLAGS) $(MARSYAS_DIR)$*.cpp
+
+ fmatrix.o:
+- $(CC) $(CFLAGS) $(MARSYAS_DIR)$*.cpp
++ $(CXX) $(CFLAGS) $(MARSYAS_DIR)$*.cpp
+
+ .o: $*.h
+
+@@ -68,7 +68,7 @@
+ $(CC) $(CFLAGS) $*.c
+
+ .cpp.o: $*.h $*.cpp
+- $(CC) $(CFLAGS) $*.cpp
++ $(CXX) $(CFLAGS) $*.cpp
+
+ clean:
+ rm -f sndpeek *~ *.o
+diff -ru sndpeek-1.1~/src/sndpeek/makefile.oss sndpeek-1.1/src/sndpeek/makefile.oss
+--- sndpeek-1.1~/src/sndpeek/makefile.oss 2006-07-29 12:50:41.000000000 +0200
++++ sndpeek-1.1/src/sndpeek/makefile.oss 2006-07-29 12:58:02.000000000 +0200
+@@ -4,63 +4,63 @@
+ Centroid.o DownSampler.o Flux.o LPC.o MFCC.o RMS.o Rolloff.o System.o fvec.o \
+ AutoCorrelation.o Communicator.o Hamming.o MagFFT.o NormRMS.o MarSignal.o fmatrix.o
+
+-CC=gcc
+-CPP=g++
++CC?=gcc
++CXX?=g++
+ INCLUDES=-I../marsyas/
+ MARSYAS_DIR=../marsyas/
+-CFLAGS=-D__LINUX_OSS__ -D__LITTLE_ENDIAN__ $(INCLUDES) -O3 -c
++CFLAGS+=-D__LINUX_OSS__ -D__LITTLE_ENDIAN__ $(INCLUDES) -c
+ LIBS=-L/usr/X11R6/lib -lpthread -lstdc++ -lglut -lGL -lGLU -lXmu -lX11 -lXext -lXi -lm
+
+ sndpeek: $(OBJS)
+- $(CPP) -o $@ $(OBJS) $(LIBS)
++ $(CXX) -o $@ $(OBJS) $(LIBS)
+
+ Centroid.o:
+- $(CC) $(CFLAGS) $(MARSYAS_DIR)$*.cpp
++ $(CXX) $(CFLAGS) $(MARSYAS_DIR)$*.cpp
+
+ DownSampler.o:
+- $(CC) $(CFLAGS) $(MARSYAS_DIR)$*.cpp
++ $(CXX) $(CFLAGS) $(MARSYAS_DIR)$*.cpp
+
+ Flux.o:
+- $(CC) $(CFLAGS) $(MARSYAS_DIR)$*.cpp
++ $(CXX) $(CFLAGS) $(MARSYAS_DIR)$*.cpp
+
+ LPC.o:
+- $(CC) $(CFLAGS) $(MARSYAS_DIR)$*.cpp
++ $(CXX) $(CFLAGS) $(MARSYAS_DIR)$*.cpp
+
+ MFCC.o:
+- $(CC) $(CFLAGS) $(MARSYAS_DIR)$*.cpp
++ $(CXX) $(CFLAGS) $(MARSYAS_DIR)$*.cpp
+
+ RMS.o:
+- $(CC) $(CFLAGS) $(MARSYAS_DIR)$*.cpp
++ $(CXX) $(CFLAGS) $(MARSYAS_DIR)$*.cpp
+
+ Rolloff.o:
+- $(CC) $(CFLAGS) $(MARSYAS_DIR)$*.cpp
++ $(CXX) $(CFLAGS) $(MARSYAS_DIR)$*.cpp
+
+ System.o:
+- $(CC) $(CFLAGS) $(MARSYAS_DIR)$*.cpp
++ $(CXX) $(CFLAGS) $(MARSYAS_DIR)$*.cpp
+
+ fvec.o:
+- $(CC) $(CFLAGS) $(MARSYAS_DIR)$*.cpp
++ $(CXX) $(CFLAGS) $(MARSYAS_DIR)$*.cpp
+
+ AutoCorrelation.o:
+- $(CC) $(CFLAGS) $(MARSYAS_DIR)$*.cpp
++ $(CXX) $(CFLAGS) $(MARSYAS_DIR)$*.cpp
+
+ Communicator.o:
+- $(CC) $(CFLAGS) $(MARSYAS_DIR)$*.cpp
++ $(CXX) $(CFLAGS) $(MARSYAS_DIR)$*.cpp
+
+ Hamming.o:
+- $(CC) $(CFLAGS) $(MARSYAS_DIR)$*.cpp
++ $(CXX) $(CFLAGS) $(MARSYAS_DIR)$*.cpp
+
+ MagFFT.o:
+- $(CC) $(CFLAGS) $(MARSYAS_DIR)$*.cpp
++ $(CXX) $(CFLAGS) $(MARSYAS_DIR)$*.cpp
+
+ NormRMS.o:
+- $(CC) $(CFLAGS) $(MARSYAS_DIR)$*.cpp
++ $(CXX) $(CFLAGS) $(MARSYAS_DIR)$*.cpp
+
+ MarSignal.o:
+- $(CC) $(CFLAGS) $(MARSYAS_DIR)$*.cpp
++ $(CXX) $(CFLAGS) $(MARSYAS_DIR)$*.cpp
+
+ fmatrix.o:
+- $(CC) $(CFLAGS) $(MARSYAS_DIR)$*.cpp
++ $(CXX) $(CFLAGS) $(MARSYAS_DIR)$*.cpp
+
+ .o: $*.h
+
+@@ -68,7 +68,7 @@
+ $(CC) $(CFLAGS) $*.c
+
+ .cpp.o: $*.h $*.cpp
+- $(CC) $(CFLAGS) $*.cpp
++ $(CXX) $(CFLAGS) $*.cpp
+
+ clean:
+ rm -f sndpeek *~ *.o
diff --git a/media-sound/sndpeek/sndpeek-1.1.ebuild b/media-sound/sndpeek/sndpeek-1.1.ebuild
new file mode 100644
index 0000000..7e1d700
--- /dev/null
+++ b/media-sound/sndpeek/sndpeek-1.1.ebuild
@@ -0,0 +1,69 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+inherit eutils toolchain-funcs
+
+DESCRIPTION="real-time audio visualization"
+HOMEPAGE="http://soundlab.cs.princeton.edu/software/sndpeek/"
+SRC_URI="http://soundlab.cs.princeton.edu/software/${PN}/files/${P}.tgz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86"
+IUSE="oss jack alsa"
+
+DEPEND="media-libs/glut
+ virtual/opengl
+ virtual/glu
+ || ( ( x11-libs/libXmu
+ x11-libs/libX11
+ x11-libs/libXext )
+ virtual/x11 )
+ jack? ( media-sound/jack-audio-connection-kit )
+ alsa? ( media-libs/alsa-lib )"
+RDEPEND="${DEPEND}"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch "${FILESDIR}/${P}-makefile.patch"
+}
+
+pkg_setup() {
+ local cnt=0
+ use jack && cnt="$((${cnt} + 1))"
+ use alsa && cnt="$((${cnt} + 1))"
+ use oss && cnt="$((${cnt} + 1))"
+ if [[ "${cnt}" -eq 0 ]]; then
+ eerror "One of the following USE flags is needed: jack, alsa or oss"
+ die "Please set one audio engine type"
+ elif [[ "${cnt}" -ne 1 ]]; then
+ eerror "You have set ${P} to use multiple audio engine."
+ eerror "I don't know which to use!"
+ eerror "You can use /etc/portage/package.use to set per-package USE flags"
+ eerror "Set it so only one audio engine type jack, alsa or oss"
+ die "Please set only one audio engine type"
+ fi
+}
+
+src_compile() {
+ cd "${S}/src/sndpeek"
+
+ local backend
+ if use jack; then
+ backend="jack"
+ elif use alsa; then
+ backend="alsa"
+ elif use oss; then
+ backend="oss"
+ fi
+ einfo "Compiling against ${backend}"
+ emake -f "makefile.${backend}" CC=$(tc-getCC) CXX=$(tc-getCXX) || die "emake failed"
+}
+
+src_install() {
+ dobin src/sndpeek/sndpeek
+
+ dodoc AUTHORS README THANKS TODO VERSIONS
+}