Changeset View
Changeset View
Standalone View
Standalone View
head/Mk/bsd.port.mk
Show First 20 Lines • Show All 1,026 Lines • ▼ Show 20 Lines | |||||
USESDIR?= ${PORTSDIR}/Mk/Uses | USESDIR?= ${PORTSDIR}/Mk/Uses | ||||
SCRIPTSDIR?= ${PORTSDIR}/Mk/Scripts | SCRIPTSDIR?= ${PORTSDIR}/Mk/Scripts | ||||
LIB_DIRS?= /lib /usr/lib ${LOCALBASE}/lib | LIB_DIRS?= /lib /usr/lib ${LOCALBASE}/lib | ||||
STAGEDIR?= ${WRKDIR}/stage | STAGEDIR?= ${WRKDIR}/stage | ||||
NOTPHONY?= | NOTPHONY?= | ||||
FLAVORS?= | FLAVORS?= | ||||
FLAVOR?= | FLAVOR?= | ||||
OVERLAYS?= | OVERLAYS?= | ||||
REWARNFILE?= ${WRKDIR}/reinplace_warnings.txt | |||||
# Disallow forced FLAVOR as make argument since we cannot change it to the | # Disallow forced FLAVOR as make argument since we cannot change it to the | ||||
# proper default. | # proper default. | ||||
.if empty(FLAVOR) && !empty(.MAKEOVERRIDES:MFLAVOR) | .if empty(FLAVOR) && !empty(.MAKEOVERRIDES:MFLAVOR) | ||||
.error FLAVOR may not be passed empty as a make argument. | .error FLAVOR may not be passed empty as a make argument. | ||||
.endif | .endif | ||||
# Store env FLAVOR for later | # Store env FLAVOR for later | ||||
.if !defined(_FLAVOR) | .if !defined(_FLAVOR) | ||||
_FLAVOR:= ${FLAVOR} | _FLAVOR:= ${FLAVOR} | ||||
▲ Show 20 Lines • Show All 574 Lines • ▼ Show 20 Lines | |||||
MAKE_ENV+= TMPDIR="${TMPDIR}" | MAKE_ENV+= TMPDIR="${TMPDIR}" | ||||
CONFIGURE_ENV+= TMPDIR="${TMPDIR}" | CONFIGURE_ENV+= TMPDIR="${TMPDIR}" | ||||
.endif # defined(TMPDIR) | .endif # defined(TMPDIR) | ||||
QA_ENV+= STAGEDIR=${STAGEDIR} \ | QA_ENV+= STAGEDIR=${STAGEDIR} \ | ||||
PREFIX=${PREFIX} \ | PREFIX=${PREFIX} \ | ||||
LINUXBASE=${LINUXBASE} \ | LINUXBASE=${LINUXBASE} \ | ||||
LOCALBASE=${LOCALBASE} \ | LOCALBASE=${LOCALBASE} \ | ||||
REWARNFILE=${REWARNFILE} \ | |||||
"STRIP=${STRIP}" \ | "STRIP=${STRIP}" \ | ||||
TMPPLIST=${TMPPLIST} \ | TMPPLIST=${TMPPLIST} \ | ||||
CURDIR='${.CURDIR}' \ | CURDIR='${.CURDIR}' \ | ||||
PKGMESSAGES='${_PKGMESSAGES}' \ | PKGMESSAGES='${_PKGMESSAGES}' \ | ||||
FLAVOR=${FLAVOR} \ | FLAVOR=${FLAVOR} \ | ||||
FLAVORS='${FLAVORS}' \ | FLAVORS='${FLAVORS}' \ | ||||
BUNDLE_LIBS=${BUNDLE_LIBS} \ | BUNDLE_LIBS=${BUNDLE_LIBS} \ | ||||
LDCONFIG_DIR="${LDCONFIG_DIR}" \ | LDCONFIG_DIR="${LDCONFIG_DIR}" \ | ||||
▲ Show 20 Lines • Show All 372 Lines • ▼ Show 20 Lines | |||||
.if defined(USE_LOCALE) | .if defined(USE_LOCALE) | ||||
CONFIGURE_ENV+= LANG=${USE_LOCALE} LC_ALL=${USE_LOCALE} | CONFIGURE_ENV+= LANG=${USE_LOCALE} LC_ALL=${USE_LOCALE} | ||||
MAKE_ENV+= LANG=${USE_LOCALE} LC_ALL=${USE_LOCALE} | MAKE_ENV+= LANG=${USE_LOCALE} LC_ALL=${USE_LOCALE} | ||||
.endif | .endif | ||||
# Macro for doing in-place file editing using regexps | # Macro for doing in-place file editing using regexps | ||||
REINPLACE_ARGS?= -i.bak | REINPLACE_ARGS?= -i.bak | ||||
.if defined(DEVELOPER) | |||||
REINPLACE_CMD?= ${SETENV} WRKSRC=${WRKSRC} REWARNFILE=${REWARNFILE} ${PORTSDIR}/Tools/scripts/sed_checked.sh | |||||
.else | |||||
REINPLACE_CMD?= ${SED} ${REINPLACE_ARGS} | REINPLACE_CMD?= ${SED} ${REINPLACE_ARGS} | ||||
.endif | |||||
FRAMEWORK_REINPLACE_CMD?= ${SED} -i.bak | |||||
# Names of cookies used to skip already completed stages | # Names of cookies used to skip already completed stages | ||||
EXTRACT_COOKIE?= ${WRKDIR}/.extract_done.${PORTNAME}.${PREFIX:S/\//_/g} | EXTRACT_COOKIE?= ${WRKDIR}/.extract_done.${PORTNAME}.${PREFIX:S/\//_/g} | ||||
CONFIGURE_COOKIE?= ${WRKDIR}/.configure_done.${PORTNAME}.${PREFIX:S/\//_/g} | CONFIGURE_COOKIE?= ${WRKDIR}/.configure_done.${PORTNAME}.${PREFIX:S/\//_/g} | ||||
INSTALL_COOKIE?= ${WRKDIR}/.install_done.${PORTNAME}.${PREFIX:S/\//_/g} | INSTALL_COOKIE?= ${WRKDIR}/.install_done.${PORTNAME}.${PREFIX:S/\//_/g} | ||||
BUILD_COOKIE?= ${WRKDIR}/.build_done.${PORTNAME}.${PREFIX:S/\//_/g} | BUILD_COOKIE?= ${WRKDIR}/.build_done.${PORTNAME}.${PREFIX:S/\//_/g} | ||||
PATCH_COOKIE?= ${WRKDIR}/.patch_done.${PORTNAME}.${PREFIX:S/\//_/g} | PATCH_COOKIE?= ${WRKDIR}/.patch_done.${PORTNAME}.${PREFIX:S/\//_/g} | ||||
PACKAGE_COOKIE?= ${WRKDIR}/.package_done.${PORTNAME}.${PREFIX:S/\//_/g} | PACKAGE_COOKIE?= ${WRKDIR}/.package_done.${PORTNAME}.${PREFIX:S/\//_/g} | ||||
▲ Show 20 Lines • Show All 3,372 Lines • Show Last 20 Lines |