Changeset View
Changeset View
Standalone View
Standalone View
Mk/bsd.port.mk
Show First 20 Lines • Show All 323 Lines • ▼ Show 20 Lines | |||||
# convention these should be set to 'yes', although they only need to be | # convention these should be set to 'yes', although they only need to be | ||||
# defined. Defaults: not set, unless explicitly indicated below. | # defined. Defaults: not set, unless explicitly indicated below. | ||||
# | # | ||||
# Note: the distinction between the USE_* and WANT_* variables, and the | # Note: the distinction between the USE_* and WANT_* variables, and the | ||||
# WITH_* and WITHOUT_* variables, are that the former are restricted to | # WITH_* and WITHOUT_* variables, are that the former are restricted to | ||||
# usage inside the ports framework, and the latter are reserved for user- | # usage inside the ports framework, and the latter are reserved for user- | ||||
# settable options. (Setting USE_* in /etc/make.conf is always wrong). | # settable options. (Setting USE_* in /etc/make.conf is always wrong). | ||||
# | # | ||||
# WITH_DEBUG - If set, debugging flags are added to CFLAGS and the | |||||
# binaries don't get stripped by INSTALL_PROGRAM or | |||||
# INSTALL_LIB. Besides, individual ports might | |||||
# add their specific to produce binaries for debugging | |||||
# purposes. You can override the debug flags that are | |||||
# passed to the compiler by setting DEBUG_FLAGS. It is | |||||
# set to "-g" at default. | |||||
# | # | ||||
# NOTE: to override a globally defined WITH_DEBUG at a | # DEBUG_PORTS - A list of origins for which the DEBUG option will be set | ||||
# later time ".undef WITH_DEBUG" can be used | |||||
# | |||||
# WITH_DEBUG_PORTS - A list of origins for which WITH_DEBUG will be set | |||||
# | |||||
# WITHOUT_SSP - Disable SSP. | # WITHOUT_SSP - Disable SSP. | ||||
# | # | ||||
# SSP_CFLAGS - Defaults to -fstack-protector. This value | # SSP_CFLAGS - Defaults to -fstack-protector. This value | ||||
# is added to CFLAGS and the necessary flags | # is added to CFLAGS and the necessary flags | ||||
# are added to LDFLAGS. Note that SSP_UNSAFE | # are added to LDFLAGS. Note that SSP_UNSAFE | ||||
# can be used in Makefiles by port maintainers | # can be used in Makefiles by port maintainers | ||||
# if a port breaks with it (it should be | # if a port breaks with it (it should be | ||||
# extremely rare). | # extremely rare). | ||||
▲ Show 20 Lines • Show All 936 Lines • ▼ Show 20 Lines | |||||
LDCONFIG32_DIR= libdata/ldconfig32 | LDCONFIG32_DIR= libdata/ldconfig32 | ||||
# At least KDE needs TMPDIR for the package building, | # At least KDE needs TMPDIR for the package building, | ||||
# so we're setting it to the known default value. | # so we're setting it to the known default value. | ||||
.if defined(PACKAGE_BUILDING) | .if defined(PACKAGE_BUILDING) | ||||
TMPDIR?= /tmp | TMPDIR?= /tmp | ||||
.endif # defined(PACKAGE_BUILDING) | .endif # defined(PACKAGE_BUILDING) | ||||
.if defined(WITH_DEBUG_PORTS) | |||||
.if ${WITH_DEBUG_PORTS:M${PKGORIGIN}} | |||||
WITH_DEBUG= yes | |||||
.endif | |||||
.endif | |||||
.include "${PORTSDIR}/Mk/bsd.default-versions.mk" | .include "${PORTSDIR}/Mk/bsd.default-versions.mk" | ||||
.include "${PORTSDIR}/Mk/bsd.options.mk" | .include "${PORTSDIR}/Mk/bsd.options.mk" | ||||
.endif | .endif | ||||
# End of options section. | # End of options section. | ||||
# Start of pre-makefile section. | # Start of pre-makefile section. | ||||
.if !defined(AFTERPORTMK) && !defined(INOPTIONSMK) | .if !defined(AFTERPORTMK) && !defined(INOPTIONSMK) | ||||
▲ Show 20 Lines • Show All 439 Lines • ▼ Show 20 Lines | |||||
.if defined(_CPUCFLAGS) | .if defined(_CPUCFLAGS) | ||||
.if !empty(_CPUCFLAGS) | .if !empty(_CPUCFLAGS) | ||||
CFLAGS:= ${CFLAGS:C/${_CPUCFLAGS}//} | CFLAGS:= ${CFLAGS:C/${_CPUCFLAGS}//} | ||||
.endif | .endif | ||||
.endif | .endif | ||||
.endif | .endif | ||||
# Reset value from bsd.own.mk. | # Reset value from bsd.own.mk. | ||||
.if defined(WITH_DEBUG) | .if defined(_WITH_DEBUG) | ||||
.if !defined(INSTALL_STRIPPED) | .if !defined(INSTALL_STRIPPED) | ||||
STRIP= #none | STRIP= #none | ||||
MAKE_ENV+= DONTSTRIP=yes | MAKE_ENV+= DONTSTRIP=yes | ||||
STRIP_CMD= ${TRUE} | STRIP_CMD= ${TRUE} | ||||
.endif | .endif | ||||
DEBUG_FLAGS?= -g | DEBUG_FLAGS?= -g | ||||
CFLAGS:= ${CFLAGS:N-O*:N-fno-strict*} ${DEBUG_FLAGS} | CFLAGS:= ${CFLAGS:N-O*:N-fno-strict*} ${DEBUG_FLAGS} | ||||
.if defined(INSTALL_TARGET) | .if defined(INSTALL_TARGET) | ||||
▲ Show 20 Lines • Show All 3,647 Lines • Show Last 20 Lines |