Changeset View
Changeset View
Standalone View
Standalone View
Mk/bsd.port.mk
Show First 20 Lines • Show All 1,167 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} < 1003000 || (${OSVERSION} >= 1100000 && ${OSVERSION} < 1101001))) || \ | .if (${OPSYS} == FreeBSD && (${OSVERSION} < 1004000 || (${OSVERSION} >= 1100000 && ${OSVERSION} < 1101001))) || \ | ||||
(${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 578 Lines • ▼ Show 20 Lines | |||||
.endif | .endif | ||||
.if !defined(WITHOUT_SSP) | .if !defined(WITHOUT_SSP) | ||||
.include "${PORTSDIR}/Mk/bsd.ssp.mk" | .include "${PORTSDIR}/Mk/bsd.ssp.mk" | ||||
.endif | .endif | ||||
# XXX PIE support to be added here | # XXX PIE support to be added here | ||||
MAKE_ENV+= NO_PIE=yes | MAKE_ENV+= NO_PIE=yes | ||||
# We prefer to pass MK_*=no but it was only supported after a certain | |||||
# revision. Passing WITHOUT_* may conflict with a make.conf or src.conf's | |||||
# WITH_* value. Note that ports *do* pull in src.conf. | |||||
.if ${OSVERSION} >= 1003503 | |||||
# We will control debug files. Don't let builds that use /usr/share/mk | # We will control debug files. Don't let builds that use /usr/share/mk | ||||
# split out debug symbols since the plist won't know to expect it. | # split out debug symbols since the plist won't know to expect it. | ||||
MAKE_ENV+= MK_DEBUG_FILES=no | MAKE_ENV+= MK_DEBUG_FILES=no | ||||
MAKE_ENV+= MK_KERNEL_SYMBOLS=no | MAKE_ENV+= MK_KERNEL_SYMBOLS=no | ||||
.else | |||||
MAKE_ENV+= WITHOUT_DEBUG_FILES=yes | |||||
MAKE_ENV+= WITHOUT_KERNEL_SYMBOLS=yes | |||||
.endif | |||||
CONFIGURE_SHELL?= ${SH} | CONFIGURE_SHELL?= ${SH} | ||||
MAKE_SHELL?= ${SH} | MAKE_SHELL?= ${SH} | ||||
CONFIGURE_ENV+= SHELL=${CONFIGURE_SHELL} CONFIG_SHELL=${CONFIGURE_SHELL} | CONFIGURE_ENV+= SHELL=${CONFIGURE_SHELL} CONFIG_SHELL=${CONFIGURE_SHELL} | ||||
MAKE_ENV+= SHELL=${MAKE_SHELL} NO_LINT=YES | MAKE_ENV+= SHELL=${MAKE_SHELL} NO_LINT=YES | ||||
.if defined(PATCHFILES) && ${PATCHFILES:M*.zip} | .if defined(PATCHFILES) && ${PATCHFILES:M*.zip} | ||||
▲ Show 20 Lines • Show All 3,635 Lines • Show Last 20 Lines |