pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/multimedia/xvidcore On systems where _SC_NPROCESSORS_C...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/d153fc3283f7
branches:  trunk
changeset: 553541:d153fc3283f7
user:      jmcneill <jmcneill%pkgsrc.org@localhost>
date:      Sat Jan 24 05:34:42 2009 +0000

description:
On systems where _SC_NPROCESSORS_CONF is not available, fallback to
single-threaded mode. Bump PKGREVISION.

diffstat:

 multimedia/xvidcore/Makefile         |   3 ++-
 multimedia/xvidcore/distinfo         |   3 ++-
 multimedia/xvidcore/patches/patch-ac |  16 ++++++++++++++++
 3 files changed, 20 insertions(+), 2 deletions(-)

diffs (45 lines):

diff -r 1577ded6738e -r d153fc3283f7 multimedia/xvidcore/Makefile
--- a/multimedia/xvidcore/Makefile      Sat Jan 24 03:05:39 2009 +0000
+++ b/multimedia/xvidcore/Makefile      Sat Jan 24 05:34:42 2009 +0000
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.32 2009/01/20 23:25:55 sketch Exp $
+# $NetBSD: Makefile,v 1.33 2009/01/24 05:34:42 jmcneill Exp $
 
 DISTNAME=      xvidcore-1.2.1
+PKGREVISION=   1
 CATEGORIES=    multimedia
 MASTER_SITES=  http://downloads.xvid.org/downloads/
 EXTRACT_SUFX=  .tar.bz2
diff -r 1577ded6738e -r d153fc3283f7 multimedia/xvidcore/distinfo
--- a/multimedia/xvidcore/distinfo      Sat Jan 24 03:05:39 2009 +0000
+++ b/multimedia/xvidcore/distinfo      Sat Jan 24 05:34:42 2009 +0000
@@ -1,7 +1,8 @@
-$NetBSD: distinfo,v 1.19 2009/01/07 10:52:12 wiz Exp $
+$NetBSD: distinfo,v 1.20 2009/01/24 05:34:42 jmcneill Exp $
 
 SHA1 (xvidcore-1.2.1.tar.bz2) = 0e4fdbbf12914999095a5ea51d94adb4e9a0eca3
 RMD160 (xvidcore-1.2.1.tar.bz2) = fcb6a5a0410d1921d99361fe5d580f00128b9ba3
 Size (xvidcore-1.2.1.tar.bz2) = 641101 bytes
 SHA1 (patch-aa) = 593ae63ddb5ec646d7f531b99783de64a9d6ceb3
 SHA1 (patch-ab) = 45989eeed44af684df183fde91dcc3acb60f022c
+SHA1 (patch-ac) = a04244714825effafbf0a6db9de38585413f794b
diff -r 1577ded6738e -r d153fc3283f7 multimedia/xvidcore/patches/patch-ac
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/multimedia/xvidcore/patches/patch-ac      Sat Jan 24 05:34:42 2009 +0000
@@ -0,0 +1,16 @@
+$NetBSD: patch-ac,v 1.4 2009/01/24 05:34:42 jmcneill Exp $
+
+--- src/xvid.c.orig    2009-01-24 00:33:11.000000000 -0500
++++ src/xvid.c 2009-01-24 00:33:42.000000000 -0500
+@@ -679,7 +679,11 @@ xvid_gbl_info(xvid_gbl_info_t * info)
+ 
+ #else
+ 
++#if defined(_SC_NPROCESSORS_CONF)
+   info->num_threads = sysconf(_SC_NPROCESSORS_CONF);  
++#else
++  info->num_threads = 1;
++#endif
+ 
+ #endif
+ 



Home | Main Index | Thread Index | Old Index