diff options
author | Michael Lauer <mickey@vanille-media.de> | 2008-06-27 16:05:50 +0000 |
---|---|---|
committer | Michael Lauer <mickey@vanille-media.de> | 2008-06-27 16:05:50 +0000 |
commit | 882473c9913cf09da1f8e89738cb859e1e8bd882 (patch) | |
tree | 818e039de162dcbc73f7826c28687132055dc561 /packages/midpath/midpath-common.inc | |
parent | 31c3d2f534c933df59abd3f594d177b781e549ba (diff) | |
parent | f3b6b70f150b257afef3d025c1ed86b9270966b3 (diff) |
merge of '28c74aa25680384c6f311fd8f4123ddb27c1ba65'
and '77f81ea18669b5c79145faa5f0a96df1d7db3232'
Diffstat (limited to 'packages/midpath/midpath-common.inc')
-rw-r--r-- | packages/midpath/midpath-common.inc | 33 |
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" \ + "$@" + +} |