blob: 725be932da2473830ee69768fe02747e24d80c4f (
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
57
58
59
60
61
62
63
64
65
66
|
# Created by: Geoffrey Mainland <mainland@apeiron.net>
# $FreeBSD$
PORTNAME= antlr
PORTVERSION= 2.7.7
CATEGORIES= devel java
MASTER_SITES= http://www.antlr2.org/download/
MAINTAINER= makc@FreeBSD.org
COMMENT= ANother Tool for Language Recognition
CONFLICTS= pccts-[0-9]*
USES= gmake
USE_JAVA= yes
HAS_CONFIGURE= yes
CONFIGURE_ENV= JAVAC="${JAVAC}" JAR="${JAR}" JAVA="${JAVA}" CLASSPATH="${PORT_CLASSPATH}"
CONFIGURE_ARGS= --disable-csharp --prefix=${PREFIX}
PORT_CLASSPATH= ${WRKSRC}/antlrall.jar:.
SUB_FILES= antlr.sh
PORTDOCS= ANTLRException.gif closure.gif cpp-runtime.html \
csharp-runtime.html err.html glossary.html hidden.stream.gif \
index.html inheritance.html j-guru-blue.jpg jguru-logo.gif \
lexer.html lexer.to.parser.tokens.gif logo.gif metalang.html \
optional.gif options.html posclosure.gif runtime.html sor.html \
stream.perspectives.gif stream.selector.gif \
stream.splitter.gif streams.html subrule.gif trees.html \
vocab.html
OPTIONS_DEFINE= PYTHON DOCS
OPTIONS_SUB= yes
PYTHON_USES= python
PYTHON_PORTDOCS= python-runtime.html
post-extract:
(cd ${WRKSRC} && ${CP} antlr.jar antlrall.jar)
post-configure-PYTHON-on:
(cd ${WRKSRC}/lib/python && ${PYTHON_CMD} setup.py config)
post-build-PYTHON-on:
(cd ${WRKSRC}/lib/python && ${PYTHON_CMD} setup.py build && \
${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py ${WRKSRC}/lib/python)
do-install:
@${MKDIR} ${STAGEDIR}${JAVAJARDIR}
${INSTALL_DATA} ${WRKSRC}/antlr.jar ${STAGEDIR}${JAVAJARDIR}
${INSTALL_SCRIPT} ${WRKDIR}/antlr.sh ${STAGEDIR}${PREFIX}/bin/antlr
@${MKDIR} ${STAGEDIR}${PREFIX}/include/${PORTNAME}
${INSTALL_DATA} ${WRKSRC}/lib/cpp/antlr/*.hpp \
${STAGEDIR}${PREFIX}/include/${PORTNAME}
${INSTALL_DATA} ${WRKSRC}/lib/cpp/src/libantlr.a ${STAGEDIR}${PREFIX}/lib
do-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
(cd ${WRKSRC}/doc && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR})
do-install-PYTHON-on:
@(cd ${WRKSRC}/lib/python && ${PYTHON_CMD} setup.py install --root=${STAGEDIR})
.include <bsd.port.mk>
|