Hey folks,

I'm trying to get avifile from cvs working on NetBSD.
Please add these patches:

--- lib/common/util.cpp.orig    Mon Apr 30 11:55:42 2001
+++ lib/common/util.cpp
@@ -2,6 +2,9 @@
 #include <cpuinfo.h>
 #include <formats.h>
 #include <infotypes.h>
+#ifdef __NetBSD__
+#include <sys/inttypes.h>
+#endif
 
 #include <string.h>
 #ifndef WIN32


--- lib/aviplay/aviplay_impl.h.orig     Mon Apr 30 11:23:03 2001
+++ lib/aviplay/aviplay_impl.h
@@ -1,7 +1,9 @@
 #include <config.h>
 
 #include <vector>
+#ifndef __NetBSD__
 #include <semaphore.h>
+#endif
 
 #include <aviplay.h>
 #include <avifile.h>

I'm not sure what semaphore.h is, but simply removing this include makes avifile 
compile
fine...


--- plugins/libwin32/loader/Makefile.am.orig    Thu Apr 26 18:23:15 2001
+++ plugins/libwin32/loader/Makefile.am
@@ -18,8 +18,6 @@
 # .text section has been changed to .data section
 # so we eliminate .rel.text section from library
 # it works this way too
-stubs.lo: stubs.s
-       $(CC) -c $(srcdir)/stubs.s -o stubs.lo
 
 #win32.lo: win32.c
 #      $(CC) -O2 -fno-inline -fno-strict-aliasing $(DEFS) $(WINFLAGS) -c $< -o $@

libtool complains that stubs.s "is not valid libtool object"; adding this patch
fixes the problem.


--- lib/aviplay/SdlAudioRenderer.cpp.orig       Thu Apr 26 18:23:20 2001
+++ lib/aviplay/SdlAudioRenderer.cpp
@@ -150,6 +150,7 @@
 
        a.m_Mutex.unlock();
 
+/*
        Debug
        {
            static uint64_t mylast = 0;
@@ -167,6 +168,7 @@
                << ", persec " << a.m_Owf.nSamplesPerSec
                << endl;
        }
+*/
 
        break;
     }

I don't remember what's broken here, but at least it compiles with the patch.

It doesn't look for pthread.h in ${LOCALBASE}/include yet,
ln -s /usr/pkg/include/pthread.h /usr/include is a quick & dirty fix.
More needs to be done, but unfortunatelly I don't have time now.

-- 
/* [zuntum] [EMAIL PROTECTED] , [WWW] http://zuntum.net */

_______________________________________________
Avifile mailing list
[EMAIL PROTECTED]
http://prak.org/mailman/listinfo/avifile

Reply via email to