The following commit has been merged in the master branch:
commit 85e48cc3643dfdb5a041a42ffa0e4d8a6cdbd040
Author: Marco Amadori <[email protected]>
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

_______________________________________________
Pkg-games-commits mailing list
[email protected]
http://lists.alioth.debian.org/mailman/listinfo/pkg-games-commits

Reply via email to