summaryrefslogtreecommitdiff
path: root/packages/midpath/midpath-common.inc
diff options
context:
space:
mode:
Diffstat (limited to 'packages/midpath/midpath-common.inc')
-rw-r--r--packages/midpath/midpath-common.inc33
1 files changed, 33 insertions, 0 deletions
diff --git a/packages/midpath/midpath-common.inc b/packages/midpath/midpath-common.inc
new file mode 100644
index 0000000000..1690b4fc44
--- /dev/null
+++ b/packages/midpath/midpath-common.inc
@@ -0,0 +1,33 @@
+inherit java
+
+HOMEPAGE = "http://midpath.thenesis.org/"
+LICENSE = "GPL"
+PRIORITY = "optional"
+SECTION = "interpreters"
+
+DEPENDS = "virtual/javac-native classpath-native classpath fastjar-native"
+
+GLIBJ_ZIP = "${STAGING_DATADIR}/classpath/glibj.zip"
+
+CLDC_JAR = "${STAGING_DATADIR}/midpath-cldc/midpath-cldc1.1.jar"
+
+do_unpackpost() {
+ # Remove unneccessary binary bits.
+ find lib -name "*.jar" -exec rm \{\} \;
+}
+
+addtask unpackpost after do_unpack before do_patch
+
+midpath_build() {
+ sh build.sh \
+ --enable-fastjar \
+ --with-j2se-jar ${GLIBJ_ZIP} \
+ --with-jar=fastjar \
+ --with-javac=javac \
+ --with-cldc-jar=${CLDC_JAR} \
+ --with-midpath-jar=${STAGING_DATADIR}/midpath/midpath.jar \
+ --with-kxml="${STAGING_DATADIR_JAVA}/kxml2.jar:${STAGING_DATADIR_JAVA}/xmlpull.jar" \
+ --with-jni-include="-I${STAGING_INCDIR}/classpath" \
+ "$@"
+
+}