Changeset View
Changeset View
Standalone View
Standalone View
Mk/bsd.port.mk
Show First 20 Lines • Show All 357 Lines • ▼ Show 20 Lines | |||||
# the system or installed from a port. | # the system or installed from a port. | ||||
# USE_CSTD - Override the default C language standard (gnu89, gnu99) | # USE_CSTD - Override the default C language standard (gnu89, gnu99) | ||||
# USE_CXXSTD Override the default C++ language standard | # USE_CXXSTD Override the default C++ language standard | ||||
# USE_BINUTILS - Use binutils suite from port instead of the version in base. | # USE_BINUTILS - Use binutils suite from port instead of the version in base. | ||||
# CFLAGS_${ARCH} Append the cflags to CFLAGS only on the specified architecture | # CFLAGS_${ARCH} Append the cflags to CFLAGS only on the specified architecture | ||||
# CXXFLAGS_${ARCH} | # CXXFLAGS_${ARCH} | ||||
# Append the cxxflags to CXXFLAGS only on the specified architecture | # Append the cxxflags to CXXFLAGS only on the specified architecture | ||||
## | ## | ||||
# LDFLAGS_${ARCH} Append the ldflags to LDFLAGS only on the specified architecture | |||||
# USE_SDL - If set, this port uses the sdl libraries. | # USE_SDL - If set, this port uses the sdl libraries. | ||||
# See bsd.sdl.mk for more information. | # See bsd.sdl.mk for more information. | ||||
## | ## | ||||
# USE_OPENLDAP - If set, this port uses the OpenLDAP libraries. | # USE_OPENLDAP - If set, this port uses the OpenLDAP libraries. | ||||
# Implies: WANT_OPENLDAP_VER?=24 | # Implies: WANT_OPENLDAP_VER?=24 | ||||
# WANT_OPENLDAP_VER | # WANT_OPENLDAP_VER | ||||
# - Legal values are: 23, 24 | # - Legal values are: 23, 24 | ||||
# If set to an unknown value, the port is marked BROKEN. | # If set to an unknown value, the port is marked BROKEN. | ||||
▲ Show 20 Lines • Show All 1,681 Lines • ▼ Show 20 Lines | |||||
.if defined(USE_${lang}STD) | .if defined(USE_${lang}STD) | ||||
${lang}FLAGS:= ${${lang}FLAGS:N-std=*} -std=${USE_${lang}STD} | ${lang}FLAGS:= ${${lang}FLAGS:N-std=*} -std=${USE_${lang}STD} | ||||
.endif | .endif | ||||
.if defined(${lang}FLAGS_${ARCH}) | .if defined(${lang}FLAGS_${ARCH}) | ||||
${lang}FLAGS+= ${${lang}FLAGS_${ARCH}} | ${lang}FLAGS+= ${${lang}FLAGS_${ARCH}} | ||||
.endif | .endif | ||||
.endfor | .endfor | ||||
.if defined(LDFLAGS_${ARCH}) | |||||
mat: technically, the `.if` is useless, and if it was supposed to be meaningful, it should probably… | |||||
emasteAuthorUnsubmitted Done Inline ActionsI was just following the approach for ${lang}FLAGS_${ARCH} above. Shall I take the .if out? emaste: I was just following the approach for ${lang}FLAGS_${ARCH} above. Shall I take the `.if` out? | |||||
emasteAuthorUnsubmitted Done Inline Actions(Please explicit Approved by: portmgr if so) emaste: (Please explicit `Approved by: portmgr` if so) | |||||
matUnsubmitted Not Done Inline ActionsYes, please, and the .if on line 2060, approved by portmgr. mat: Yes, please, and the `.if` on line 2060, approved by portmgr. | |||||
LDFLAGS+= ${LDFLAGS_${ARCH}} | |||||
.endif | |||||
# Multiple make jobs support | # Multiple make jobs support | ||||
.if defined(DISABLE_MAKE_JOBS) || defined(MAKE_JOBS_UNSAFE) | .if defined(DISABLE_MAKE_JOBS) || defined(MAKE_JOBS_UNSAFE) | ||||
_MAKE_JOBS?= # | _MAKE_JOBS?= # | ||||
MAKE_JOBS_NUMBER= 1 | MAKE_JOBS_NUMBER= 1 | ||||
.else | .else | ||||
.if defined(MAKE_JOBS_NUMBER) | .if defined(MAKE_JOBS_NUMBER) | ||||
_MAKE_JOBS_NUMBER:= ${MAKE_JOBS_NUMBER} | _MAKE_JOBS_NUMBER:= ${MAKE_JOBS_NUMBER} | ||||
▲ Show 20 Lines • Show All 992 Lines • Show Last 20 Lines |
technically, the .if is useless, and if it was supposed to be meaningful, it should probably be .if !empty(LDFLAGS_${ARCH})