freebsd-ports/Mk/Uses/ada.mk
John Marino af58a9f955 Uses/ada.mk: Add support for soon-to-be-older Ada compiler
Currently the Ada framework uses a single compiler based on gcc47.
Soon this compiler will be updated to the gcc49 base, but not all Ada
ports are currently happy about this.

This update to ada.mk induces the ARGS of "47" which causes the port to
use the newly-created lang/gcc47-aux port which is currently a clone
of lang/gcc-aux.  When the latter is updated, the Ada Framework will
use it except for those ports that feature "USES+= ada:47"
2014-03-09 21:25:46 +00:00

29 lines
772 B
Makefile

# $FreeBSD$
#
# Establish Ada-capable compiler as a build dependency
#
# MAINTAINER: marino@FreeBSD.org
#
# Feature: ada
# Usage: USES=ada
# Valid ARGS: 47
.if !defined(_INCLUDE_USES_ADA_MK)
_INCLUDE_USES_ADA_MK= yes
CC= ada
. if defined(ada_ARGS) && ${ada_ARGS} == 47
BUILD_DEPENDS+= ${LOCALBASE}/gcc47-aux/bin/ada:${PORTSDIR}/lang/gcc47-aux
MAKE_ENV+= PATH=${LOCALBASE}/gcc47-aux/bin:${PATH}
CONFIGURE_ENV+= PATH=${LOCALBASE}/gcc47-aux/bin:${PATH}
. else
BUILD_DEPENDS+= ${LOCALBASE}/gcc-aux/bin/ada:${PORTSDIR}/lang/gcc-aux
MAKE_ENV+= PATH=${LOCALBASE}/gcc-aux/bin:${PATH}
CONFIGURE_ENV+= PATH=${LOCALBASE}/gcc-aux/bin:${PATH}
. endif
MAKE_ENV+= ADA_PROJECT_PATH=${LOCALBASE}/lib/gnat
CONFIGURE_ENV+= ADA_PROJECT_PATH=${LOCALBASE}/lib/gnat
.endif