1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-24 04:33:24 +00:00
freebsd-ports/Mk/Uses/alias.mk
John Marino afe48a5ce9 Mk/Uses/alias.mk: Fix typo, remove "8" option
The "8" refers to FreeBSD 8.x which is no longer supported by the
ports tree.  It's never been used (to my knowledge) so just remove the
option altogether.
2016-08-23 12:33:13 +00:00

31 lines
675 B
Makefile

# $FreeBSD$
#
# 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: marino@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