mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-15 07:56:36 +00:00
aa25396790
Run Tools/scripts/indent_make_if.pl on all of Mk. These white space changes contribute greatly to the readability of those files. As we have a version control system, finding out the reasons for the changes prior to these white space changes is still easily possible Differential Revision: https://reviews.freebsd.org/D35024 Reviewed by: portmgr (rene, bapt)
29 lines
688 B
Makefile
29 lines
688 B
Makefile
# Add __FreeBSD__ definition to CFLAGS
|
|
# Used by DPorts when masquerading as FreeBSD allows port to build without
|
|
# additional patches
|
|
#
|
|
# Feature: alias
|
|
# Usage: USES=alias or USES=alias:ARGS
|
|
# Valid ARGS: 9 (default), 10, 11
|
|
#
|
|
# MAINTAINER: ports@FreeBSD.org
|
|
|
|
.if !defined(_INCLUDE_USES_ALIAS_MK)
|
|
_INCLUDE_USES_ALIAS_MK= yes
|
|
|
|
. if ${OPSYS} != FreeBSD
|
|
|
|
. if empty(alias_ARGS)
|
|
CFLAGS+= -D__FreeBSD__=9
|
|
. else
|
|
. if ${alias_ARGS} == 9 || ${alias_ARGS} == 10 || ${alias_ARGS} == 11
|
|
CFLAGS+= -D__FreeBSD__=${alias_ARGS}
|
|
. else
|
|
IGNORE= invalid MAJOR RELEASE argument (${alias_ARGS}) for USES=alias
|
|
. endif
|
|
. endif
|
|
|
|
. endif # OPSYS != FreeBSD
|
|
|
|
.endif
|