Changeset View
Changeset View
Standalone View
Standalone View
Mk/bsd.port.mk
Show First 20 Lines • Show All 1,068 Lines • ▼ Show 20 Lines | |||||
# make -C /usr/ports/category/port/. | # make -C /usr/ports/category/port/. | ||||
.CURDIR:= ${.CURDIR:tA} | .CURDIR:= ${.CURDIR:tA} | ||||
# make sure bmake treats -V as expected | # make sure bmake treats -V as expected | ||||
.MAKE.EXPAND_VARIABLES= yes | .MAKE.EXPAND_VARIABLES= yes | ||||
.include "${PORTSDIR}/Mk/bsd.commands.mk" | .include "${PORTSDIR}/Mk/bsd.commands.mk" | ||||
.if !empty(FLAVOR) | |||||
. if empty(FLAVORS) | |||||
IGNORE= FLAVOR is defined while this port does not have FLAVORS. | |||||
. elif ! ${FLAVORS:M${FLAVOR}} | |||||
IGNORE= Unknown flavor '${FLAVOR}', possible flavors: ${FLAVORS}. | |||||
. endif | |||||
.endif | |||||
.if !empty(FLAVORS) && empty(FLAVOR) | |||||
FLAVOR= ${FLAVORS:[1]} | |||||
.endif | |||||
# Do not leak flavors to childs make | # Do not leak flavors to childs make | ||||
.MAKEOVERRIDES:= ${MAKEOVERRIDES:NFLAVOR=*} | .MAKEOVERRIDES:= ${MAKEOVERRIDES:NFLAVOR=*} | ||||
.if defined(CROSS_TOOLCHAIN) | .if defined(CROSS_TOOLCHAIN) | ||||
.if !defined(CROSS_SYSROOT) | .if !defined(CROSS_SYSROOT) | ||||
IGNORE= CROSS_SYSROOT should be defined | IGNORE= CROSS_SYSROOT should be defined | ||||
.endif | .endif | ||||
.include "${LOCALBASE}/share/toolchains/${CROSS_TOOLCHAIN}.mk" | .include "${LOCALBASE}/share/toolchains/${CROSS_TOOLCHAIN}.mk" | ||||
▲ Show 20 Lines • Show All 359 Lines • ▼ Show 20 Lines | |||||
_f:= ${f:C/\:.*//} | _f:= ${f:C/\:.*//} | ||||
.if !defined(${_f}_ARGS) | .if !defined(${_f}_ARGS) | ||||
${_f}_ARGS:= ${f:C/^[^\:]*(\:|\$)//:S/,/ /g} | ${_f}_ARGS:= ${f:C/^[^\:]*(\:|\$)//:S/,/ /g} | ||||
.endif | .endif | ||||
.endfor | .endfor | ||||
.for f in ${USES} | .for f in ${USES} | ||||
.include "${USESDIR}/${f:C/\:.*//}.mk" | .include "${USESDIR}/${f:C/\:.*//}.mk" | ||||
.endfor | .endfor | ||||
.if !empty(FLAVOR) | |||||
. if empty(FLAVORS) | |||||
IGNORE= FLAVOR is defined while this port does not have FLAVORS. | |||||
. elif ! ${FLAVORS:M${FLAVOR}} | |||||
IGNORE= Unknown flavor '${FLAVOR}', possible flavors: ${FLAVORS}. | |||||
. endif | |||||
.endif | |||||
.if !empty(FLAVORS) && empty(FLAVOR) | |||||
FLAVOR= ${FLAVORS:[1]} | |||||
.endif | |||||
EXTRACT_SUFX?= .tar.gz | EXTRACT_SUFX?= .tar.gz | ||||
.if defined(USE_LINUX_PREFIX) | .if defined(USE_LINUX_PREFIX) | ||||
PREFIX= ${LINUXBASE} | PREFIX= ${LINUXBASE} | ||||
DATADIR?= ${PREFIX}/usr/share/${PORTNAME} | DATADIR?= ${PREFIX}/usr/share/${PORTNAME} | ||||
DOCSDIR?= ${PREFIX}/usr/share/doc/${PORTNAME}-${PORTVERSION} | DOCSDIR?= ${PREFIX}/usr/share/doc/${PORTNAME}-${PORTVERSION} | ||||
NO_LICENSES_INSTALL= yes | NO_LICENSES_INSTALL= yes | ||||
▲ Show 20 Lines • Show All 3,960 Lines • Show Last 20 Lines |