blob: 09c2b683fa0f5594ca87e816cd51d040e19797fd (
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
46
47
48
49
50
51
52
53
54
55
56
|
# Created by: John Marino <marino@FreeBSD.org>
# $FreeBSD$
PORTNAME= xml_ez_out
PORTVERSION= 1.06
PORTREVISION= 1
CATEGORIES= textproc
MASTER_SITES= http://www.mckae.com/xml_ezout/
DISTNAME= ${PORTNAME}_${PORTVERSION}
MAINTAINER= freebsd.contact@marino.st
COMMENT= Library for emitting XML from Ada programs
LICENSE= GPLv2 GMGPL
LICENSE_COMB= multi
USES= ada dos2unix tar:tgz
WRKSRC= ${WRKDIR}/xml_ez_out
BUILD_WRKSRC= ${WRKSRC}/mckae
PORTDOCS= README
PORTEXAMPLES= example.gpr tmeztf.adb runme.sh
OPTIONS_DEFINE= DOCS EXAMPLES
.include <bsd.port.options.mk>
post-extract:
${CP} ${FILESDIR}/xezo_bld.gpr ${WRKSRC}
${SED} -e "s,@PREFIX@,${LOCALBASE},g" ${FILESDIR}/runme.sh.in \
> ${WRKSRC}/runme.sh
do-build:
(cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} gnatmake -p -Pxezo_bld)
do-install:
${MKDIR} ${STAGEDIR}${PREFIX}/lib/gnat \
${STAGEDIR}${PREFIX}/lib/xml_ez_out \
${STAGEDIR}${PREFIX}/include/xml_ez_out
${INSTALL_DATA} ${FILESDIR}/xml_ez_out.gpr \
${STAGEDIR}${PREFIX}/lib/gnat
${INSTALL_DATA} ${BUILD_WRKSRC}/mckae* \
${STAGEDIR}${PREFIX}/include/xml_ez_out
${INSTALL_DATA} ${WRKSRC}/lib/* \
${STAGEDIR}${PREFIX}/lib/xml_ez_out
.if ${PORT_OPTIONS:MDOCS}
${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${BUILD_WRKSRC}/README ${STAGEDIR}${DOCSDIR}
.endif
.if ${PORT_OPTIONS:MEXAMPLES}
${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
${INSTALL_SCRIPT} ${WRKSRC}/runme.sh ${STAGEDIR}${EXAMPLESDIR}
${INSTALL_DATA} ${BUILD_WRKSRC}/tmeztf.adb \
${FILESDIR}/example.gpr ${STAGEDIR}${EXAMPLESDIR}
.endif
.include <bsd.port.mk>
|