pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/graphics/mjpegtools Fix build problem on NetBSD system...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/4ffdfdad7475
branches:  trunk
changeset: 467009:4ffdfdad7475
user:      tron <tron%pkgsrc.org@localhost>
date:      Sun Jan 25 14:50:34 2004 +0000

description:
Fix build problem on NetBSD systems without native pthread support.

diffstat:

 graphics/mjpegtools/distinfo         |   3 ++-
 graphics/mjpegtools/patches/patch-ac |  24 ++++++++++++++++++++++++
 2 files changed, 26 insertions(+), 1 deletions(-)

diffs (40 lines):

diff -r 8c5b72f07603 -r 4ffdfdad7475 graphics/mjpegtools/distinfo
--- a/graphics/mjpegtools/distinfo      Sun Jan 25 14:31:02 2004 +0000
+++ b/graphics/mjpegtools/distinfo      Sun Jan 25 14:50:34 2004 +0000
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.6 2004/01/24 10:54:08 jmmv Exp $
+$NetBSD: distinfo,v 1.7 2004/01/25 14:50:34 tron Exp $
 
 SHA1 (mjpegtools-1.6.1.93.tar.gz) = f8d327c43139a5b21a64aa265b9e6511683e76f2
 Size (mjpegtools-1.6.1.93.tar.gz) = 1253561 bytes
 SHA1 (patch-aa) = b47aaacdbe02a3254c1ff58213448d63b39e5a34
 SHA1 (patch-ab) = 392bc09ca0142fb1e435b219e598a70ae4bf258f
+SHA1 (patch-ac) = 0297beecec5947ae153b60a43891c9d373255af5
diff -r 8c5b72f07603 -r 4ffdfdad7475 graphics/mjpegtools/patches/patch-ac
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/graphics/mjpegtools/patches/patch-ac      Sun Jan 25 14:50:34 2004 +0000
@@ -0,0 +1,24 @@
+$NetBSD: patch-ac,v 1.3 2004/01/25 14:50:34 tron Exp $
+
+--- lavtools/audiolib.c.orig   Mon Dec  8 13:28:32 2003
++++ lavtools/audiolib.c        Sun Jan 25 15:47:33 2004
+@@ -665,7 +665,9 @@
+    const char *audio_dev_name;
+ 
+ #ifndef FORK_NOT_THREAD
++#if !defined(__NetBSD__) || __NetBSD_Version__ >= 106130000   /* 1.6M */
+    struct sched_param schedparam;
++#endif
+    sigset_t blocked_signals;
+ 
+    /* Set the capture thread in a reasonable state - cancellation enabled
+@@ -862,7 +864,8 @@
+          memset(buf+nbset*info.fragsize,0,info.fragsize);
+    }
+ 
+-#ifndef FORK_NOT_THREAD
++#if !defined(FORK_NOT_THREAD) && \
++    (!defined(__NetBSD__) || __NetBSD_Version__ >= 106130000) /* 1.6M */
+    /* Now we're ready to go move to Real-time scheduling... */
+    schedparam.sched_priority = 1;
+ 



Home | Main Index | Thread Index | Old Index