Package: src:ncbi-blast+
Severity: wishlist
Tags: patch

ncbi-blast+ is a package that takes a lot of time to build on many
architectures, more than 10 hours on some of supported ones, it would
be nice to allow parallel building to make use of multi-core systems.

Attached is a patch that make the parallel process honors
DEB_BUILD_OPTIONS=parallel=n environmental variable.

Regards,
Aron
diff --git a/debian/rules b/debian/rules
index 8403437..c160df1 100755
--- a/debian/rules
+++ b/debian/rules
@@ -4,6 +4,10 @@
 # Uncomment this to turn on verbose mode.
 #export DH_VERBOSE=1
 
+NUMJOBS=1
+ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
+    NUMJOBS = $(patsubst parallel=%,%,$(filter 
parallel=%,$(DEB_BUILD_OPTIONS)))
+endif
 
 DEB_CONFIGURE_EXTRA_FLAGS=--with-dll --with-mt --without-autodep \
     --without-makefile-auto-update --with-flat-makefile --without-caution \
@@ -42,7 +46,7 @@ override_dh_auto_configure:
 
 override_dh_auto_build:
        cd c++/BUILD/build  && \
-           make -f Makefile.flat all_projects="$(proj)"
+           make -j$(NUMJOBS) -f Makefile.flat all_projects="$(proj)"
 #         make all_r
 
 

Reply via email to