summaryrefslogtreecommitdiff
path: root/multimedia/xvidcore
diff options
context:
space:
mode:
authorjmcneill <jmcneill>2009-01-24 05:34:42 +0000
committerjmcneill <jmcneill>2009-01-24 05:34:42 +0000
commit0d6a20276106a869eac22a75ba169fdfaa85ba76 (patch)
tree0c38745d6837b3e98d01f394f9236743f4c1771c /multimedia/xvidcore
parent099f40d9c9d458421e71d9e28547288d36f64e02 (diff)
downloadpkgsrc-0d6a20276106a869eac22a75ba169fdfaa85ba76.tar.gz
On systems where _SC_NPROCESSORS_CONF is not available, fallback to
single-threaded mode. Bump PKGREVISION.
Diffstat (limited to 'multimedia/xvidcore')
-rw-r--r--multimedia/xvidcore/Makefile3
-rw-r--r--multimedia/xvidcore/distinfo3
-rw-r--r--multimedia/xvidcore/patches/patch-ac16
3 files changed, 20 insertions, 2 deletions
diff --git a/multimedia/xvidcore/Makefile b/multimedia/xvidcore/Makefile
index 2f49aa4beaf..3fb81dd96ef 100644
--- a/multimedia/xvidcore/Makefile
+++ b/multimedia/xvidcore/Makefile
@@ -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 --git a/multimedia/xvidcore/distinfo b/multimedia/xvidcore/distinfo
index 5bbc695b9bf..fc664bacdbf 100644
--- a/multimedia/xvidcore/distinfo
+++ b/multimedia/xvidcore/distinfo
@@ -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 --git a/multimedia/xvidcore/patches/patch-ac b/multimedia/xvidcore/patches/patch-ac
new file mode 100644
index 00000000000..4d3fca92197
--- /dev/null
+++ b/multimedia/xvidcore/patches/patch-ac
@@ -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
+