[SCM] cinelerra-cv/master: Support multiple makes at once whenever possible.

alessio at users.alioth.debian.org alessio at users.alioth.debian.org
Tue Apr 26 15:01:30 UTC 2011


The following commit has been merged in the master branch:
commit edfe334b2d291e96a09fb31c03835182c2090fb5
Author: Alessio Treglia <alessio at debian.org>
Date:   Tue Apr 26 17:01:29 2011 +0200

    Support multiple makes at once whenever possible.

diff --git a/debian/rules b/debian/rules
index 39655bd..7f3aa83 100755
--- a/debian/rules
+++ b/debian/rules
@@ -2,6 +2,18 @@
 
 LDFLAGS+=-Wl,--as-needed
 
+# Support multiple makes at once
+ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
+NUMJOBS = -j$(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
+else
+# on i386 and amd64, we query the system unless overriden by DEB_BUILD_OPTIONS
+ifeq      ($(DEB_HOST_ARCH),i386)
+NUMJOBS := -j$(shell getconf _NPROCESSORS_ONLN 2>/dev/null || echo 1)
+else ifeq ($(DEB_HOST_ARCH),amd64)
+NUMJOBS := -j$(shell getconf _NPROCESSORS_ONLN 2>/dev/null || echo 1)
+endif
+endif
+
 %:
 	dh $@ --with autotools_dev
 

-- 
cinelerra-cv packaging



More information about the pkg-multimedia-commits mailing list