diff options
Diffstat (limited to 'Mk/Uses')
-rw-r--r-- | Mk/Uses/ada.mk | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/Mk/Uses/ada.mk b/Mk/Uses/ada.mk new file mode 100644 index 000000000000..6f133eb79378 --- /dev/null +++ b/Mk/Uses/ada.mk @@ -0,0 +1,27 @@ +# $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 |