Index: sys/modules/Makefile =================================================================== RCS file: /usr/CVS-Repository/src/sys/modules/Makefile,v retrieving revision 1.458 diff -u -r1.458 Makefile --- sys/modules/Makefile 3 Oct 2005 07:05:34 -0000 1.458 +++ sys/modules/Makefile 13 Oct 2005 03:02:06 -0000 @@ -181,6 +181,7 @@ ${_pf} \ plip \ ${_pmc} \ + ${_ports} \ portalfs \ ppbus \ ppi \ @@ -498,6 +499,13 @@ _sound= sound .endif +PORTPREFIXES?= /usr/local /usr/X11R6 +.for d in ${PORTPREFIXES} +.if exists(${d}/kld) +_ports+= ../../../../${d}/kld +.endif +.endfor + .if defined(MODULES_OVERRIDE) && !defined(ALL_MODULES) SUBDIR=${MODULES_OVERRIDE} .endif