2014-10-20 07:33:00 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
#
|
2016-08-23 12:33:13 +00:00
|
|
|
# Add __FreeBSD__ definition to CFLAGS
|
2014-10-20 07:33:00 +00:00
|
|
|
# Used by DPorts when masquerading as FreeBSD allows port to build without
|
|
|
|
# additional patches
|
|
|
|
#
|
|
|
|
# Feature: alias
|
|
|
|
# Usage: USES=alias or USES=alias:ARGS
|
2016-08-23 12:33:13 +00:00
|
|
|
# Valid ARGS: 9 (default), 10, 11
|
2014-10-20 07:33:00 +00:00
|
|
|
#
|
|
|
|
# MAINTAINER: marino@FreeBSD.org
|
|
|
|
|
|
|
|
.if !defined(_INCLUDE_USES_ALIAS_MK)
|
|
|
|
_INCLUDE_USES_ALIAS_MK= yes
|
|
|
|
|
2015-07-03 16:54:08 +00:00
|
|
|
.if ${OPSYS} != FreeBSD
|
2014-10-20 07:33:00 +00:00
|
|
|
|
|
|
|
.if empty(alias_ARGS)
|
|
|
|
CFLAGS+= -D__FreeBSD__=9
|
|
|
|
.else
|
2016-08-23 12:33:13 +00:00
|
|
|
. if ${alias_ARGS} == 9 || ${alias_ARGS} == 10 || ${alias_ARGS} == 11
|
2014-10-20 07:33:00 +00:00
|
|
|
CFLAGS+= -D__FreeBSD__=${alias_ARGS}
|
|
|
|
. else
|
|
|
|
IGNORE= invalid MAJOR RELEASE argument (${alias_ARGS}) for USES=alias
|
|
|
|
. endif
|
|
|
|
.endif
|
|
|
|
|
2015-07-03 16:54:08 +00:00
|
|
|
.endif # OPSYS != FreeBSD
|
2014-10-20 07:33:00 +00:00
|
|
|
|
|
|
|
.endif
|