diff options
Diffstat (limited to 'Mk/Uses')
-rw-r--r-- | Mk/Uses/ada.mk | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/Mk/Uses/ada.mk b/Mk/Uses/ada.mk index a3fdb26dd38b..64eb89f64e38 100644 --- a/Mk/Uses/ada.mk +++ b/Mk/Uses/ada.mk @@ -6,7 +6,7 @@ # # Feature: ada # Usage: USES=ada -# Valid ARGS: 49, 5 +# Valid ARGS: 49, 5, run # # MAINTAINER: marino@FreeBSD.org @@ -20,13 +20,17 @@ ADAXX= gcc . elif ${ada_ARGS:M5} ADAXX= gcc5 . else -. if defined(ADA_DEFAULT) && ${ADA_DEFAULT} == 5 -ADAXX= gcc5 -. else +. if defined(ADA_DEFAULT) && ${ADA_DEFAULT} == 49 ADAXX= gcc +. else +ADAXX= gcc5 . endif . endif +. if ${ada_ARGS:Mrun} +RUN_DEPENDS+= ${LOCALBASE}/${ADAXX}-aux/bin/ada:${PORTSDIR}/lang/${ADAXX}-aux +. endif + BUILD_DEPENDS+= ${LOCALBASE}/${ADAXX}-aux/bin/ada:${PORTSDIR}/lang/${ADAXX}-aux MAKE_ENV+= PATH=${LOCALBASE}/${ADAXX}-aux/bin:${PATH} \ ADA_PROJECT_PATH=${LOCALBASE}/lib/gnat |