From ffc271c73abe88f05c5c2bbf6404a46d74f163e1 Mon Sep 17 00:00:00 2001 From: xtraeme Date: Tue, 1 Mar 2005 01:17:00 +0000 Subject: Initial import of xmms-wma-1.04. XMMS input plugin to play WMA files. --- audio/xmms-wma/DESCR | 1 + audio/xmms-wma/Makefile | 28 +++++++++++++++++++ audio/xmms-wma/PLIST | 2 ++ audio/xmms-wma/distinfo | 9 +++++++ audio/xmms-wma/patches/patch-aa | 18 +++++++++++++ audio/xmms-wma/patches/patch-ab | 17 ++++++++++++ audio/xmms-wma/patches/patch-ac | 60 +++++++++++++++++++++++++++++++++++++++++ audio/xmms-wma/patches/patch-ad | 26 ++++++++++++++++++ 8 files changed, 161 insertions(+) create mode 100644 audio/xmms-wma/DESCR create mode 100644 audio/xmms-wma/Makefile create mode 100644 audio/xmms-wma/PLIST create mode 100644 audio/xmms-wma/distinfo create mode 100644 audio/xmms-wma/patches/patch-aa create mode 100644 audio/xmms-wma/patches/patch-ab create mode 100644 audio/xmms-wma/patches/patch-ac create mode 100644 audio/xmms-wma/patches/patch-ad diff --git a/audio/xmms-wma/DESCR b/audio/xmms-wma/DESCR new file mode 100644 index 00000000000..bc3653e605e --- /dev/null +++ b/audio/xmms-wma/DESCR @@ -0,0 +1 @@ +XMMS input plugin to play WMA files. diff --git a/audio/xmms-wma/Makefile b/audio/xmms-wma/Makefile new file mode 100644 index 00000000000..724ac4bcf7d --- /dev/null +++ b/audio/xmms-wma/Makefile @@ -0,0 +1,28 @@ +# $NetBSD: Makefile,v 1.1.1.1 2005/03/01 01:17:00 xtraeme Exp $ +# + +DISTNAME= xmms-wma-1.0.4 +CATEGORIES= audio +MASTER_SITES= http://mcmcc.bat.ru/xmms-wma/ +EXTRACT_SUFX= .tar.bz2 + +MAINTAINER= tech-pkg@NetBSD.org +HOMEPAGE= http://mcmcc.bat.ru/xmms-wma/ +COMMENT= WMA input plugin for XMMS + +ONLY_FOR_PLATFORM= *-*-i386 # Doesn't seem to be very portable... + +USE_BUILDLINK3= yes +USE_GNU_TOOLS+= make + +.include "../../mk/bsd.prefs.mk" + +.if ${OPSYS} != "Linux" # XXX +SUBST_CLASSES+= rintf +SUBST_STAGE.rintf= pre-configure +SUBST_FILES.rintf= ffmpeg-strip-wma/wmadec.c +SUBST_SED.rintf= -e "s,lrintf,rintf,g" +.endif + +.include "../../audio/xmms/buildlink3.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/audio/xmms-wma/PLIST b/audio/xmms-wma/PLIST new file mode 100644 index 00000000000..f1cfb50ba34 --- /dev/null +++ b/audio/xmms-wma/PLIST @@ -0,0 +1,2 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2005/03/01 01:17:00 xtraeme Exp $ +lib/xmms/Input/libwma.so diff --git a/audio/xmms-wma/distinfo b/audio/xmms-wma/distinfo new file mode 100644 index 00000000000..db2d5a21390 --- /dev/null +++ b/audio/xmms-wma/distinfo @@ -0,0 +1,9 @@ +$NetBSD: distinfo,v 1.1.1.1 2005/03/01 01:17:00 xtraeme Exp $ + +SHA1 (xmms-wma-1.0.4.tar.bz2) = b7071c6fc17b22cb861f5071c97f72f876f271f9 +RMD160 (xmms-wma-1.0.4.tar.bz2) = bd79cf369a739000facc00f59d7a0d30dab6f5eb +Size (xmms-wma-1.0.4.tar.bz2) = 145691 bytes +SHA1 (patch-aa) = 602c8a420adc0dda801a9a90d92650e615a6140c +SHA1 (patch-ab) = feb6e8a14f515630901a83f6a2cb5d9a81fcf2d2 +SHA1 (patch-ac) = ad89ce099201b9e80bfeda7077ba6bcc9deb387e +SHA1 (patch-ad) = aee4ea1a154f71b2d4d1672bd8226ed76e0f909a diff --git a/audio/xmms-wma/patches/patch-aa b/audio/xmms-wma/patches/patch-aa new file mode 100644 index 00000000000..df3fd9f240a --- /dev/null +++ b/audio/xmms-wma/patches/patch-aa @@ -0,0 +1,18 @@ +$NetBSD: patch-aa,v 1.1.1.1 2005/03/01 01:17:00 xtraeme Exp $ + +--- xmms-wma.c.orig 2005-03-01 01:54:39.000000000 +0100 ++++ xmms-wma.c 2005-03-01 01:55:08.000000000 +0100 +@@ -19,9 +19,13 @@ + #ifndef __XMMS_WMA_C__ + #define __XMMS_WMA_C__ + ++#ifdef HAVE_MALLOC_H + #include ++#endif ++ + #include + #include ++#include + #include + #include + #include diff --git a/audio/xmms-wma/patches/patch-ab b/audio/xmms-wma/patches/patch-ab new file mode 100644 index 00000000000..4239a1af579 --- /dev/null +++ b/audio/xmms-wma/patches/patch-ab @@ -0,0 +1,17 @@ +$NetBSD: patch-ab,v 1.1.1.1 2005/03/01 01:17:00 xtraeme Exp $ + +--- ffmpeg-strip-wma/mem.c.orig 2005-03-01 01:58:20.000000000 +0100 ++++ ffmpeg-strip-wma/mem.c 2005-03-01 01:59:04.000000000 +0100 +@@ -32,6 +32,12 @@ + #ifdef HAVE_MALLOC_H + #include + #endif ++#include ++#include ++ ++#ifdef BSD ++#undef HAVE_MEMALIGN ++#endif + + /* you can redefine av_malloc and av_free in your project to use your + memory allocator. You do not need to suppress this file because the diff --git a/audio/xmms-wma/patches/patch-ac b/audio/xmms-wma/patches/patch-ac new file mode 100644 index 00000000000..78286e5e7f3 --- /dev/null +++ b/audio/xmms-wma/patches/patch-ac @@ -0,0 +1,60 @@ +$NetBSD: patch-ac,v 1.1.1.1 2005/03/01 01:17:01 xtraeme Exp $ + +--- ffmpeg-strip-wma/asf.c.orig Wed May 26 19:16:39 2004 ++++ ffmpeg-strip-wma/asf.c Sat Dec 11 21:32:58 2004 +@@ -16,10 +16,13 @@ + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ ++ ++#ifdef USE_ICONV ++#include ++#endif ++ + #include "avformat.h" + #include "avi.h" +-//#include "mpegaudio.h" +-#include + + #undef NDEBUG + #include +@@ -830,6 +833,7 @@ + return str; + } + ++#ifdef USE_ICONV + static void tag_recode(char *before, int len) + { + int result; +@@ -859,6 +863,7 @@ + return; + return; + } ++#endif + + static void get_str16_nolen(ByteIOContext *pb, int len, char *buf, int buf_size) + { +@@ -868,12 +873,17 @@ + q = buf; + lenz = len; + while (len > 0) { +- c = get_byte(pb); +- if ((q - buf) < buf_size-1) +- *q++ = c; +- len--; ++ c = get_byte(pb); ++ if ((q - buf) < buf_size - 1) ++ *q++ = c; ++ len--; + } +- tag_recode(buf, lenz); ++ ++#ifdef USE_ICONV ++ tag_recode(buf, lenz); ++#else ++ *q = '\0'; ++#endif + } + + static int asf_probe(AVProbeData *pd) + diff --git a/audio/xmms-wma/patches/patch-ad b/audio/xmms-wma/patches/patch-ad new file mode 100644 index 00000000000..e0da8752175 --- /dev/null +++ b/audio/xmms-wma/patches/patch-ad @@ -0,0 +1,26 @@ +$NetBSD: patch-ad,v 1.1.1.1 2005/03/01 01:17:01 xtraeme Exp $ + +--- Makefile.orig 2005-03-01 02:09:43.000000000 +0100 ++++ Makefile 2005-03-01 02:10:42.000000000 +0100 +@@ -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 +@@ -14,12 +14,9 @@ + @cd ffmpeg-strip-wma; make; cd .. + @$(MAKE) --no-print-directory -f Makefile.inc + @strip $(PLUGIN_FILE) +- @echo "The plug-in has been compiled. Run one of the following:" +- @echo "make install - for global (root) installation to $(INSTALL_DIR)" +- @echo "make install-home - for installation to home directory $(INSTALL_DIR_HOME)" + + install: all +- cp -f $(PLUGIN_FILE) $(INSTALL_DIR) ++ $(BSD_INSTALL_LIB) $(PLUGIN_FILE) $(INSTALL_DIR) + @echo "The plug-in has been installed." + @echo "Enjoy!" + -- cgit v1.2.3