pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/audio/xmms-wma Initial import of xmms-wma-1.04.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/666c0485fcda
branches:  trunk
changeset: 489956:666c0485fcda
user:      xtraeme <xtraeme%pkgsrc.org@localhost>
date:      Tue Mar 01 01:17:00 2005 +0000

description:
Initial import of xmms-wma-1.04.

XMMS input plugin to play WMA files.

diffstat:

 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(+), 0 deletions(-)

diffs (193 lines):

diff -r 1cbb1692652a -r 666c0485fcda audio/xmms-wma/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/xmms-wma/DESCR      Tue Mar 01 01:17:00 2005 +0000
@@ -0,0 +1,1 @@
+XMMS input plugin to play WMA files.
diff -r 1cbb1692652a -r 666c0485fcda audio/xmms-wma/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/xmms-wma/Makefile   Tue Mar 01 01:17:00 2005 +0000
@@ -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@localhost
+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 -r 1cbb1692652a -r 666c0485fcda audio/xmms-wma/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/xmms-wma/PLIST      Tue Mar 01 01:17:00 2005 +0000
@@ -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 -r 1cbb1692652a -r 666c0485fcda audio/xmms-wma/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/xmms-wma/distinfo   Tue Mar 01 01:17:00 2005 +0000
@@ -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 -r 1cbb1692652a -r 666c0485fcda audio/xmms-wma/patches/patch-aa
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/xmms-wma/patches/patch-aa   Tue Mar 01 01:17:00 2005 +0000
@@ -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 -r 1cbb1692652a -r 666c0485fcda audio/xmms-wma/patches/patch-ab
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/xmms-wma/patches/patch-ab   Tue Mar 01 01:17:00 2005 +0000
@@ -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 -r 1cbb1692652a -r 666c0485fcda audio/xmms-wma/patches/patch-ac
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/xmms-wma/patches/patch-ac   Tue Mar 01 01:17:00 2005 +0000
@@ -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 -r 1cbb1692652a -r 666c0485fcda audio/xmms-wma/patches/patch-ad
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/xmms-wma/patches/patch-ad   Tue Mar 01 01:17:00 2005 +0000
@@ -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!"
+ 



Home | Main Index | Thread Index | Old Index