From 16b52b47f7e29aa5f904f8f7f069516c32bac7fc Mon Sep 17 00:00:00 2001 From: lioux Date: Sun, 6 Oct 2002 02:54:50 +0000 Subject: New port xmms-speex version 0.6.0: XMMS input plugin to play speex files Submitted by: David Yeske --- audio/xmms-speex/Makefile | 39 +++++++++++++++++++++++++++++++++ audio/xmms-speex/distinfo | 1 + audio/xmms-speex/files/patch-libspeex.c | 20 +++++++++++++++++ audio/xmms-speex/pkg-comment | 1 + audio/xmms-speex/pkg-descr | 6 +++++ audio/xmms-speex/pkg-plist | 1 + 6 files changed, 68 insertions(+) create mode 100644 audio/xmms-speex/Makefile create mode 100644 audio/xmms-speex/distinfo create mode 100644 audio/xmms-speex/files/patch-libspeex.c create mode 100644 audio/xmms-speex/pkg-comment create mode 100644 audio/xmms-speex/pkg-descr create mode 100644 audio/xmms-speex/pkg-plist (limited to 'audio/xmms-speex') diff --git a/audio/xmms-speex/Makefile b/audio/xmms-speex/Makefile new file mode 100644 index 0000000..7e808dc --- /dev/null +++ b/audio/xmms-speex/Makefile @@ -0,0 +1,39 @@ +# New ports collection makefile for: xmms-speex +# Date created: 3 Oct 2002 +# Whom: David Yeske +# +# $FreeBSD$ +# + +PORTNAME= xmms-speex +PORTVERSION= 0.6.0 +CATEGORIES= audio +MASTER_SITES= http://jzb.rapanden.dk/speex/ +DISTNAME= speex-xmms-${PORTVERSION} + +MAINTAINER= dyeske@yahoo.com + +BUILD_DEPENDS= xmms-config:${PORTSDIR}/audio/xmms +LIB_DEPENDS= speex.0:${PORTSDIR}/audio/speex +RUN_DEPENDS= xmms:${PORTSDIR}/audio/xmms + +WRKSRC= ${WRKDIR}/speex-xmms + +USE_X_PREFIX= yes +USE_GNOMENG= yes +USE_GNOME= gtk12 +USE_GMAKE= yes +USE_REINPLACE= yes + +pre-build: + @${REINPLACE_CMD} -e 's|^main|all|; \ + s|-lgtk|${CFLAGS} `${GTK_CONFIG} --cflags` `${GTK_CONFIG} --libs` |; \ + s|-I/usr/include/xmms||; \ + s|^install: libspeex.o|install:|; \ + s|-I/usr/lib/glib/include||; \ + s|-I/usr/include/glib-1.2||; \ + s|-I/usr/include/gtk-1.2||; \ + s|/usr/lib/xmms/Input|${X11BASE}/lib/xmms/Input|' \ + ${WRKSRC}/Makefile + +.include diff --git a/audio/xmms-speex/distinfo b/audio/xmms-speex/distinfo new file mode 100644 index 0000000..6fa78ad --- /dev/null +++ b/audio/xmms-speex/distinfo @@ -0,0 +1 @@ +MD5 (speex-xmms-0.6.0.tar.gz) = b4014356ef929706444ff98639550460 diff --git a/audio/xmms-speex/files/patch-libspeex.c b/audio/xmms-speex/files/patch-libspeex.c new file mode 100644 index 0000000..6bfc4c4 --- /dev/null +++ b/audio/xmms-speex/files/patch-libspeex.c @@ -0,0 +1,20 @@ +--- libspeex.c.orig Sat Sep 21 13:18:53 2002 ++++ libspeex.c Sat Sep 21 13:23:14 2002 +@@ -385,7 +385,7 @@ + #endif + + speex_bits_rewind(&sbits); +- speex_decode(spx_decoder, &sbits, outbuff, 1); ++ speex_decode(spx_decoder, &sbits, outbuff); + + // Converting and clipping check + for (i = 0; i < speex_fs->framesize; i++) { +@@ -455,7 +455,7 @@ + // For multiple frames within packets + for (j=0; j < speex_fs->nframes; j++) + { +- speex_decode(spx_decoder, &sbits, outbuff, 0); ++ speex_decode(spx_decoder, &sbits, outbuff); + + // Converting and clipping check + for (i = 0; i < speex_fs->framesize; i++) { diff --git a/audio/xmms-speex/pkg-comment b/audio/xmms-speex/pkg-comment new file mode 100644 index 0000000..93b0014 --- /dev/null +++ b/audio/xmms-speex/pkg-comment @@ -0,0 +1 @@ +XMMS input plugin to play speex files diff --git a/audio/xmms-speex/pkg-descr b/audio/xmms-speex/pkg-descr new file mode 100644 index 0000000..8280a32 --- /dev/null +++ b/audio/xmms-speex/pkg-descr @@ -0,0 +1,6 @@ +A plugin to make xmms play files compressed with the Speex codec + +WWW: http://jzb.rapanden.dk/speex/ + +- David +dyeske@yahoo.com diff --git a/audio/xmms-speex/pkg-plist b/audio/xmms-speex/pkg-plist new file mode 100644 index 0000000..af8cf8f --- /dev/null +++ b/audio/xmms-speex/pkg-plist @@ -0,0 +1 @@ +lib/xmms/Input/libspeex.so -- cgit v1.1