1 # Created by: John Marino <marino@FreeBSD.org>
5 PORTVERSION= ${SNAPSHOT}
7 MASTER_SITES= http://downloads.dragonlace.net/src/
8 DISTNAME= gprbuild-gpl-${YEAR}-src
10 MAINTAINER= marino@FreeBSD.org
11 COMMENT= Adacore multi-language software build tool
15 BUILD_DEPENDS+= xmlada>=4.4:${PORTSDIR}/textproc/xmlada \
16 gnat_util>=20140422:${PORTSDIR}/lang/gnat_util
22 MAKE_ARGS+= BUILD=production
23 MAKE_ARGS+= PROCESSORS=${MAKE_JOBS_NUMBER}
24 PORTDOCS= html txt pdf info
27 OPTIONS_DEFINE= DOCS EXAMPLES
29 .include <bsd.port.options.mk>
32 # Recreate the do-build target without -j parameter
33 # It interferes with PROCESSORS make argument
34 (cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} \
35 ${MAKE_CMD} ${MAKE_ARGS} ${ALL_TARGET})
38 @${REINPLACE_CMD} -e "s,@AUXPREFIX@,${PREFIX}/gcc-aux," \
39 ${WRKSRC}/share/gprconfig/compilers.xml
40 # Try_Help is part of GNAT Pro, but it's not in GCC 4.9 yet
41 # It's not strictly needed. Before it just repeated usage.
42 # There are other messages; just suppress Try_Help on 4 files
43 ${REINPLACE_CMD} -e '/Try_Help;/d' ${WRKSRC}/src/*-main.adb
46 .if !${PORT_OPTIONS:MDOCS}
47 ${RM} -rf ${STAGEDIR}${DOCSDIR}
49 .if !${PORT_OPTIONS:MEXAMPLES}
50 ${RM} -rf ${STAGEDIR}${EXAMPLESDIR}
52 (cd ${STAGEDIR}${PREFIX} && ${FIND} share/examples -type d -empty | \
53 ${SORT} -dr | ${XARGS} ${RMDIR})
55 .include <bsd.port.mk>