blob: a4956a05a6af42c62b2ace588595ee94fce89da7 (
plain) (
blame)
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
|
# Created by: John Marino <marino@FreeBSD.org>
# $FreeBSD$
PORTNAME= opentoken
PORTVERSION= 6.0b
PORTREVISION= 2
CATEGORIES= textproc
MASTER_SITES= http://stephe-leake.org/ada/
MAINTAINER= ports@FreeBSD.org
COMMENT= Lexical analyser and parser for the Ada language
LICENSE= GPLv3 GPLv3RLE
LICENSE_COMB= multi
BUILD_DEPENDS= gprbuild>=20130416:devel/gprbuild
USES= ada tar:bzip2
WRKSRC= ${WRKDIR}/org.${PORTNAME}-${PORTVERSION}
BUILD_WRKSRC= ${WRKSRC}/build/release
OTLIBVER= 5.0.0
PLIST_SUB+= OTLIBVER=${OTLIBVER}
do-build:
(cd ${BUILD_WRKSRC} && ${SETENV} ${MAKE_ENV} \
gprbuild -p -P opentoken_lib )
do-install:
${MKDIR} ${STAGEDIR}${PREFIX}/lib/gnat \
${STAGEDIR}${PREFIX}/lib/opentoken \
${STAGEDIR}${PREFIX}/include/opentoken
${INSTALL_DATA} ${BUILD_WRKSRC}/lib/*.ali \
${STAGEDIR}${PREFIX}/lib/opentoken
${INSTALL_LIB} ${BUILD_WRKSRC}/lib/libopentoken.so.${OTLIBVER} \
${STAGEDIR}${PREFIX}/lib/opentoken
(cd ${STAGEDIR}${PREFIX}/lib/opentoken && \
${LN} -s libopentoken.so.${OTLIBVER} libopentoken.so)
${INSTALL_DATA} ${WRKSRC}/*.ad[bs] ${WRKSRC}/Language_Lexers/*.ad[bs] \
${STAGEDIR}${PREFIX}/include/opentoken
${INSTALL_DATA} ${FILESDIR}/opentoken.gpr \
${STAGEDIR}${PREFIX}/lib/gnat
.include <bsd.port.mk>
|