Import x11/cinnamon-screensaver version 2.2.4
[dports.git] / devel / gprbuild / Makefile
1 # Created by: John Marino <marino@FreeBSD.org>
2 # $FreeBSD$
3
4 PORTNAME=       gprbuild
5 PORTVERSION=    ${SNAPSHOT}
6 CATEGORIES=     devel
7 MASTER_SITES=   http://downloads.dragonlace.net/src/
8 DISTNAME=       gprbuild-gpl-${YEAR}-src
9
10 MAINTAINER=     marino@FreeBSD.org
11 COMMENT=        Adacore multi-language software build tool
12
13 LICENSE=        GPLv3
14
15 BUILD_DEPENDS+= xmlada>=4.4:${PORTSDIR}/textproc/xmlada \
16                 gnat_util>=20140422:${PORTSDIR}/lang/gnat_util
17
18 YEAR=           2014
19 SNAPSHOT=       20140417
20 GNU_CONFIGURE=  yes
21 USES=           ada gmake
22 MAKE_ARGS+=     BUILD=production
23 MAKE_ARGS+=     PROCESSORS=${MAKE_JOBS_NUMBER}
24 PORTDOCS=       html txt pdf info
25 PORTEXAMPLES=   *
26
27 OPTIONS_DEFINE= DOCS EXAMPLES
28
29 .include <bsd.port.options.mk>
30
31 do-build:
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})
36
37 post-patch:
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
44
45 post-install:
46 .if !${PORT_OPTIONS:MDOCS}
47         ${RM} -rf ${STAGEDIR}${DOCSDIR}
48 .endif
49 .if !${PORT_OPTIONS:MEXAMPLES}
50         ${RM} -rf ${STAGEDIR}${EXAMPLESDIR}
51 .endif
52         (cd ${STAGEDIR}${PREFIX} && ${FIND} share/examples -type d -empty | \
53           ${SORT} -dr | ${XARGS} ${RMDIR})
54
55 .include <bsd.port.mk>