blob: 2c7ab8eabb77f21b1e5a8a42edc1d19430d72865 (
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
|
DESCRIPTION = "Framework for constructing recognizers, interpreters, compilers, and translators"
HOMEPAGE = "http://www.antlr2.org"
# see http://www.antlr2.org/license.html
LICENSE = "PD"
LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=361934e706423915b4d9f413ad37fb65"
SRC_URI = "http://www.antlr2.org/download/${BP}.tar.gz"
SRC_URI_virtclass_native += "file://runantlr"
inherit java-library
do_configure_virtclass_native() {
sed -i -e"s|@JAR_FILE@|${STAGING_DATADIR_JAVA_NATIVE}/antlr.jar|" ${WORKDIR}/runantlr
}
do_compile() {
mkdir -p build
javac -sourcepath . -d build `find antlr -name "*.java"`
fastjar cf ${JARFILENAME} -C build .
}
do_install_virtclass_native() {
install ${D}${bindir}
install -m 0755 ${WORKDIR}/runantlr {D}${bindir}/
}
SRC_URI[md5sum] = "01cc9a2a454dd33dcd8c856ec89af090"
SRC_URI[sha256sum] = "853aeb021aef7586bda29e74a6b03006bcb565a755c86b66032d8ec31b67dbb9"
BBCLASSEXTEND = "native"
|