Changeset View
Changeset View
Standalone View
Standalone View
Mk/bsd.licenses.mk
Show First 20 Lines • Show All 163 Lines • ▼ Show 20 Lines | |||||
_LICENSE_COOKIE?= ${WRKDIR}/.license_done.${PORTNAME}.${PREFIX:S/\//_/g} | _LICENSE_COOKIE?= ${WRKDIR}/.license_done.${PORTNAME}.${PREFIX:S/\//_/g} | ||||
# Defaults (never overriden for now) | # Defaults (never overriden for now) | ||||
# | # | ||||
# _LICENSE - Copy of LICENSE (for now) | # _LICENSE - Copy of LICENSE (for now) | ||||
# _LICENSE_COMB - Copy of LICENSE_COMB (but "single" instead of empty) | # _LICENSE_COMB - Copy of LICENSE_COMB (but "single" instead of empty) | ||||
_LICENSE?= ${LICENSE} | _LICENSE?= ${LICENSE} | ||||
.if !defined(LICENSE_COMB) | _LICENSE_COMB= ${LICENSE_COMB:?${LICENSE_COMB}:single} | ||||
_LICENSE_COMB= single | |||||
.else | |||||
_LICENSE_COMB= ${LICENSE_COMB} | |||||
.endif | |||||
# Check if single or dual/multiple license | # Check if single or dual/multiple license | ||||
# | # | ||||
# Make sure LICENSE_COMB is only used with more than one license. | # Make sure LICENSE_COMB is only used with more than one license. | ||||
.if ${_LICENSE_COMB} != "single" && ${_LICENSE_COMB} != "dual" && ${_LICENSE_COMB} != "multi" | .if ${_LICENSE_COMB} != "single" && ${_LICENSE_COMB} != "dual" && ${_LICENSE_COMB} != "multi" | ||||
_LICENSE_ERROR?= invalid value for LICENSE_COMB: "${_LICENSE_COMB}" (should be "single", "dual" or "multi") | _LICENSE_ERROR?= invalid value for LICENSE_COMB: "${_LICENSE_COMB}" (should be "single", "dual" or "multi") | ||||
.endif | .endif | ||||
▲ Show 20 Lines • Show All 633 Lines • Show Last 20 Lines |