summaryrefslogtreecommitdiffstats
path: root/audio/xmms-wma/files
diff options
context:
space:
mode:
authorpav <pav@FreeBSD.org>2004-02-28 13:39:35 +0000
committerpav <pav@FreeBSD.org>2004-02-28 13:39:35 +0000
commita5638d12e34c97029a0f7bfc5db73bebd2bbcd91 (patch)
tree5044a77eab472f17fc474d92bd7ff6e6a45b2200 /audio/xmms-wma/files
parentfacc29d0cd952bde9981bde90e37a68471e4279a (diff)
downloadFreeBSD-ports-a5638d12e34c97029a0f7bfc5db73bebd2bbcd91.zip
FreeBSD-ports-a5638d12e34c97029a0f7bfc5db73bebd2bbcd91.tar.gz
Add xmms-wma, a Windows Media Audio playback plugin for XMMS, based on ffmpeg.
PR: ports/63386 Submitted by: Roman Bogorodskiy <bogorodskiy@inbox.ru>
Diffstat (limited to 'audio/xmms-wma/files')
-rw-r--r--audio/xmms-wma/files/patch-Makefile19
-rw-r--r--audio/xmms-wma/files/patch-Makefile.inc11
-rw-r--r--audio/xmms-wma/files/patch-ffmpeg-strip-mem.c12
-rw-r--r--audio/xmms-wma/files/patch-ffmpeg-strip-wma-Makefile11
-rw-r--r--audio/xmms-wma/files/patch-ffmpeg-strip-wma-wmadec.c11
-rw-r--r--audio/xmms-wma/files/patch-xmms-wma.c11
6 files changed, 75 insertions, 0 deletions
diff --git a/audio/xmms-wma/files/patch-Makefile b/audio/xmms-wma/files/patch-Makefile
new file mode 100644
index 0000000..829a336
--- /dev/null
+++ b/audio/xmms-wma/files/patch-Makefile
@@ -0,0 +1,19 @@
+--- Makefile.orig Thu Feb 26 12:24:35 2004
++++ Makefile Thu Feb 26 12:37:12 2004
+@@ -1,6 +1,6 @@
+ .PHONY: all install install-home uninstall uninstall-home clean
+
+-INSTALL_DIR := /usr/lib/xmms/Input
++INSTALL_DIR := `xmms-config --input-plugin-dir`
+ INSTALL_DIR_HOME := ~/.xmms/Plugins/Input
+
+ export PLUGIN_FILE := libwma.so
+@@ -11,7 +11,7 @@
+ export DEPS := $(SOURCES:%.c=$(DEPDIR)/%.d)
+
+ all:
+- @cd ffmpeg-strip-wma; make; cd ..
++ @cd ffmpeg-strip-wma/; gmake; cd ..
+ @$(MAKE) --no-print-directory -f Makefile.inc
+ @strip $(PLUGIN_FILE)
+ @echo "The plug-in has been compiled. Run one of the following:"
diff --git a/audio/xmms-wma/files/patch-Makefile.inc b/audio/xmms-wma/files/patch-Makefile.inc
new file mode 100644
index 0000000..206d834
--- /dev/null
+++ b/audio/xmms-wma/files/patch-Makefile.inc
@@ -0,0 +1,11 @@
+--- Makefile.inc.orig Thu Feb 26 12:27:32 2004
++++ Makefile.inc Thu Feb 26 11:33:27 2004
+@@ -6,7 +6,7 @@
+ CFLAGS += `glib-config --cflags` `gtk-config --cflags`
+
+ $(PLUGIN_FILE): $(OBJECTS)
+- $(CC) -o $@ $^ -L ffmpeg-strip-wma -lffwma -lxmms -shared
++ $(CC) -o $@ $^ -L ffmpeg-strip-wma -lffwma -shared ` xmms-config --libs`
+
+ $(OBJDIR)/%.o: %.c
+ $(CC) -c -o $@ $(CFLAGS) $<
diff --git a/audio/xmms-wma/files/patch-ffmpeg-strip-mem.c b/audio/xmms-wma/files/patch-ffmpeg-strip-mem.c
new file mode 100644
index 0000000..110ff14
--- /dev/null
+++ b/audio/xmms-wma/files/patch-ffmpeg-strip-mem.c
@@ -0,0 +1,12 @@
+--- ffmpeg-strip-wma/mem.c.orig Thu Feb 26 12:25:16 2004
++++ ffmpeg-strip-wma/mem.c Thu Feb 26 11:43:42 2004
+@@ -29,6 +29,9 @@
+ #undef free
+ #undef realloc
+
++#undef HAVE_MEMALIGN
++#undef HAVE_MALLOC_H
++
+ #ifdef HAVE_MALLOC_H
+ #include <malloc.h>
+ #endif
diff --git a/audio/xmms-wma/files/patch-ffmpeg-strip-wma-Makefile b/audio/xmms-wma/files/patch-ffmpeg-strip-wma-Makefile
new file mode 100644
index 0000000..9b6413b
--- /dev/null
+++ b/audio/xmms-wma/files/patch-ffmpeg-strip-wma-Makefile
@@ -0,0 +1,11 @@
+--- ffmpeg-strip-wma/Makefile.orig Thu Feb 26 12:24:53 2004
++++ ffmpeg-strip-wma/Makefile Thu Feb 26 11:30:18 2004
+@@ -6,7 +6,7 @@
+ include config.mak
+
+ # NOTE: -I.. is needed to include config.h
+-CFLAGS=$(OPTFLAGS) -DHAVE_AV_CONFIG_H -I.. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE
++CFLAGS=$(OPTFLAGS) -DHAVE_AV_CONFIG_H -I.. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -I/usr/local/include
+
+ OBJS= common.o utils.o mem.o allcodecs.o futils.o cutils.o os_support.o allformats.o parser.o \
+ avio.o aviobuf.o file.o simple_idct.o dsputil.o fft.o mdct.o asf.o
diff --git a/audio/xmms-wma/files/patch-ffmpeg-strip-wma-wmadec.c b/audio/xmms-wma/files/patch-ffmpeg-strip-wma-wmadec.c
new file mode 100644
index 0000000..e1f5b17
--- /dev/null
+++ b/audio/xmms-wma/files/patch-ffmpeg-strip-wma-wmadec.c
@@ -0,0 +1,11 @@
+--- ffmpeg-strip-wma/wmadec.c.orig Thu Feb 26 12:26:00 2004
++++ ffmpeg-strip-wma/wmadec.c Thu Feb 26 11:53:40 2004
+@@ -1155,7 +1155,7 @@
+ iptr = s->frame_out[ch];
+
+ for(i=0;i<n;i++) {
+- a = lrintf(*iptr++);
++ a = rintf(*iptr++);
+ if (a > 32767)
+ a = 32767;
+ else if (a < -32768)
diff --git a/audio/xmms-wma/files/patch-xmms-wma.c b/audio/xmms-wma/files/patch-xmms-wma.c
new file mode 100644
index 0000000..08c722e
--- /dev/null
+++ b/audio/xmms-wma/files/patch-xmms-wma.c
@@ -0,0 +1,11 @@
+--- xmms-wma.c.orig Thu Feb 26 12:26:21 2004
++++ xmms-wma.c Thu Feb 26 11:07:28 2004
+@@ -17,7 +17,7 @@
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+-#include <malloc.h>
++#include <stdlib.h>
+ #include <math.h>
+ #include <stdbool.h>
+ #include <stdio.h>
OpenPOWER on IntegriCloud