[SCM] advanced 3D real time strategy game engine branch, master, updated. upstream/0.80.5.1-25-g85e48cc

Marco Amadori marco.amadori at gmail.com
Tue Dec 1 08:52:41 UTC 2009


The following commit has been merged in the master branch:
commit 85e48cc3643dfdb5a041a42ffa0e4d8a6cdbd040
Author: Marco Amadori <marco.amadori at gmail.com>
Date:   Tue Dec 1 09:50:00 2009 +0100

    Added support for parallel builds, thanks to fuddl.

diff --git a/debian/rules b/debian/rules
index ad53ffd..ac9841b 100755
--- a/debian/rules
+++ b/debian/rules
@@ -4,7 +4,10 @@
 #export DH_VERBOSE=1
 
 TMPINSTDIR := $(CURDIR)/debian/tmp
-export DEB_BUILD_OPTIONS := parallel=8
+ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
+    NUMJOBS = $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
+    MAKEFLAGS += -j$(NUMJOBS)
+endif
 
 override_dh_auto_configure:
 	dh_auto_configure -- -DBINDIR=/usr/games -DLIBDIR=/usr/lib/spring -DAI_LIBS_DIR=/usr/lib/spring -DAI_DATA_DIR=/usr/share/games/spring -DAI_TYPES=NATIVE -DCMAKE_BUILD_TYPE=RELEASE

-- 
advanced 3D real time strategy game engine



More information about the Pkg-games-commits mailing list