[SCM] snd/master: enable parallel builds

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Tue Aug 30 19:47:24 UTC 2011


The following commit has been merged in the master branch:
commit 3a308b0016efb82b6197438295d47d334e099501
Author: Reinhard Tartler <siretart at tauware.de>
Date:   Tue Aug 30 20:55:46 2011 +0200

    enable parallel builds

diff --git a/debian/rules b/debian/rules
index e675aab..a6cd4c0 100755
--- a/debian/rules
+++ b/debian/rules
@@ -4,6 +4,12 @@ export DEB_HOST_ARCH      ?= $(shell dpkg-architecture -qDEB_HOST_ARCH)
 export DEB_HOST_ARCH_OS   ?= $(shell dpkg-architecture -qDEB_HOST_ARCH_OS)
 export DEB_HOST_ARCH_CPU  ?= $(shell dpkg-architecture -qDEB_HOST_ARCH_CPU)
 
+ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
+    $(info Enable parallel builds with $(NUMJOBS) jobs)
+    NUMJOBS = $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
+    MAKEFLAGS += -j$(NUMJOBS)
+endif
+
 COMMON_CONFIGURE_ARGS=--with-ladspa \
 				--with-static-xg \
 				--enable-snd-debug \

-- 
snd packaging



More information about the pkg-multimedia-commits mailing list