diff --git a/release/Makefile.inc.docports b/release/Makefile.inc.docports index bd6786b3576c..60b7ec3efc6b 100644 --- a/release/Makefile.inc.docports +++ b/release/Makefile.inc.docports @@ -9,6 +9,16 @@ # names, so the required part of the ports infrastructure will # be cvs co'ed accordingly. # + +# Get __FreeBSD_version +.if !defined(OSVERSION) +.if exists(/sbin/sysctl) +OSVERSION!= /sbin/sysctl -n kern.osreldate +.else +OSVERSION!= /usr/sbin/sysctl -n kern.osreldate +.endif +.endif + MINIMALDOCPORTS= \ ports/Mk \ ports/archivers/unzip \ @@ -47,6 +57,9 @@ MINIMALDOCPORTS= \ ports/textproc/xhtml \ ports/www/links1 \ ports/www/tidy +.if ${OSVERSION} < 460101 || ( ${OSVERSION} >= 500000 && ${OSVERSION} < 500036 ) +MINIMALDOCPORTS+= ports/textproc/sed_inplace +.endif .if ${MACHINE_ARCH} == "alpha" MINIMALDOCPORTS+= ports/textproc/openjade .else