summaryrefslogtreecommitdiff
path: root/audio
diff options
context:
space:
mode:
authorben <ben>2006-08-28 05:11:06 +0000
committerben <ben>2006-08-28 05:11:06 +0000
commit293f7040c9cdc89fa380ea63fc58515879260364 (patch)
treed8a440311ceb40af17c66a3d283508ff341ff799 /audio
parent5ea35c1a75d9d42b7a63e08fe08fe0edc285b96e (diff)
downloadpkgsrc-293f7040c9cdc89fa380ea63fc58515879260364.tar.gz
Initial import of xmms-osx version 1.0, an XMMS plugin for OSX native
audio output.
Diffstat (limited to 'audio')
-rw-r--r--audio/xmms-osx/DESCR1
-rw-r--r--audio/xmms-osx/Makefile26
-rw-r--r--audio/xmms-osx/PLIST2
-rw-r--r--audio/xmms-osx/distinfo6
-rw-r--r--audio/xmms-osx/patches/patch-aa20
5 files changed, 55 insertions, 0 deletions
diff --git a/audio/xmms-osx/DESCR b/audio/xmms-osx/DESCR
new file mode 100644
index 00000000000..5484743e067
--- /dev/null
+++ b/audio/xmms-osx/DESCR
@@ -0,0 +1 @@
+OSX Native Audio Output Plugin for XMMS
diff --git a/audio/xmms-osx/Makefile b/audio/xmms-osx/Makefile
new file mode 100644
index 00000000000..da8c5e2db0f
--- /dev/null
+++ b/audio/xmms-osx/Makefile
@@ -0,0 +1,26 @@
+# $NetBSD: Makefile,v 1.1.1.1 2006/08/28 05:11:06 ben Exp $
+#
+
+DISTNAME= xmms_osx_plugin-1.0
+PKGNAME= xmms-osx-1.0
+CATEGORIES= audio
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=dbmix/}
+
+MAINTAINER= ben@NetBSD.org
+HOMEPAGE= http://dbmix.sourceforge.net/
+COMMENT= XMMS plugin for OSX native audio output
+
+LDFLAGS+= -lm
+GNU_CONFIGURE= yes
+USE_LIBTOOL= yes
+SHLIBTOOL_OVERRIDE= libtool-disable-static
+USE_TOOLS+= pkg-config
+
+USE_LANGUAGES= c c++
+
+PKG_INSTALLATION_TYPES= overwrite pkgviews
+
+.include "../../audio/xmms/buildlink3.mk"
+.include "../../mk/oss.buildlink3.mk"
+.include "../../mk/pthread.buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/audio/xmms-osx/PLIST b/audio/xmms-osx/PLIST
new file mode 100644
index 00000000000..8a4614351f6
--- /dev/null
+++ b/audio/xmms-osx/PLIST
@@ -0,0 +1,2 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2006/08/28 05:11:06 ben Exp $
+lib/xmms/Output/libOSX.la
diff --git a/audio/xmms-osx/distinfo b/audio/xmms-osx/distinfo
new file mode 100644
index 00000000000..c5d3a7cf21c
--- /dev/null
+++ b/audio/xmms-osx/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1.1.1 2006/08/28 05:11:06 ben Exp $
+
+SHA1 (xmms_osx_plugin-1.0.tar.gz) = 93ef4dcf8f6697c24a1924168a386c839c7df08f
+RMD160 (xmms_osx_plugin-1.0.tar.gz) = febb02b64cf9ac923aee08be443e17e647669354
+Size (xmms_osx_plugin-1.0.tar.gz) = 313050 bytes
+SHA1 (patch-aa) = 7e8119c6009cc555507528493c4a01f09c42d04b
diff --git a/audio/xmms-osx/patches/patch-aa b/audio/xmms-osx/patches/patch-aa
new file mode 100644
index 00000000000..f58dc5fd2e6
--- /dev/null
+++ b/audio/xmms-osx/patches/patch-aa
@@ -0,0 +1,20 @@
+$NetBSD: patch-aa,v 1.1.1.1 2006/08/28 05:11:06 ben Exp $
+
+--- src/audio.c.orig 2004-06-13 15:43:04.000000000 -0700
++++ src/audio.c
+@@ -257,7 +257,14 @@ gint osx_get_written_time(void)
+ gint osx_get_output_time(void)
+ {
+ gint retval;
+-
++ // output.bps is updated several times per second, however
++ // this function is called before output.bps is initalized,
++ // causing a divide by zero floating point exception.
++ // in this case, choose a sane default value. it will be
++ // overwritten in a few microseconds, so the value is not
++ // critical. --Ben
++ if (output.bps == 0)
++ output.bps = 384000;
+ retval = output_time_offset + ((output_total * sample_size * 1000) / output.bps);
+ retval = (int)((float)retval / user_pitch);
+