The way to go is pass -j17 as MAKE_FLAGS to the Makefile being called for the
pkg to build. If you want to work on this, I may be able to review.
For an implementation, try the following patch with MAKE_J=-j3 in
/etc/mk.conf:
Index: bsd.pkg.mk
===================================================================
RCS file: /cvsroot/pkgsrc/mk/bsd.pkg.mk,v
retrieving revision 1.1607
diff -u -r1.1607 bsd.pkg.mk
--- bsd.pkg.mk 5 Apr 2005 03:18:00 -0000 1.1607
+++ bsd.pkg.mk 5 Apr 2005 12:28:03 -0000
@@ -2182,7 +2182,7 @@
# Build
BUILD_DIRS?= ${WRKSRC}
-BUILD_MAKE_FLAGS?= ${MAKE_FLAGS}
+BUILD_MAKE_FLAGS?= ${MAKE_J} ${MAKE_FLAGS}
.PHONY: do-build
.if !target(do-build)
What I'm afraid of is the non-pleasant, hard part - that pkg Makefiles
won't properly handle -j. :)
- Hubert
--
NetBSD - Free AND Open! (And of course secure, portable, yadda yadda)