diff options
author | xtraeme <xtraeme@pkgsrc.org> | 2005-03-01 01:17:00 +0000 |
---|---|---|
committer | xtraeme <xtraeme@pkgsrc.org> | 2005-03-01 01:17:00 +0000 |
commit | 21903c9cb73da7af054e7b516ae826c3c843e115 (patch) | |
tree | 4c78ae23a4d2ce8afe3310e17f7f45622be26c21 /audio/xmms-wma | |
parent | 7cf640e2e793f18d7dae23bb0dbc3700a2e7bdc0 (diff) | |
download | pkgsrc-21903c9cb73da7af054e7b516ae826c3c843e115.tar.gz |
Initial import of xmms-wma-1.04.
XMMS input plugin to play WMA files.
Diffstat (limited to 'audio/xmms-wma')
-rw-r--r-- | audio/xmms-wma/DESCR | 1 | ||||
-rw-r--r-- | audio/xmms-wma/Makefile | 28 | ||||
-rw-r--r-- | audio/xmms-wma/PLIST | 2 | ||||
-rw-r--r-- | audio/xmms-wma/distinfo | 9 | ||||
-rw-r--r-- | audio/xmms-wma/patches/patch-aa | 18 | ||||
-rw-r--r-- | audio/xmms-wma/patches/patch-ab | 17 | ||||
-rw-r--r-- | audio/xmms-wma/patches/patch-ac | 60 | ||||
-rw-r--r-- | audio/xmms-wma/patches/patch-ad | 26 |
8 files changed, 161 insertions, 0 deletions
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 <malloc.h> ++#endif ++ + #include <math.h> + #include <stdbool.h> ++#include <stdlib.h> + #include <stdio.h> + #include <string.h> + #include <pthread.h> 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 <malloc.h> + #endif ++#include <stdlib.h> ++#include <sys/param.h> ++ ++#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 <iconv.h> ++#endif ++ + #include "avformat.h" + #include "avi.h" +-//#include "mpegaudio.h" +-#include <iconv.h> + + #undef NDEBUG + #include <assert.h> +@@ -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!" + |