aboutsummaryrefslogtreecommitdiff
path: root/audio/xmms-sndstretch
diff options
context:
space:
mode:
authorPete Fritchman <petef@FreeBSD.org>2001-12-03 06:08:40 +0000
committerPete Fritchman <petef@FreeBSD.org>2001-12-03 06:08:40 +0000
commit6ce2153e2589e52f42b70e93e999f58ea9c3150d (patch)
tree0ab367190c6383a1e83b4f8da1dfaa3da90affcd /audio/xmms-sndstretch
parentac6c82b4097bb21016c02c699d195971c599e06d (diff)
downloadports-6ce2153e2589e52f42b70e93e999f58ea9c3150d.tar.gz
ports-6ce2153e2589e52f42b70e93e999f58ea9c3150d.zip
Notes
Diffstat (limited to 'audio/xmms-sndstretch')
-rw-r--r--audio/xmms-sndstretch/Makefile29
-rw-r--r--audio/xmms-sndstretch/distinfo1
-rw-r--r--audio/xmms-sndstretch/files/patch-Makefile40
-rw-r--r--audio/xmms-sndstretch/files/patch-sndstretch.c17
-rw-r--r--audio/xmms-sndstretch/files/patch-sndstretch_xmms.c16
-rw-r--r--audio/xmms-sndstretch/pkg-comment1
-rw-r--r--audio/xmms-sndstretch/pkg-descr12
-rw-r--r--audio/xmms-sndstretch/pkg-plist2
8 files changed, 118 insertions, 0 deletions
diff --git a/audio/xmms-sndstretch/Makefile b/audio/xmms-sndstretch/Makefile
new file mode 100644
index 000000000000..feaa72e48818
--- /dev/null
+++ b/audio/xmms-sndstretch/Makefile
@@ -0,0 +1,29 @@
+# New ports collection makefile for: xmms-sndstretch
+# Date created: 10 November 2001
+# Whom: Edwin Mons <ports@edwinm.ik.nu>
+#
+# $FreeBSD$
+#
+
+PORTNAME= sndstretch
+PORTVERSION= 0.5
+CATEGORIES= audio
+MASTER_SITES= http://www.geocities.com/harpin_floh/mysoft/
+PKGNAMEPREFIX= xmms-
+DISTNAME= sndstretch_xmms-${PORTVERSION}
+
+MAINTAINER= ports@edwinm.ik.nu
+
+LIB_DEPENDS= xmms.2:${PORTSDIR}/audio/xmms
+
+WRKSRC= ${WRKDIR}/sndstretch_xmms
+
+USE_GTK= yes
+USE_GMAKE= yes
+USE_X_PREFIX= yes
+MAKE_ENV+= GTK_CONFIG="${GTK_CONFIG}" PTHREAD_LIBS=${PTHREAD_LIBS}
+
+post-extract:
+ (cd ${WRKSRC}; ${MAKE} clean)
+
+.include <bsd.port.mk>
diff --git a/audio/xmms-sndstretch/distinfo b/audio/xmms-sndstretch/distinfo
new file mode 100644
index 000000000000..682d24a4e041
--- /dev/null
+++ b/audio/xmms-sndstretch/distinfo
@@ -0,0 +1 @@
+MD5 (sndstretch_xmms-0.5.tar.gz) = adc805ead49861c6e55490f0b18e78ce
diff --git a/audio/xmms-sndstretch/files/patch-Makefile b/audio/xmms-sndstretch/files/patch-Makefile
new file mode 100644
index 000000000000..6a69dab01246
--- /dev/null
+++ b/audio/xmms-sndstretch/files/patch-Makefile
@@ -0,0 +1,40 @@
+--- Makefile.orig Thu Mar 15 18:15:55 2001
++++ Makefile Mon Dec 3 00:55:22 2001
+@@ -1,27 +1,28 @@
+-CC = gcc
++CC ?= gcc
+ #INCDIR = -I sndstretch
+-CFLAGS = -Wall -O6 $(INCDIR)
++CFLAGS += -Wall $(INCDIR)
++THREADS= ${PTHREAD_LIBS}
+
+ # maybe you will have to change this
+-XMMS_EPLUGIN_DIR = /usr/X11/lib/xmms/Output
+-XMMS_OPLUGIN_DIR = /usr/X11/lib/xmms/Effect
++XMMS_EPLUGIN_DIR = ${PREFIX}/lib/xmms/Output
++XMMS_OPLUGIN_DIR = ${PREFIX}/lib/xmms/Effect
+
+ all: effect_plugin output_plugin
+
+ effect_plugin: sndstretch_xmms_eff.lo sndstretch.lo
+- $(CC) -shared sndstretch_xmms_eff.lo sndstretch.lo `gtk-config --libs` -lgthread -lpthread -lpthread -lc -o sndstretch_xmms_eff.so
++ $(CC) -shared sndstretch_xmms_eff.lo sndstretch.lo `${GTK_CONFIG} --libs` ${THREADS} -lc -o sndstretch_xmms_eff.so
+
+ output_plugin: sndstretch_xmms_out.lo sndstretch.lo
+- $(CC) -shared sndstretch_xmms_out.lo sndstretch.lo `gtk-config --libs` -lgthread -lpthread -lpthread -lc -o sndstretch_xmms_out.so
++ $(CC) -shared sndstretch_xmms_out.lo sndstretch.lo `${GTK_CONFIG} --libs` ${THREADS} -lc -o sndstretch_xmms_out.so
+
+ sndstretch_xmms_eff.lo: sndstretch_xmms.h sndstretch_xmms_eff.c sndstretch_xmms.c FB_logo.xpm sndstretch_xmms-logo.xpm
+- $(CC) $(CFLAGS) -O2 -fPIC -c sndstretch_xmms_eff.c `gtk-config --cflags` -o sndstretch_xmms_eff.lo
++ $(CC) $(CFLAGS) -fPIC -c sndstretch_xmms_eff.c `${GTK_CONFIG} --cflags` -o sndstretch_xmms_eff.lo
+
+ sndstretch_xmms_out.lo: sndstretch_xmms.h sndstretch_xmms_out.c sndstretch_xmms.c FB_logo.xpm sndstretch_xmms-logo.xpm
+- $(CC) $(CFLAGS) -O2 -fPIC -c sndstretch_xmms_out.c `gtk-config --cflags` -o sndstretch_xmms_out.lo
++ $(CC) $(CFLAGS) -fPIC -c sndstretch_xmms_out.c `${GTK_CONFIG} --cflags` -o sndstretch_xmms_out.lo
+
+ sndstretch.lo: sndstretch.c sndstretch.h
+- $(CC) $(CFLAGS) -O2 -fPIC -c sndstretch.c -o sndstretch.lo
++ $(CC) $(CFLAGS) -fPIC -c sndstretch.c -o sndstretch.lo
+
+ install:
+ install sndstretch_xmms_out.so $(XMMS_OPLUGIN_DIR)
diff --git a/audio/xmms-sndstretch/files/patch-sndstretch.c b/audio/xmms-sndstretch/files/patch-sndstretch.c
new file mode 100644
index 000000000000..e04d39ace6f6
--- /dev/null
+++ b/audio/xmms-sndstretch/files/patch-sndstretch.c
@@ -0,0 +1,17 @@
+$FreeBSD$
+
+--- sndstretch.c.orig Thu Sep 27 17:10:34 2001
++++ sndstretch.c Sat Nov 10 12:54:19 2001
+@@ -1053,9 +1053,11 @@
+
+ speed_act = speed;
+ pitch_act = pitch;
++#ifdef DEBUG
+ if ( fade_shift != fade_shift_act ){
+ fprintf(stderr,"changed fade_shift_act\n");
+ }
++#endif
+ fade_shift_act = fade_shift;
+
+ // if (ring_buff!=0) free(ring_buff);
+
diff --git a/audio/xmms-sndstretch/files/patch-sndstretch_xmms.c b/audio/xmms-sndstretch/files/patch-sndstretch_xmms.c
new file mode 100644
index 000000000000..529e650b6638
--- /dev/null
+++ b/audio/xmms-sndstretch/files/patch-sndstretch_xmms.c
@@ -0,0 +1,16 @@
+$FreeBSD$
+
+--- sndstretch_xmms.c.orig Thu Sep 27 17:32:50 2001
++++ sndstretch_xmms.c Sat Nov 10 12:54:24 2001
+@@ -27,7 +27,11 @@
+ #include "sndstretch.h"
+ #include <fcntl.h>
+ #include <sys/ioctl.h>
++#ifdef __FreeBSD__
++#include <sys/soundcard.h>
++#else
+ #include <linux/soundcard.h>
++#endif
+ #include <unistd.h>
+ #include <math.h>
+ #include <stdlib.h>
diff --git a/audio/xmms-sndstretch/pkg-comment b/audio/xmms-sndstretch/pkg-comment
new file mode 100644
index 000000000000..d8d585cfe024
--- /dev/null
+++ b/audio/xmms-sndstretch/pkg-comment
@@ -0,0 +1 @@
+Plugin for xmms to change the pitch and/or speed
diff --git a/audio/xmms-sndstretch/pkg-descr b/audio/xmms-sndstretch/pkg-descr
new file mode 100644
index 000000000000..7dee7fcaea41
--- /dev/null
+++ b/audio/xmms-sndstretch/pkg-descr
@@ -0,0 +1,12 @@
+sndstretch_xmms is an xmms plugin to adjust pitch and speed seperately
+with two sliders.
+
+sndstretch can be compiled as an effect-plugin, with one major drawback
+ - the time and the visual plugins don't synchronize with the song
+
+and a very basic oss-output-plugin with some limitations:
+ - no additional effect support built in (at least not yet).
+ - the mixer device and pcm device are fix coded as "/dev/mixer"
+ and "/dev/dsp"
+ - the effect is written for normal signed short (S16_LE) and will
+ probably only work if xmms plays such data (...i think mostly it will).
diff --git a/audio/xmms-sndstretch/pkg-plist b/audio/xmms-sndstretch/pkg-plist
new file mode 100644
index 000000000000..53c5f112c2a0
--- /dev/null
+++ b/audio/xmms-sndstretch/pkg-plist
@@ -0,0 +1,2 @@
+lib/xmms/Effect/sndstretch_xmms_out.so
+lib/xmms/Output/sndstretch_xmms_eff.so