summaryrefslogtreecommitdiff
path: root/textproc/xmlada/Makefile
blob: 43012a6cb0471887e50245310342d4f9d9ad42c9 (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
41
42
43
44
45
PORTNAME=	xmlada
DISTVERSIONPREFIX=v
DISTVERSION=	23.0.0
PORTREVISION=	1
CATEGORIES=	textproc

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Adacore XML suite for the Ada language
WWW=		https://github.com/AdaCore/xmlada

LICENSE=	GPLv3RLE

BUILD_DEPENDS=	gprbuild>=23:devel/gprbuild

USES=		ada:12,run gmake
USE_BINUTILS=	yes
GNU_CONFIGURE=	yes

USE_GITHUB=	yes
GH_ACCOUNT=	AdaCore
GH_PROJECT=	xmlada

MAKE_ARGS+=	PROCESSORS=${MAKE_JOBS_NUMBER} \
		LIBVER=${PORTVERSION}
TEST_TARGET=	test
TEST_ENV+=	GPR_PROJECT_PATH=${PREFIX}/share/gpr	\
		PATH=${LOCALBASE}/gnat12/bin:${PATH}

OPTIONS_DEFINE=	DOCS EXAMPLES
PORTDOCS=	*
PORTEXAMPLES=	*

DOCS_BUILD_DEPENDS=	sphinx-build:textproc/py-sphinx

do-build-DOCS-on:
	(cd ${WRKSRC}/docs && ${DO_MAKE_BUILD} html )

post-install:
	(cd ${STAGEDIR}${PREFIX}/lib/ && \
		${STRIP_CMD} libxmlada* )

post-install-DOCS-on:
	${RM} ${STAGEDIR}${DOCSDIR}/.buildinfo

.include <bsd.port.mk>