Changeset View
Changeset View
Standalone View
Standalone View
Mk/bsd.port.mk
Show All 34 Lines | |||||
# different actions for different values. | # different actions for different values. | ||||
# | # | ||||
# ARCH - The architecture of the target machine, such as would be | # ARCH - The architecture of the target machine, such as would be | ||||
# returned by "uname -p". | # returned by "uname -p". | ||||
# OPSYS - Portability clause. This is the operating system the | # OPSYS - Portability clause. This is the operating system the | ||||
# makefile is being used on. Automatically set to | # makefile is being used on. Automatically set to | ||||
# "FreeBSD," "NetBSD," or "OpenBSD" as appropriate. | # "FreeBSD," "NetBSD," or "OpenBSD" as appropriate. | ||||
# OSREL - The release version of the operating system as a text | # OSREL - The release version of the operating system as a text | ||||
# string (e.g., "12.2"). | # string (e.g., "12.3"). | ||||
# OSVERSION - The operating system version as a comparable integer; | # OSVERSION - The operating system version as a comparable integer; | ||||
# the value of __FreeBSD_version (e.g., 1202000). | # the value of __FreeBSD_version (e.g., 1203000). | ||||
# | # | ||||
# This is the beginning of the list of all variables that need to be | # This is the beginning of the list of all variables that need to be | ||||
# defined in a port, listed in order that they should be included | # defined in a port, listed in order that they should be included | ||||
# to fit in with existing conventions. (Exception: MAINTAINER actually | # to fit in with existing conventions. (Exception: MAINTAINER actually | ||||
# should appear after EXTRACT_ONLY and before MASTER_SITE_BACKUP). | # should appear after EXTRACT_ONLY and before MASTER_SITE_BACKUP). | ||||
# | # | ||||
# These variables are used to identify your port. | # These variables are used to identify your port. | ||||
# | # | ||||
▲ Show 20 Lines • Show All 1,118 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} < 1202000) || \ | .if (${OPSYS} == FreeBSD && ${OSVERSION} < 1203000) || \ | ||||
(${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,275 Lines • Show Last 20 Lines |