--- src/include/Makefile 2014-10-16 11:12:03.000000000 +0200 +++ src/include/Makefile 2014-10-16 11:00:07.000000000 +0200 @@ -133,6 +133,18 @@ .include +# Install sys/param.h at install target if installincludes is requested to +# be skipped. This keeps the ports tree usefull on machines which otherwise +# don't have include files, since bsd.port.mk extracts OSVERSIION from it. +.if defined(MK_TOOLCHAIN) && ${MK_TOOLCHAIN} == "no" +install: +.if exists(${DESTDIR}${INCLUDEDIR}/sys) + cd ${.CURDIR}/../sys/sys; \ + ${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 param.h \ + ${DESTDIR}${INCLUDEDIR}/sys +.endif +.endif + installincludes: ${SHARED} ${SHARED}: compat