netboot-launcher-efl: Bump version to 0.2.2 and fix download link.
[openembedded.git] / recipes / midpath / midpath-common.inc
1 inherit java
2
3 HOMEPAGE = "http://midpath.thenesis.org/"
4 LICENSE  = "GPL"
5 PRIORITY = "optional"
6 SECTION  = "interpreters"
7
8 DEPENDS = "virtual/javac-native classpath-tools-native classpath fastjar-native"
9
10 GLIBJ_ZIP = "${STAGING_DATADIR}/classpath/glibj.zip"
11
12 CLDC_JAR = "${STAGING_DATADIR}/midpath-cldc/midpath-cldc1.1.jar"
13
14 do_unpackpost() {
15         # Remove unneccessary binary bits.
16   find lib -name "*.jar" -exec rm \{\} \;
17 }
18
19 addtask unpackpost after do_unpack before do_patch
20
21 midpath_build() {
22   sh build.sh \
23     --enable-fastjar \
24     --with-j2se-jar ${GLIBJ_ZIP} \
25     --with-jar=fastjar \
26     --with-javac=javac \
27     --with-cldc-jar=${CLDC_JAR} \
28     --with-midpath-jar=${STAGING_DATADIR}/midpath/midpath.jar \
29     --with-kxml="${STAGING_DATADIR_JAVA}/kxml2.jar:${STAGING_DATADIR_JAVA}/xmlpull.jar" \
30     --with-jni-include="-I${STAGING_INCDIR}/classpath" \
31     "$@"
32
33 }