blob: 3d06e80797941fdb01e30102b06eb4b12816f395 (
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
|
require midpath.inc
SRC_URI += "file://shellscript.patch;patch=1"
DEPENDS += " midpath"
RDEPENDS += " midpath"
CLDC_PATH = ${STAGING_DATADIR}/java/cldc1.1.jar
do_configure() {
cd ${S}/bin
sed -i -e "s|MIDPATH_HOME=|MIDPATH_HOME=${datadir}/java|" \
midpath-test-cacao-cldc.sh
}
do_compile() {
cd ${S}/tests
make JAVAC=${JAVAC_CMD} JAVAC_FLAGS="-bootclasspath ${STAGING_DATADIR}/java/midpath.jar:${CLDC_PATH} -sourcepath ${S}/tests -source 1.3 -target 1.1" || exit 1
make jar JAVAC=${JAVAC_CMD} JAVAC_FLAGS="-bootclasspath ${STAGING_DATADIR}/java/midpath.jar:${CLDC_PATH} -source 1.3 -target 1.1" JAR_FILE="midpath-tests.jar" JAR_FLAGS="cvf" || exit 1
}
do_install() {
install -d ${D}${bindir}
# install -m 0755 bin/graphical_launcher-j2se.sh ${D}${bindir}
# install -m 0755 bin/midpath-test.sh ${D}${bindir}
install -m 0755 bin/midpath-test-cacao-cldc.sh ${D}${bindir}
install -d ${D}${datadir}/java
install -m 0644 ${S}/tests/midpath-tests.jar ${D}${datadir}/java
}
do_stage() {
:
}
FILES_${PN} = "${datadir}/java/midpath-tests.jar \
# ${bindir}/graphical_launcher-j2se.sh \
# ${bindir}/midpath-test.sh \
${bindir}/midpath-test-cacao-cldc.sh \
"
|