1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-11 02:50:24 +00:00
freebsd-ports/Mk/Uses/ada.mk
John Marino 07c47a31ca Restrict dns/ironsides to gcc5-aux only
Right now, ironsides emits a STORAGE ERROR during building with
lang/gcc6-aux.  It's unclear if the problem lies with compiler or with
ironsides.  For now, limit building it with gcc5-aux (the default).

The USES=ada:5 setting wasn't supported, but it should have been.  This
has also been fixed.
2016-04-11 13:54:22 +00:00

44 lines
1.0 KiB
Makefile

# $FreeBSD$
#
# Establish Ada-capable compiler as a build dependency
# To change default compiler, define ADA_DEFAULT in make.conf to 5
# Note that gcc47-aux is being removed soon, so 47 is not a legal default
#
# Feature: ada
# Usage: USES=ada
# Valid ARGS: 49, 5, 6, run
#
# MAINTAINER: marino@FreeBSD.org
.if !defined(_INCLUDE_USES_ADA_MK)
_INCLUDE_USES_ADA_MK= yes
CC= ada
ADAXX= gcc5 # framework default
. if ${ada_ARGS:M49}
ADAXX= gcc
. elif ${ada_ARGS:M5}
ADAXX= gcc5
. elif ${ada_ARGS:M6}
ADAXX= gcc6
. elif defined(ADA_DEFAULT)
. if ${ADA_DEFAULT} == 49
ADAXX= gcc
. elif ${ADA_DEFAULT} == 6
ADAXX= gcc6
. 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