PATCH: Adding config-recursive to bsd.port.mk

Chris Dillon cdillon at wolves.k12.mo.us
Mon Dec 13 20:24:49 PST 2004


I got tired of starting long port builds with lots of dependances 
(KDE, etc.) and having many of the ports stop the whole build process 
to ask me what config options I wanted.  So, I thought what if I could 
easily pre-config all of the dependancies?  Here is the result, pretty 
much cut & paste from the fetch-recursive bits.  Patch attached, but 
if it doesn't come through it is available here:

ftp://ftp.wolves.k12.mo.us/pub/stuff/config-recursive.patch

Do any of you committers think this is a good idea and would like to 
commit it?

-- 
  Chris Dillon - cdillon(at)wolves.k12.mo.us
  FreeBSD: The fastest, most open, and most stable OS on the planet
  - Available for IA32, IA64, AMD64, PC98, Alpha, and UltraSPARC architectures
  - PowerPC, ARM, MIPS, and S/390 under development
  - http://www.freebsd.org

Q: Because it reverses the logical flow of conversation.
A: Why is putting a reply at the top of the message frowned upon?
-------------- next part --------------
--- bsd.port.mk.orig	Mon Dec 13 21:46:44 2004
+++ bsd.port.mk	Mon Dec 13 21:56:25 2004
@@ -611,6 +611,7 @@
 # config		- Configure options for this port (using ${DIALOG}).
 #				  Automatically run prior to extract, patch, configure, build,
 #				  install, and package.
+# config-recursive - Do a "make config" for this port and all dependencies.
 # showconfig	- Display options config for this port
 # rmconfig		- Remove the options config for this port
 #
@@ -4992,6 +4993,14 @@
 	fi; \
 	${RM} -f $${TMPOPTIONSFILE}
 .endif
+.endif
+
+.if !target(config-recursive)
+config-recursive:
+	@${ECHO_MSG} "===> Setting user-specified options for ${PKGNAME} and dependencies";
+	@for dir in ${.CURDIR} $$(${ALL-DEPENDS-LIST}); do \
+		(cd $$dir; ${MAKE} config); \
+	done
 .endif
 
 .if !target(showconfig)


More information about the freebsd-ports mailing list