summaryrefslogtreecommitdiff
path: root/graphics/avifile/patches/patch-aa
diff options
context:
space:
mode:
authorzuntum <zuntum@pkgsrc.org>2001-04-12 21:26:21 +0000
committerzuntum <zuntum@pkgsrc.org>2001-04-12 21:26:21 +0000
commit821cb0d8ef87ae482e89dac3e0ca7bc7ce09202f (patch)
treec8549fbcd7b83f6dc029380e65b38d35b9fd3317 /graphics/avifile/patches/patch-aa
parent918cdda6976ec77f9557b2b5ce8aef07c7d74254 (diff)
downloadpkgsrc-821cb0d8ef87ae482e89dac3e0ca7bc7ce09202f.tar.gz
Initial import of avifile-0.53.5
An MPEG-4 (aka DivX) player built around the Windows binaries, but does not need Wine. There is also a xmps plugin you can build (manually). NOTE: aviplay (player originally included in the package) does not work and thus the package does not build it. I'll send mail about tiny, but working player to netbsd-users@netbsd.org soon.
Diffstat (limited to 'graphics/avifile/patches/patch-aa')
-rw-r--r--graphics/avifile/patches/patch-aa44
1 files changed, 44 insertions, 0 deletions
diff --git a/graphics/avifile/patches/patch-aa b/graphics/avifile/patches/patch-aa
new file mode 100644
index 00000000000..015258d49c0
--- /dev/null
+++ b/graphics/avifile/patches/patch-aa
@@ -0,0 +1,44 @@
+$NetBSD: patch-aa,v 1.1.1.1 2001/04/12 21:26:21 zuntum Exp $
+
+--- lib/aviplay/audio.cpp.orig Fri Dec 15 07:53:05 2000
++++ lib/aviplay/audio.cpp
+@@ -28,7 +28,11 @@
+ #include <pthread.h>
+
+
+-#include <sys/soundcard.h>
++#ifdef __NetBSD__
++#include <soundcard.h>
++#else
++ #include <sys/soundcard.h>
++#endif
+
+ #include "aviplay_impl.h"
+ #include "audio.h"
+@@ -112,7 +116,7 @@
+ int audio_queue::write(int fd)//writes some data
+ {
+ int startpos, size, tmp;
+-#ifdef __FreeBSD__
++#if defined(__FreeBSD__) || defined(__NetBSD__)
+ const int AUDIO_BUFFER_SIZE=2048;
+ #else
+ const int AUDIO_BUFFER_SIZE=8192;
+@@ -372,7 +376,7 @@
+ audio_fd=-1;
+ try
+ {
+- audio_fd=open("/dev/dsp",O_RDWR|O_NDELAY);
++ audio_fd=open("/dev/audio",O_RDWR|O_NDELAY);
+ if(audio_fd<=0)
+ throw FATAL("Can't open audio device");
+ if(audio_fd>0)
+@@ -388,7 +392,7 @@
+ catch(FatalError&)
+ {
+ if(audio_fd>0)::close(audio_fd);
+- audio_fd=open("/dev/dsp", O_RDWR);
++ audio_fd=open("/dev/audio", O_RDWR);
+ }
+ if(audio_fd<=0)
+ throw FATAL("Can't open audio device");