aboutsummaryrefslogtreecommitdiff
path: root/lang/gnat_util
diff options
context:
space:
mode:
authorJohn Marino <marino@FreeBSD.org>2015-04-20 20:00:00 +0000
committerJohn Marino <marino@FreeBSD.org>2015-04-20 20:00:00 +0000
commit24f22869a95f415e90ef7bd2f420c42eef9bdb00 (patch)
treeaead13c36653b2947ab40c58640bf198a04d15d4 /lang/gnat_util
parent866603372128466d84c593b126dd7a3f07f38475 (diff)
downloadports-24f22869a95f415e90ef7bd2f420c42eef9bdb00.tar.gz
ports-24f22869a95f415e90ef7bd2f420c42eef9bdb00.zip
Notes
Diffstat (limited to 'lang/gnat_util')
-rw-r--r--lang/gnat_util/Makefile13
1 files changed, 10 insertions, 3 deletions
diff --git a/lang/gnat_util/Makefile b/lang/gnat_util/Makefile
index 430cf09396bc..892657cdbb47 100644
--- a/lang/gnat_util/Makefile
+++ b/lang/gnat_util/Makefile
@@ -23,8 +23,11 @@ MAKE_ENV= MAKEOBJDIR=${WRKSRC}/obj
.include "${.CURDIR}/Makefile.sources"
-.include <bsd.port.pre.mk>
-.include "${.CURDIR}/../${ADAXX}-aux/Makefile.version"
+.if defined(ADA_DEFAULT) && ${ADA_DEFAULT} == 5
+.include "${.CURDIR}/../gcc5-aux/Makefile.version"
+.else
+.include "${.CURDIR}/../gcc-aux/Makefile.version"
+.endif
post-extract:
@${MKDIR} ${WRKSRC}/obj
@@ -40,7 +43,11 @@ post-install:
# impunit is needed for GPS menus, just provide the source files
${INSTALL_DATA} ${WRKDIR}/${DISTNAME}/gcc/ada/impunit.* \
${STAGEDIR}${PREFIX}/include/gnat_util
+ # gnat_ugn.texi is used to generate gnat_switches.py for GPS
+ @${MKDIR} ${STAGEDIR}${DATADIR}
+ ${INSTALL_DATA} ${WRKDIR}/${DISTNAME}/gcc/ada/gnat_ugn.texi \
+ ${STAGEDIR}${DATADIR}
@(cd ${STAGEDIR}${PREFIX}; ${FIND} * \( -type f -or -type l \) | \
${SORT} >> ${TMPPLIST})
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>