[SCM] Packaging for sauerbraten game engine branch, master, updated. upstream/0.0.20090504.dfsg-23-gcfe86ef

Bruno Kleinert fuddl at tauware.de
Wed Sep 9 14:46:50 UTC 2009


The following commit has been merged in the master branch:
commit cfe86ef1ba978c3bedc5a8541a206b539c03f5e1
Author: Bruno Kleinert <fuddl at tauware.de>
Date:   Wed Sep 9 16:45:53 2009 +0200

    Make parallel builds possible on SMP
    
    Grab example code snippet from our policy and drop it into debian/rules. So
    MAKEFLAGS=-jN gets set.
    
    Start revision -2.

diff --git a/debian/changelog b/debian/changelog
index c0de21e..6dff340 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,11 @@
+sauerbraten (0.0.20090504.dfsg-2) unstable; urgency=low
+
+  [ Bruno "Fuddl" Kleinert ]
+  * Drop code snippet in debian/rules to make parallel builds possible on SMP
+    machines.
+
+ -- Bruno "Fuddl" Kleinert <fuddl at debian.org>  Wed, 09 Sep 2009 16:43:56 +0200
+
 sauerbraten (0.0.20090504.dfsg-1) unstable; urgency=low
 
   [ Bruno "Fuddl" Kleinert ]
diff --git a/debian/rules b/debian/rules
index cc67a36..8050744 100755
--- a/debian/rules
+++ b/debian/rules
@@ -8,6 +8,10 @@ ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
 else
 	CXXOPTFLAGS+=-O2 -fomit-frame-pointer
 endif
+ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
+    NUMJOBS = $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
+    MAKEFLAGS += -j$(NUMJOBS)
+endif
 
 
 patch-stamp: patch

-- 
Packaging for sauerbraten game engine



More information about the Pkg-games-commits mailing list