freebsd-ports/Mk/Uses/ada.mk
John Marino cc7211ab41 Mk/Uses/ada.mk: Remove ADA_DEFAULT=49 option
The lang/gcc-aux port has recently been removed, so the previously legal
"49" argument is no longer so.  Adjust ada.mk accordingly by removing
reference to option 49 and lang/gcc-aux.
2016-05-27 09:54:47 +00:00

39 lines
873 B
Makefile

# $FreeBSD$
#
# Establish Ada-capable compiler as a build dependency
# To change default compiler, define ADA_DEFAULT in make.conf to 5
#
# Feature: ada
# Usage: USES=ada
# Valid ARGS: 5, 6, run
#
# MAINTAINER: marino@FreeBSD.org
.if !defined(_INCLUDE_USES_ADA_MK)
_INCLUDE_USES_ADA_MK= yes
CC= ada
ADAXX= gcc6 # framework default
. if ${ada_ARGS:M5}
ADAXX= gcc5
. elif ${ada_ARGS:M6}
ADAXX= gcc6
. elif defined(ADA_DEFAULT)
. if ${ADA_DEFAULT} == 5
ADAXX= gcc5
. endif
. endif
. if ${ada_ARGS:Mrun}
RUN_DEPENDS+= ${LOCALBASE}/${ADAXX}-aux/bin/ada:lang/${ADAXX}-aux
. endif
BUILD_DEPENDS+= ${LOCALBASE}/${ADAXX}-aux/bin/ada:lang/${ADAXX}-aux
MAKE_ENV+= PATH=${LOCALBASE}/${ADAXX}-aux/bin:${PATH} \
ADA_PROJECT_PATH=${LOCALBASE}/lib/gnat
CONFIGURE_ENV+= PATH=${LOCALBASE}/${ADAXX}-aux/bin:${PATH} \
ADA_PROJECT_PATH=${LOCALBASE}/lib/gnat
.endif