Changeset View
Changeset View
Standalone View
Standalone View
Mk/bsd.port.mk
Show First 20 Lines • Show All 1,174 Lines • ▼ Show 20 Lines | |||||
.elif exists(${SRC_BASE}/sys/sys/param.h) | .elif exists(${SRC_BASE}/sys/sys/param.h) | ||||
OSVERSION!= ${AWK} '/^\#define[[:blank:]]__FreeBSD_version/ {print $$3}' < ${SRC_BASE}/sys/sys/param.h | OSVERSION!= ${AWK} '/^\#define[[:blank:]]__FreeBSD_version/ {print $$3}' < ${SRC_BASE}/sys/sys/param.h | ||||
.else | .else | ||||
.error Unable to determine OS version. Either define OSVERSION, install /usr/include/sys/param.h or define SRC_BASE. | .error Unable to determine OS version. Either define OSVERSION, install /usr/include/sys/param.h or define SRC_BASE. | ||||
.endif | .endif | ||||
.endif | .endif | ||||
_EXPORTED_VARS+= OSVERSION | _EXPORTED_VARS+= OSVERSION | ||||
.if (${OPSYS} == FreeBSD && (${OSVERSION} < 1004000 || (${OSVERSION} >= 1100000 && ${OSVERSION} < 1102000))) || \ | .if (${OPSYS} == FreeBSD && ${OSVERSION} < 1102000) || \ | ||||
(${OPSYS} == DragonFly && ${DFLYVERSION} < 400400) | (${OPSYS} == DragonFly && ${DFLYVERSION} < 400400) | ||||
_UNSUPPORTED_SYSTEM_MESSAGE= Ports Collection support for your ${OPSYS} version has ended, and no ports\ | _UNSUPPORTED_SYSTEM_MESSAGE= Ports Collection support for your ${OPSYS} version has ended, and no ports\ | ||||
are guaranteed to build on this system. Please upgrade to a supported release. | are guaranteed to build on this system. Please upgrade to a supported release. | ||||
. if defined(ALLOW_UNSUPPORTED_SYSTEM) | . if defined(ALLOW_UNSUPPORTED_SYSTEM) | ||||
WARNING+= "${_UNSUPPORTED_SYSTEM_MESSAGE}" | WARNING+= "${_UNSUPPORTED_SYSTEM_MESSAGE}" | ||||
. else | . else | ||||
show-unsupported-system-error: | show-unsupported-system-error: | ||||
@${ECHO_MSG} "/!\\ ERROR: /!\\" | @${ECHO_MSG} "/!\\ ERROR: /!\\" | ||||
▲ Show 20 Lines • Show All 4,208 Lines • Show Last 20 Lines |