1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-22 08:58:47 +00:00

- Try to guess sensible default values for OPTIONS.

This commit is contained in:
Florent Thoumie 2006-06-01 18:20:15 +00:00
parent e80287dc93
commit 06036293be
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=164169

View File

@ -25,8 +25,23 @@ FIRMWARES?= ${RELNAME}-${PORTVERSION}-i.fw:${DRIVERNAME}-i.fw \
${RELNAME}-${PORTVERSION}-p.fw:${DRIVERNAME}-p.fw \
${RELNAME}-${PORTVERSION}.fw:${DRIVERNAME}.fw
OPTIONS= MODULE "Install ${DRIVERNAME}(4) kernel module (very old snapshot)" off \
CONTROL "Install ${DRIVERNAME}control(8) utility" on
OSVERSION!= /sbin/sysctl -n kern.osreldate
# Dummy OSVERSION for ipw.
MIN7OSVERSION?= 999999
# Try to guess sensible defaults.
.if ${OSVERSION} > ${MIN7OSVERSION}
OPTIONS+= CONTROL "Install ${DRIVERNAME}control(8) utility" off
.else
OPTIONS+= CONTROL "Install ${DRIVERNAME}control(8) utility" on
.endif
.if ${OSVERSION} > 600023
OPTIONS+= MODULE "Install ${DRIVERNAME}(4) kernel module (very old snapshot)" off
.else
OPTIONS+= MODULE "Install ${DRIVERNAME}(4) kernel module (very old snapshot)" on
.endif
# Override PREFIX to install ${DRIVERNAME}control(8) somewhere we hope it'll
# be available soon enough.
@ -48,9 +63,6 @@ MAKE_ENV= BINDIR="${PREFIX}/sbin" \
MANCOMPRESSED= yes
# Dummy OSVERSION for ipw.
MIN7OSVERSION?= 999999
.if !defined(PACKAGE_BUILDING)
IS_INTERACTIVE= yes
.endif