summaryrefslogtreecommitdiff
path: root/recipes/kaffe
diff options
context:
space:
mode:
authorDenys Dmytriyenko <denis@denix.org>2009-03-17 14:32:59 -0400
committerDenys Dmytriyenko <denis@denix.org>2009-03-17 14:32:59 -0400
commit709c4d66e0b107ca606941b988bad717c0b45d9b (patch)
tree37ee08b1eb308f3b2b6426d5793545c38396b838 /recipes/kaffe
parentfa6cd5a3b993f16c27de4ff82b42684516d433ba (diff)
rename packages/ to recipes/ per earlier agreement
See links below for more details: http://thread.gmane.org/gmane.comp.handhelds.openembedded/21326 http://thread.gmane.org/gmane.comp.handhelds.openembedded/21816 Signed-off-by: Denys Dmytriyenko <denis@denix.org> Acked-by: Mike Westerhof <mwester@dls.net> Acked-by: Philip Balister <philip@balister.org> Acked-by: Khem Raj <raj.khem@gmail.com> Acked-by: Marcin Juszkiewicz <hrw@openembedded.org> Acked-by: Koen Kooi <koen@openembedded.org> Acked-by: Frans Meulenbroeks <fransmeulenbroeks@gmail.com>
Diffstat (limited to 'recipes/kaffe')
-rw-r--r--recipes/kaffe/files/disable-automake-checks.patch11
-rw-r--r--recipes/kaffe/kaffe-gtk_1.1.5.bb9
-rw-r--r--recipes/kaffe/kaffe-gtk_cvs.bb12
-rw-r--r--recipes/kaffe/kaffe-qt_cvs.bb23
-rw-r--r--recipes/kaffe/kaffe.inc86
-rw-r--r--recipes/kaffe/kaffeh-native_1.1.5.bb30
-rw-r--r--recipes/kaffe/kaffeh-native_cvs.bb32
7 files changed, 203 insertions, 0 deletions
diff --git a/recipes/kaffe/files/disable-automake-checks.patch b/recipes/kaffe/files/disable-automake-checks.patch
new file mode 100644
index 0000000000..4b2ff1322b
--- /dev/null
+++ b/recipes/kaffe/files/disable-automake-checks.patch
@@ -0,0 +1,11 @@
+--- kaffe/configure.ac.orig 2005-03-18 14:49:46.000000000 +0100
++++ kaffe/configure.ac 2005-03-18 14:51:15.000000000 +0100
+@@ -33,7 +33,7 @@
+ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ ])
+
+-AM_INIT_AUTOMAKE([1.9.5 tar-ustar])
++AM_INIT_AUTOMAKE
+
+ AC_PREFIX_DEFAULT(/usr/local/kaffe)
+
diff --git a/recipes/kaffe/kaffe-gtk_1.1.5.bb b/recipes/kaffe/kaffe-gtk_1.1.5.bb
new file mode 100644
index 0000000000..4dcc916e86
--- /dev/null
+++ b/recipes/kaffe/kaffe-gtk_1.1.5.bb
@@ -0,0 +1,9 @@
+
+SRC_URI = "http://www.kaffe.org/ftp/pub/kaffe/v1.1.x-development/kaffe-${PV}.tar.gz"
+S = "${WORKDIR}/kaffe-${PV}"
+
+require kaffe.inc
+
+DEPENDS += "glib-2.0 gmp gtk+ pango zlib libxtst kaffeh-native"
+
+EXTRA_OECONF += ""
diff --git a/recipes/kaffe/kaffe-gtk_cvs.bb b/recipes/kaffe/kaffe-gtk_cvs.bb
new file mode 100644
index 0000000000..d75eb63319
--- /dev/null
+++ b/recipes/kaffe/kaffe-gtk_cvs.bb
@@ -0,0 +1,12 @@
+
+PV = "1.1.5+cvs${SRCDATE}"
+DEFAULT_PREFERENCE = "-1"
+
+SRC_URI = "cvs://readonly:readonly@cvs.kaffe.org/cvs/kaffe;module=kaffe"
+S = "${WORKDIR}/kaffe"
+
+require kaffe.inc
+
+DEPENDS += "glib-2.0 gmp gtk+ pango zlib libxtst kaffeh-native"
+
+EXTRA_OECONF += ""
diff --git a/recipes/kaffe/kaffe-qt_cvs.bb b/recipes/kaffe/kaffe-qt_cvs.bb
new file mode 100644
index 0000000000..8edecdc868
--- /dev/null
+++ b/recipes/kaffe/kaffe-qt_cvs.bb
@@ -0,0 +1,23 @@
+BROKEN = "1"
+
+PV = "1.1.4+cvs${SRCDATE}"
+SRC_URI = "cvs://readonly:readonly@cvs.kaffe.org/cvs/kaffe;module=kaffe"
+S = "${WORKDIR}/kaffe"
+
+require kaffe.inc
+
+DEPENDS += "libqpe-opie"
+
+CXXFLAGS += " -DQPE "
+EXTRA_OEMAKE += "MOC=${STAGING_BINDIR_NATIVE}/moc"
+EXTRA_OECONF += " --with-qtdir=$QTDIR \
+ --with-awt=qt \
+ --enable-pure-java-math \
+ --without-x \
+ --without-classpath-gtk-awt \
+ --without-kaffe-x-awt \
+ --with-kaffe-qt-awt"
+
+do_configure_prepend() {
+ rm -f m4/libtool.m4
+}
diff --git a/recipes/kaffe/kaffe.inc b/recipes/kaffe/kaffe.inc
new file mode 100644
index 0000000000..7863f733c0
--- /dev/null
+++ b/recipes/kaffe/kaffe.inc
@@ -0,0 +1,86 @@
+DESCRIPTION = "Kaffe is a clean room implementation of the Java Virtual Machine"
+HOMEPAGE = "http://www.kaffe.org/"
+LICENSE = "GPL LGPL W3C Classpath BSD"
+
+DEPENDS = "virtual/javac-native fastjar-native libffi zip-native libart-lgpl"
+RDEPENDS_${PN} = "${PN}-common (>= ${PV})"
+
+SRC_URI += "file://disable-automake-checks.patch;patch=1"
+
+inherit autotools gettext
+
+EXTRA_OECONF = "--with-engine=intrp \
+ --with-libffi \
+ --with-threads=unix-pthreads \
+ --disable-alsatest \
+ --disable-esdtest \
+ --disable-sound \
+ --with-jikes"
+
+CFLAGS += "-D_GNU_SOURCE"
+
+# kaffe installs to non-standard locations. apply a similar workaround to
+# the one used in debian. i.e. override prefix
+oe_runconf () {
+ if [ -x ${S}/configure ] ; then
+ cfgcmd="${S}/configure \
+ --build=${BUILD_SYS} \
+ --host=${HOST_SYS} \
+ --target=${TARGET_SYS} \
+ --prefix=${libdir}/${PN} \
+ --datadir=${datadir} \
+ --sysconfdir=${sysconfdir} \
+ --sharedstatedir=${sharedstatedir}/${PN} \
+ --includedir=${includedir} \
+ --oldincludedir=${oldincludedir} \
+ --infodir=${infodir} \
+ --mandir=${mandir} \
+ ${EXTRA_OECONF} \
+ $@"
+ oenote "Running $cfgcmd..."
+ $cfgcmd || oefatal "oe_runconf failed"
+ else
+ oefatal "no configure script found"
+ fi
+}
+
+do_install () {
+ autotools_do_install
+
+ # move partially duplicate stuff to a single location
+ mv -f ${D}${libdir}/${PN}/bin/* ${D}${libdir}/${PN}/jre/bin
+ rmdir ${D}${libdir}/${PN}/bin
+ cd ${D}${libdir}/${PN} && ln -s jre/bin
+}
+
+# use update-alternatives for the various wrapper scripts
+alternative_names = "appletviewer \
+install-jar \
+jar \
+java \
+javac \
+javadoc \
+javah \
+javap \
+kaffe \
+kaffeh \
+native2ascii \
+rmic \
+rmiregistry \
+serialver"
+
+pkg_postinst_${PN} () {
+ for name in ${alternative_names}; do
+ update-alternatives --install ${bindir}/$name $name ${libdir}/${PN}/jre/bin/$name 300
+ done
+}
+
+pkg_postrm_${PN} () {
+ for name in ${alternative_names}; do
+ update-alternatives --remove $name ${libdir}/${PN}/jre/bin/$name
+ done
+}
+
+PACKAGES =+ "${PN}-common"
+FILES_${PN} += "${libdir}/${PN}"
+FILES_${PN}-common = "${libdir}/${PN}/jre/lib/*.jar"
diff --git a/recipes/kaffe/kaffeh-native_1.1.5.bb b/recipes/kaffe/kaffeh-native_1.1.5.bb
new file mode 100644
index 0000000000..d4d6287592
--- /dev/null
+++ b/recipes/kaffe/kaffeh-native_1.1.5.bb
@@ -0,0 +1,30 @@
+SRC_URI = "http://www.kaffe.org/ftp/pub/kaffe/v1.1.x-development/kaffe-${PV}.tar.gz"
+S = "${WORKDIR}/kaffe-${PV}"
+PR = "r3"
+
+require kaffe.inc
+
+RDEPENDS_${PN} = ""
+
+inherit native
+
+EXTRA_OECONF = "--disable-alsatest \
+ --disable-esdtest \
+ --disable-sound \
+ --with-jikes \
+ --without-classpath-gtk-awt \
+ --without-gmp \
+ --enable-pure-java-math \
+ --disable-native-awt \
+ --disable-sound \
+ --without-x \
+ --without-kaffe-x-awt \
+ --disable-debug \
+ --disable-gcj"
+
+do_stage() {
+ install -m 0755 kaffe/kaffeh/kaffeh ${STAGING_BINDIR}/
+
+ install -d ${STAGING_DATADIR}/kaffeh
+ install -m 0755 libraries/javalib/*.jar ${STAGING_DATADIR}/kaffeh/
+}
diff --git a/recipes/kaffe/kaffeh-native_cvs.bb b/recipes/kaffe/kaffeh-native_cvs.bb
new file mode 100644
index 0000000000..60dab7859e
--- /dev/null
+++ b/recipes/kaffe/kaffeh-native_cvs.bb
@@ -0,0 +1,32 @@
+PV = "1.1.5+cvs${SRCDATE}"
+DEFAULT_PREFERENCE = "-1"
+PR = "r3"
+
+SRC_URI = "cvs://readonly:readonly@cvs.kaffe.org/cvs/kaffe;module=kaffe"
+S = "${WORKDIR}/kaffe"
+
+require kaffe.inc
+
+inherit native
+
+EXTRA_OECONF = "--disable-alsatest \
+ --disable-esdtest \
+ --disable-sound \
+ --with-jikes \
+ --without-classpath-gtk-awt \
+ --without-gmp \
+ --enable-pure-java-math \
+ --disable-native-awt \
+ --disable-sound \
+ --without-x \
+ --without-kaffe-x-awt \
+ --disable-debug \
+ --disable-gcj"
+
+do_stage() {
+ install -m 0755 kaffe/kaffeh/kaffeh ${STAGING_BINDIR}/
+
+ install -d ${STAGING_DATADIR}/kaffeh
+ install -m 0755 libraries/javalib/*.jar ${STAGING_DATADIR}/kaffeh/
+}
+