summaryrefslogtreecommitdiffstats
path: root/devel/gprbuild/Makefile
blob: fbe0c07cd765b94b070558c0c92415a333af8a91 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# Created by: John Marino <marino@FreeBSD.org>
# $FreeBSD$

PORTNAME=	gprbuild
PORTVERSION=	${SNAPSHOT}
CATEGORIES=	devel

MAINTAINER=	marino@FreeBSD.org
COMMENT=	Adacore multi-language software build tool

LICENSE=	GPLv3

BUILD_DEPENDS=	xmlada>=4.4:textproc/xmlada

SNAPSHOT=	20160609
USES=		ada
USE_GITHUB=	yes
GH_ACCOUNT=	AdaCore
GH_PROJECT=	gprbuild
GH_TAGNAME=	376670f

PORTDOCS=	*
MAKE_ARGS=	PROCESSORS=${MAKE_JOBS_NUMBER}
BUILD_WRKSRC=	${WRKSRC}/construction
INSTALL_WRKSRC=	${BUILD_WRKSRC}
INSTALL_TARGET=	install

#OPTIONS_DEFINE=	DOCS
#DOCS_BUILD_DEPENDS=	sphinx-build:textproc/py-sphinx
#DOCS_ALL_TARGET=	gen-docs
#DOCS_INSTALL_TARGET=	install-docs

post-patch:
	${MKDIR} ${WRKDIR}/trash ${BUILD_WRKSRC}
	${CP} ${FILESDIR}/Makefile.BSD ${WRKSRC}/construction/Makefile
	@${REINPLACE_CMD} -i "" -e "s,@AUXPREFIX@,${PREFIX}/${ADAXX}-aux," \
		${WRKSRC}/share/gprconfig/compilers.xml
	${MV} ${WRKSRC}/share/gprconfig/*.orig ${WRKDIR}/trash

.include <bsd.port.mk>
OpenPOWER on IntegriCloud