1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-02-05 11:35:01 +00:00
Baptiste Daroussin 0fb68fa55f Add a new USES ada.mk to establish Ada-capable compiler as a build dependency
and set the build environement properly

Submitted by:	John Marino <draco@marino.st>
2013-04-30 11:41:44 +00:00

28 lines
618 B
Makefile

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