Changeset View
Changeset View
Standalone View
Standalone View
Mk/bsd.port.mk
Show First 20 Lines • Show All 1,219 Lines • ▼ Show 20 Lines | |||||
_OSVERSION_MAJOR= ${OSVERSION:C/([0-9]?[0-9])([0-9][0-9])[0-9]{3}/\1/} | _OSVERSION_MAJOR= ${OSVERSION:C/([0-9]?[0-9])([0-9][0-9])[0-9]{3}/\1/} | ||||
# Sanity checks for chroot/jail building. | # Sanity checks for chroot/jail building. | ||||
.if ${_OSVERSION_MAJOR} != ${UNAMER:R} | .if ${_OSVERSION_MAJOR} != ${UNAMER:R} | ||||
.error UNAME_r (${UNAMER}) and OSVERSION (${OSVERSION}) do not agree on major version number. | .error UNAME_r (${UNAMER}) and OSVERSION (${OSVERSION}) do not agree on major version number. | ||||
.elif ${_OSVERSION_MAJOR} != ${OSREL:R} | .elif ${_OSVERSION_MAJOR} != ${OSREL:R} | ||||
.error OSREL (${OSREL}) and OSVERSION (${OSVERSION}) do not agree on major version number. | .error OSREL (${OSREL}) and OSVERSION (${OSVERSION}) do not agree on major version number. | ||||
.endif | .endif | ||||
# Enable new xorg for FreeBSD versions after Radeon KMS was imported unless | |||||
# WITHOUT_NEW_XORG is set. | |||||
.if !defined(WITHOUT_NEW_XORG) | |||||
WITH_NEW_XORG?= yes | |||||
.else | |||||
.undef WITH_NEW_XORG | |||||
.endif | |||||
# Only define tools here (for transition period with between pkg tools) | # Only define tools here (for transition period with between pkg tools) | ||||
.include "${PORTSDIR}/Mk/bsd.commands.mk" | .include "${PORTSDIR}/Mk/bsd.commands.mk" | ||||
.if exists(${PKG_BIN}) | .if exists(${PKG_BIN}) | ||||
.if !defined(_PKG_VERSION) | .if !defined(_PKG_VERSION) | ||||
_PKG_VERSION!= ${PKG_BIN} -v | _PKG_VERSION!= ${PKG_BIN} -v | ||||
.endif | .endif | ||||
_PKG_STATUS!= ${PKG_BIN} version -t ${_PKG_VERSION:C/-.*//g} ${MINIMAL_PKG_VERSION} | _PKG_STATUS!= ${PKG_BIN} version -t ${_PKG_VERSION:C/-.*//g} ${MINIMAL_PKG_VERSION} | ||||
▲ Show 20 Lines • Show All 4,832 Lines • Show Last 20 Lines |