diff options
author | Denys Dmytriyenko <denis@denix.org> | 2009-03-17 14:32:59 -0400 |
---|---|---|
committer | Denys Dmytriyenko <denis@denix.org> | 2009-03-17 14:32:59 -0400 |
commit | 709c4d66e0b107ca606941b988bad717c0b45d9b (patch) | |
tree | 37ee08b1eb308f3b2b6426d5793545c38396b838 /recipes/midpath | |
parent | fa6cd5a3b993f16c27de4ff82b42684516d433ba (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/midpath')
32 files changed, 1501 insertions, 0 deletions
diff --git a/recipes/midpath/files/configuration_maemo.cfg b/recipes/midpath/files/configuration_maemo.cfg new file mode 100644 index 0000000000..441a9cdfc5 --- /dev/null +++ b/recipes/midpath/files/configuration_maemo.cfg @@ -0,0 +1,123 @@ +##======================================== +## Graphics parameters +##======================================== +javax.microedition.lcdui.screenWidth:600 +javax.microedition.lcdui.screenHeight:400 +# Toolkit configuration (possible values: SDL, virtual) +# The toolkit parameter should be set to "virtual" unless you know what you do. +# (to change the UI backend, see the backend parameter of the virtual toolkit below) +javax.microedition.lcdui.toolkit:virtual + +##====================================== +## Parameters for the Virtual UI Toolkit +##====================================== +# Possible backend values: NULL, SDL, AWT, AWTGRABBER, SWT, X11, GTK, QT, FB +org.thenesis.microbackend.ui.backend:SWT +# SDL backend configuration. +# Possible bitsPerPixels values: 8, 16, 32 +# Possible video mode values: SW, HW (i.e software, hardware) +org.thenesis.microbackend.ui.sdl.bitsPerPixel:32 +org.thenesis.microbackend.ui.sdl.videoMode:SW +# X11 backend configuration. +# Display value examples: :0.0, 192.168.0.1:1.0 +org.thenesis.microbackend.ui.x11.Display::0.0 +# Linux Framebuffer (FB) backend configuration +# (see /proc/bus/input/devices to know which special files are +# associated with your mouse or touchscreen) +org.thenesis.microbackend.ui.fb.framebufferDevice:/dev/fb0 +org.thenesis.microbackend.ui.fb.keyboardDevice:/dev/tty +org.thenesis.microbackend.ui.fb.mouseDevice:/dev/input/event1 +org.thenesis.microbackend.ui.fb.touchscreenDevice:/dev/input/event2 +# Possible fontRenderer values: raw, BDF +org.thenesis.midpath.ui.fontRenderer:raw +org.thenesis.midpath.font.bdf.filename:VeraMono-12-8.bdf + +##========================== +## Parameters for the sound +##========================== +# Sound configuration (possible values: SDL, virtual) +# The "player" parameter should be set to "virtual" unless you know what you do. +# The virtual engine requires this hardware configuration: 16 bits, stereo, little endian +org.thenesis.midpath.sound.engine:virtual +# Possible sound backend values: NULL, ALSA, ESD, PulseAudio +org.thenesis.midpath.sound.backend:NULL +org.thenesis.midpath.sound.device:default +org.thenesis.midpath.sound.sampleRate:44100 +# Buffer size MUST be a power of two +org.thenesis.midpath.sound.bufferSize:8192 + +##====================================== +## IO parameters +##====================================== +# IO (file, socket) backends (possible values: J2SE, CLDC) +com.sun.midp.io.backend:J2SE +# The RMS root path (if not defined, records are read/written in the current directory) +com.sun.midp.rms.rootPath:/home/user/ + +##====================================== +## Location (JSR179) +##====================================== +# Location mode (possible values: GPS, KML, LMS, NMEA) +org.thenesis.midpath.location.mode:GPS +# Resource file URI (KML and NMEA mode only) +# Examples: +# -Load a KML file in the "res" package from the java classloader: +# org.thenesis.midpath.location.resource.uri:/res/location.kml +# -Load a NMEA file from the file system: +# org.thenesis.midpath.location.resource.uri:file:////absolute/path/to/location.kml +org.thenesis.midpath.location.resource.uri: +# Resource poll interval in milliseconds (KML, LMS, NMEA mode only) +org.thenesis.midpath.location.resource.pollInterval:5000 + +##====================================== +## Messaging (JSR120, JSR205) +##====================================== +# SMS backend (possible values: NULL) +org.thenesis.midpath.messaging.backend:NULL + +##====================================== +## MIDlet Suite Manager (J2SE only) +##====================================== +# The MIDlet repository path (if not defined, MIDlets are searched in the current directory) +org.thenesis.midpath.main.repositoryPath:/usr/share/midpath/repository + +##====================================== +## Event parameters +##====================================== +javax.microedition.lcdui.pointerSupported:true +javax.microedition.lcdui.pointerMotionSupported:true + +##====================================== +## Key mapping +## (AWT codes are used by convention - see java.awt.event.KeyEvent javadocs) +##====================================== +# Cursor left +org.thenesis.midpath.ui.keys.LEFT:37 +# Cursor up +org.thenesis.midpath.ui.keys.UP:38 +# Cursor right +org.thenesis.midpath.ui.keys.RIGHT:39 +# Cursor down +org.thenesis.midpath.ui.keys.DOWN:40 + +# Zoom - +org.thenesis.midpath.ui.keys.GAME_A:119 +# Minimize/Maximize +org.thenesis.midpath.ui.keys.GAME_B:117 +# Zoom + +org.thenesis.midpath.ui.keys.GAME_C:118 +# Cursor button +org.thenesis.midpath.ui.keys.FIRE:10 + +# Back button +org.thenesis.midpath.ui.keys.SOFT_BUTTON1:27 +# Menu button +org.thenesis.midpath.ui.keys.SOFT_BUTTON2:115 + +# unmapped +org.thenesis.midpath.ui.keys.STAR:0 +org.thenesis.midpath.ui.keys.POUND:0 +org.thenesis.midpath.ui.keys.DELETE:8 +org.thenesis.midpath.ui.keys.END:39 +org.thenesis.midpath.ui.keys.POWER:0 +org.thenesis.midpath.ui.keys.GAME_D:0 diff --git a/recipes/midpath/files/configuration_openmoko.cfg b/recipes/midpath/files/configuration_openmoko.cfg new file mode 100644 index 0000000000..bb413e4548 --- /dev/null +++ b/recipes/midpath/files/configuration_openmoko.cfg @@ -0,0 +1,124 @@ +##======================================== +## Graphics parameters +##======================================== +javax.microedition.lcdui.screenWidth:480 +javax.microedition.lcdui.screenHeight:330 +# Toolkit configuration (possible values: SDL, virtual) +# The toolkit parameter should be set to "virtual" unless you know what you do. +# (to change the UI backend, see the backend parameter of the virtual toolkit below) +javax.microedition.lcdui.toolkit:virtual + +##====================================== +## Parameters for the Virtual UI Toolkit +##====================================== +# Possible backend values: NULL, SDL, AWT, AWTGRABBER, SWT, X11, GTK, QT, FB +org.thenesis.microbackend.ui.backend:SWT +# SDL backend configuration. +# Possible bitsPerPixels values: 8, 16, 32 +# Possible video mode values: SW, HW (i.e software, hardware) +org.thenesis.microbackend.ui.sdl.bitsPerPixel:32 +org.thenesis.microbackend.ui.sdl.videoMode:SW +# X11 backend configuration. +# Display value examples: :0.0, 192.168.0.1:1.0 +org.thenesis.microbackend.ui.x11.Display::0.0 +# Linux Framebuffer (FB) backend configuration +# (see /proc/bus/input/devices to know which special files are +# associated with your mouse or touchscreen) +org.thenesis.microbackend.ui.fb.framebufferDevice:/dev/fb0 +org.thenesis.microbackend.ui.fb.keyboardDevice:/dev/tty +org.thenesis.microbackend.ui.fb.mouseDevice:/dev/input/event1 +org.thenesis.microbackend.ui.fb.touchscreenDevice:/dev/input/event2 +# Possible fontRenderer values: raw, BDF +org.thenesis.midpath.ui.fontRenderer:raw +org.thenesis.midpath.font.bdf.filename:VeraMono-12-8.bdf + +##========================== +## Parameters for the sound +##========================== +# Sound configuration (possible values: SDL, virtual) +# The "player" parameter should be set to "virtual" unless you know what you do. +# The virtual engine requires this hardware configuration: 16 bits, stereo, little endian +org.thenesis.midpath.sound.engine:virtual +# Possible sound backend values: NULL, ALSA, ESD, PulseAudio +org.thenesis.midpath.sound.backend:ALSA +org.thenesis.midpath.sound.device:default +org.thenesis.midpath.sound.sampleRate:44100 +# Buffer size MUST be a power of two +org.thenesis.midpath.sound.bufferSize:8192 + +##====================================== +## IO parameters +##====================================== +# IO (file, socket) backends (possible values: J2SE, CLDC) +com.sun.midp.io.backend:J2SE +# The RMS root path (if not defined, records are read/written in the current directory) +com.sun.midp.rms.rootPath:/home/root/ + +##====================================== +## Location (JSR179) +##====================================== +# Location mode (possible values: GPS, KML, LMS, NMEA) +org.thenesis.midpath.location.mode:GPS +# Resource file URI (KML and NMEA mode only) +# Examples: +# -Load a KML file in the "res" package from the java classloader: +# org.thenesis.midpath.location.resource.uri:/res/location.kml +# -Load a NMEA file from the file system: +# org.thenesis.midpath.location.resource.uri:file:////absolute/path/to/location.kml +org.thenesis.midpath.location.resource.uri: +# Resource poll interval in milliseconds (KML, LMS, NMEA mode only) +org.thenesis.midpath.location.resource.pollInterval:5000 + +##====================================== +## Messaging (JSR120, JSR205) +##====================================== +# SMS backend (possible values: NULL) +org.thenesis.midpath.messaging.backend:NULL + +##====================================== +## MIDlet Suite Manager (J2SE only) +##====================================== +# The MIDlet repository path (if not defined, MIDlets are searched in the current directory) +org.thenesis.midpath.main.repositoryPath:/usr/share/midpath/repository + +##====================================== +## Event parameters +##====================================== +javax.microedition.lcdui.pointerSupported:true +javax.microedition.lcdui.pointerMotionSupported:true + +##====================================== +## Key mapping +## (AWT codes are used by convention - see java.awt.event.KeyEvent javadocs) +##====================================== +# 4 +org.thenesis.midpath.ui.keys.LEFT:52 +# 2 +org.thenesis.midpath.ui.keys.UP:50 +# 6 +org.thenesis.midpath.ui.keys.RIGHT:54 +# 8 +org.thenesis.midpath.ui.keys.DOWN:56 + +# 1 +org.thenesis.midpath.ui.keys.GAME_A:49 +# 3 +org.thenesis.midpath.ui.keys.GAME_B:51 +# 7 +org.thenesis.midpath.ui.keys.GAME_C:55 +# 9 +org.thenesis.midpath.ui.keys.GAME_D:57 +# 5 +org.thenesis.midpath.ui.keys.FIRE:53 + +# 0 +org.thenesis.midpath.ui.keys.SOFT_BUTTON1:48 +# pound/sign/# +org.thenesis.midpath.ui.keys.SOFT_BUTTON2:520 + +# unmapped +org.thenesis.midpath.ui.keys.STAR:0 +org.thenesis.midpath.ui.keys.POUND:0 +org.thenesis.midpath.ui.keys.DELETE:8 +org.thenesis.midpath.ui.keys.END:39 +org.thenesis.midpath.ui.keys.POWER:0 diff --git a/recipes/midpath/files/fix-openfile.patch b/recipes/midpath/files/fix-openfile.patch new file mode 100644 index 0000000000..df677e1011 --- /dev/null +++ b/recipes/midpath/files/fix-openfile.patch @@ -0,0 +1,22 @@ +Index: midpath-0.3rc2/components/core/src/org/thenesis/midpath/io/backend/j2se/FileHandlerImpl.java +=================================================================== +--- midpath-0.3rc2.orig/components/core/src/org/thenesis/midpath/io/backend/j2se/FileHandlerImpl.java 2008-05-19 13:56:18.000000000 +0200 ++++ midpath-0.3rc2/components/core/src/org/thenesis/midpath/io/backend/j2se/FileHandlerImpl.java 2008-12-17 07:08:54.000000000 +0100 +@@ -181,10 +181,14 @@ +
+ public void openForRead() throws IOException {
+ if (randomAccessFile == null) {
+- //stream = new FileRandomAccessStream(file);
+- randomAccessFile = new RandomAccessFile(file, "rws");
++ // Try to get maximum rights to avoid closing the stream if openForWrite is called next
++ if (file.canWrite()) {
++ randomAccessFile = new RandomAccessFile(file, "rws");
++ } else {
++ randomAccessFile = new RandomAccessFile(file, "r");
++ }
+ }
+- }
++ }
+
+ public void openForWrite() throws IOException {
+ if (randomAccessFile == null) {
diff --git a/recipes/midpath/files/midpath-launcher-j2se b/recipes/midpath/files/midpath-launcher-j2se new file mode 100644 index 0000000000..49f074f7ab --- /dev/null +++ b/recipes/midpath/files/midpath-launcher-j2se @@ -0,0 +1,67 @@ +#!/bin/sh + +if [ ! $LAUNCHER_CLASS ]; then + if [ $# -lt 2 ]; then + echo "Usage :" + echo " $(basename $0) <classpath> <midlet-class> [midlet-name]" + echo " $(basename $0) -jar <jar-file>" + exit 1 + fi + + LAUNCHER_CLASS=org.thenesis.midpath.main.MIDletLauncherSE + + # Add the MIDlet jar to the classpath (must be loaded by the main classloader) + if [ $1 = "-jar" ]; then + CP=$2 + ARGS="$1 $2" + else + CP=$1 + ARGS="$2 $3" + fi +else + ARGS="$@" +fi + +if [ ! $JAVA ]; then + JAVA=java +fi + +JAR_HOME=/usr/share/java + +MIDPATH_HOME=/usr/share/midpath + +JLP=/usr/lib/jni + +# Set the classpath +CP=$CP:\ +$MIDPATH_HOME/configuration:\ +$MIDPATH_HOME/midpath.jar:\ +$MIDPATH_HOME/microbackend.jar:\ +$MIDPATH_HOME/sdljava-cldc.jar:\ +$MIDPATH_HOME/escher-cldc.jar:\ +$MIDPATH_HOME/jlayerme-cldc.jar:\ +$MIDPATH_HOME/jorbis-cldc.jar:\ +$MIDPATH_HOME/avetanabt-cldc.jar:\ +$MIDPATH_HOME/jgl-cldc.jar:\ +$MIDPATH_HOME/jsr172-jaxp.jar:\ +$MIDPATH_HOME/jsr172-jaxrpc.jar:\ +$MIDPATH_HOME/jsr239-opengles-jgl.jar:\ +$MIDPATH_HOME/jsr239-opengles-core.jar:\ +$MIDPATH_HOME/jsr239-opengles-nio.jar:\ +$MIDPATH_HOME/jsr184-m3g.jar:\ +$MIDPATH_HOME/jsr205-messaging.jar:\ +$MIDPATH_HOME/jsr179-location.jar:\ +$MIDPATH_HOME/jsr226-svg-core.jar:\ +$MIDPATH_HOME/jsr226-svg-midp2.jar:\ +$JAR_HOME/kxml2.jar:\ +$JAR_HOME/xmlpull.jar:\ +$JAR_HOME/swt.jar + +# Add whatever is mentioned in the CLASSPATH environment variable +if [ $CLASSPATH ] +then + CP=$CP:$CLASSPATH +fi + +$JAVA -cp $CP -Djava.library.path=$JLP $LAUNCHER_CLASS $ARGS + diff --git a/recipes/midpath/files/midpath-suitemanager b/recipes/midpath/files/midpath-suitemanager new file mode 100644 index 0000000000..41ccd5fcb6 --- /dev/null +++ b/recipes/midpath/files/midpath-suitemanager @@ -0,0 +1,2 @@ +#!/bin/sh +LAUNCHER_CLASS=org.thenesis.midpath.main.SuiteManager midpath-launcher-j2se "$@" diff --git a/recipes/midpath/files/midpath-suitemanager.desktop b/recipes/midpath/files/midpath-suitemanager.desktop new file mode 100644 index 0000000000..3d7833e74e --- /dev/null +++ b/recipes/midpath/files/midpath-suitemanager.desktop @@ -0,0 +1,11 @@ +[Desktop Entry] +Name=MIDPath SuiteManager +Comment=Manage MIDlets +Exec=midpath-suitemanager +Icon=midpath +Terminal=false +Type=Application +Categories=GTK;Office; +X-SingleInstance=true +StartupNotify=true + diff --git a/recipes/midpath/files/midpath.png b/recipes/midpath/files/midpath.png Binary files differnew file mode 100644 index 0000000000..0066fe4f29 --- /dev/null +++ b/recipes/midpath/files/midpath.png diff --git a/recipes/midpath/midpath-backend-alsa_0.2+0.3rc2.bb b/recipes/midpath/midpath-backend-alsa_0.2+0.3rc2.bb new file mode 100644 index 0000000000..32b012b0c6 --- /dev/null +++ b/recipes/midpath/midpath-backend-alsa_0.2+0.3rc2.bb @@ -0,0 +1,43 @@ +require midpath-common.inc + +PR = "r0" + +SRC_URI = "${SOURCEFORGE_MIRROR}/midpath/midpath-0.3rc2.tar.gz" + +S = "${WORKDIR}/midpath-0.3rc2" + +DEPENDS = "classpath linux-libc-headers" + +do_compile() { + # Only ALSA backend library is enabled + midpath_build \ + --disable-cldc \ + --disable-midpath \ + --disable-sdljava-cldc \ + --disable-escher-cldc \ + --disable-jlayerme-cldc \ + --disable-jorbis-cldc \ + --disable-avetanabt-cldc \ + --disable-jgl-cldc \ + --disable-web_services-api \ + --disable-location-api \ + --disable-messaging-api \ + --disable-svg-api \ + --disable-opengl-api \ + --disable-m3g-api \ + --disable-demos \ + --alsa +} + +do_install() { + oe_libinstall -C dist -so libmidpathalsa ${D}${libdir_jni} +} + +do_stage() { + : +} + +PACKAGES = "${PN} ${PN}-dbg" + +FILES_${PN} = "${libdir_jni}/lib*.so" +FILES_${PN}-dbg = "${libdir_jni}/.debug/lib*.so" diff --git a/recipes/midpath/midpath-backend-escher_0.2+0.3rc2.bb b/recipes/midpath/midpath-backend-escher_0.2+0.3rc2.bb new file mode 100644 index 0000000000..05ca8a078a --- /dev/null +++ b/recipes/midpath/midpath-backend-escher_0.2+0.3rc2.bb @@ -0,0 +1,42 @@ +require midpath-common.inc + +PR = "r0" + +SRC_URI = "${SOURCEFORGE_MIRROR}/midpath/midpath-0.3rc2.tar.gz" + +S = "${WORKDIR}/midpath-0.3rc2" + +DEPENDS += "midpath-cldc" + +do_compile() { + # Only escher-cldc is enabled + midpath_build \ + --disable-cldc \ + --disable-midpath \ + --disable-sdljava-cldc \ + --disable-jlayerme-cldc \ + --disable-jorbis-cldc \ + --disable-avetanabt-cldc \ + --disable-jgl-cldc \ + --disable-web_services-api \ + --disable-location-api \ + --disable-messaging-api \ + --disable-svg-api \ + --disable-opengl-api \ + --disable-m3g-api \ + --disable-demos \ +} + +do_install() { + install -d ${D}${datadir}/midpath + install -m 0644 dist/escher-cldc.jar ${D}${datadir}/midpath +} + +do_stage() { + install -d ${STAGING_DATADIR}/midpath + install -m 0644 dist/escher-cldc.jar ${STAGING_DATADIR}/midpath +} + +PACKAGES = "${PN}" + +FILES_${PN} = "${datadir}/midpath/escher-cldc.jar" diff --git a/recipes/midpath/midpath-backend-esd_0.2+0.3rc2.bb b/recipes/midpath/midpath-backend-esd_0.2+0.3rc2.bb new file mode 100644 index 0000000000..4e8a5a55a3 --- /dev/null +++ b/recipes/midpath/midpath-backend-esd_0.2+0.3rc2.bb @@ -0,0 +1,44 @@ +require midpath-common.inc + +PR = "r0" + +SRC_URI = "${SOURCEFORGE_MIRROR}/midpath/midpath-0.3rc2.tar.gz" + +S = "${WORKDIR}/midpath-0.3rc2" + +DEPENDS = "classpath esound" + +do_compile() { + # Only native esd backend library is enabled + midpath_build \ + --disable-cldc \ + --disable-midpath \ + --disable-sdljava-cldc \ + --disable-escher-cldc \ + --disable-jlayerme-cldc \ + --disable-jorbis-cldc \ + --disable-avetanabt-cldc \ + --disable-jgl-cldc \ + --disable-web_services-api \ + --disable-location-api \ + --disable-messaging-api \ + --disable-svg-api \ + --disable-opengl-api \ + --disable-m3g-api \ + --disable-demos \ + --esd +} + +do_install() { + oe_libinstall -C dist -so libmidpathesd ${D}${libdir_jni} +} + +do_stage() { + : +} + +PACKAGES = "${PN} ${PN}-dbg" + +FILES_${PN} = "${libdir_jni}/lib*.so" +FILES_${PN}-dbg = "${libdir_jni}/.debug/lib*.so" + diff --git a/recipes/midpath/midpath-backend-fb_0.2+0.3rc2.bb b/recipes/midpath/midpath-backend-fb_0.2+0.3rc2.bb new file mode 100644 index 0000000000..d7b35f9867 --- /dev/null +++ b/recipes/midpath/midpath-backend-fb_0.2+0.3rc2.bb @@ -0,0 +1,43 @@ +require midpath-common.inc + +PR = "r0" + +SRC_URI = "${SOURCEFORGE_MIRROR}/midpath/midpath-0.3rc2.tar.gz" + +S = "${WORKDIR}/midpath-0.3rc2" + +DEPENDS = "classpath linux-libc-headers" + +do_compile() { + # Only native framebuffer backend library is enabled + midpath_build \ + --disable-cldc \ + --disable-midpath \ + --disable-sdljava-cldc \ + --disable-escher-cldc \ + --disable-jlayerme-cldc \ + --disable-jorbis-cldc \ + --disable-avetanabt-cldc \ + --disable-jgl-cldc \ + --disable-web_services-api \ + --disable-location-api \ + --disable-messaging-api \ + --disable-svg-api \ + --disable-opengl-api \ + --disable-m3g-api \ + --disable-demos \ + --fb +} + +do_install() { + oe_libinstall -C dist -so libmicrobackendfb ${D}${libdir_jni} +} + +do_stage() { + : +} + +PACKAGES = "${PN} ${PN}-dbg" + +FILES_${PN} = "${libdir_jni}/lib*.so" +FILES_${PN}-dbg = "${libdir_jni}/.debug/lib*.so" diff --git a/recipes/midpath/midpath-backend-gtk-hildon_0.2+0.3rc2.bb b/recipes/midpath/midpath-backend-gtk-hildon_0.2+0.3rc2.bb new file mode 100644 index 0000000000..4da2822a8e --- /dev/null +++ b/recipes/midpath/midpath-backend-gtk-hildon_0.2+0.3rc2.bb @@ -0,0 +1,34 @@ +require midpath-backend-gtk_${PV}.bb + +PR = "r0" + +SRC_URI = "${SOURCEFORGE_MIRROR}/midpath/midpath-0.3rc2.tar.gz" + +S = "${WORKDIR}/midpath-0.3rc2" + +PROVIDES = "midpath-backend-gtk" + +DEPENDS += "libhildon libhildonfm" + +do_compile() { + # Only native gtk backend library is enabled + midpath_build \ + --disable-cldc \ + --disable-midpath \ + --disable-sdljava-cldc \ + --disable-escher-cldc \ + --disable-jlayerme-cldc \ + --disable-jorbis-cldc \ + --disable-avetanabt-cldc \ + --disable-jgl-cldc \ + --disable-web_services-api \ + --disable-location-api \ + --disable-messaging-api \ + --disable-svg-api \ + --disable-opengl-api \ + --disable-m3g-api \ + --disable-demos \ + --gtk \ + --enable-hildon +} + diff --git a/recipes/midpath/midpath-backend-gtk_0.2+0.3rc2.bb b/recipes/midpath/midpath-backend-gtk_0.2+0.3rc2.bb new file mode 100644 index 0000000000..fa09f77d15 --- /dev/null +++ b/recipes/midpath/midpath-backend-gtk_0.2+0.3rc2.bb @@ -0,0 +1,44 @@ +require midpath-common.inc + +PR = "r0" + +SRC_URI = "${SOURCEFORGE_MIRROR}/midpath/midpath-0.3rc2.tar.gz" + +S = "${WORKDIR}/midpath-0.3rc2" + +DEPENDS = "classpath gtk+" + +do_compile() { + # Only native gtk backend library is enabled + midpath_build \ + --disable-cldc \ + --disable-midpath \ + --disable-sdljava-cldc \ + --disable-escher-cldc \ + --disable-jlayerme-cldc \ + --disable-jorbis-cldc \ + --disable-avetanabt-cldc \ + --disable-jgl-cldc \ + --disable-web_services-api \ + --disable-location-api \ + --disable-messaging-api \ + --disable-svg-api \ + --disable-opengl-api \ + --disable-m3g-api \ + --disable-demos \ + --gtk +} + +do_install() { + oe_libinstall -C dist -so libmicrobackendgtk ${D}${libdir_jni} +} + +do_stage() { + : +} + +PACKAGES = "${PN} ${PN}-dbg" + +FILES_${PN} = "${libdir_jni}/lib*.so" +FILES_${PN}-dbg = "${libdir_jni}/.debug/lib*.so" + diff --git a/recipes/midpath/midpath-backend-pulseaudio_0.2+0.3rc2.bb b/recipes/midpath/midpath-backend-pulseaudio_0.2+0.3rc2.bb new file mode 100644 index 0000000000..890bcd9152 --- /dev/null +++ b/recipes/midpath/midpath-backend-pulseaudio_0.2+0.3rc2.bb @@ -0,0 +1,44 @@ +require midpath-common.inc + +PR = "r0" + +SRC_URI = "${SOURCEFORGE_MIRROR}/midpath/midpath-0.3rc2.tar.gz" + +S = "${WORKDIR}/midpath-0.3rc2" + +DEPENDS = "classpath pulseaudio" + +do_compile() { + # Only native pulseaudio backend library is enabled + midpath_build \ + --disable-cldc \ + --disable-midpath \ + --disable-sdljava-cldc \ + --disable-escher-cldc \ + --disable-jlayerme-cldc \ + --disable-jorbis-cldc \ + --disable-avetanabt-cldc \ + --disable-jgl-cldc \ + --disable-web_services-api \ + --disable-location-api \ + --disable-messaging-api \ + --disable-svg-api \ + --disable-opengl-api \ + --disable-m3g-api \ + --disable-demos \ + --pulse +} + +do_install() { + oe_libinstall -C dist -so libmidpathpulse ${D}${libdir_jni} +} + +do_stage() { + : +} + +PACKAGES = "${PN} ${PN}-dbg" + +FILES_${PN} = "${libdir_jni}/lib*.so" +FILES_${PN}-dbg = "${libdir_jni}/.debug/lib*.so" + diff --git a/recipes/midpath/midpath-backend-qt3x11_0.2+0.3rc2.bb b/recipes/midpath/midpath-backend-qt3x11_0.2+0.3rc2.bb new file mode 100644 index 0000000000..88f046708b --- /dev/null +++ b/recipes/midpath/midpath-backend-qt3x11_0.2+0.3rc2.bb @@ -0,0 +1,47 @@ +require midpath-common.inc + +PR = "r0" + +SRC_URI = "${SOURCEFORGE_MIRROR}/midpath/midpath-0.3rc2.tar.gz" + +S = "${WORKDIR}/midpath-0.3rc2" + +DEPENDS = "classpath qte-mt" +RCONFLICTS = "midpath-backend-qte" + +inherit qt3x11 + +do_compile() { + # Only native qt3 backend library is enabled + midpath_build \ + --disable-cldc \ + --disable-midpath \ + --disable-sdljava-cldc \ + --disable-escher-cldc \ + --disable-jlayerme-cldc \ + --disable-jorbis-cldc \ + --disable-avetanabt-cldc \ + --disable-jgl-cldc \ + --disable-web_services-api \ + --disable-location-api \ + --disable-messaging-api \ + --disable-svg-api \ + --disable-opengl-api \ + --disable-m3g-api \ + --disable-demos \ + --qt3 +} + +do_install() { + oe_libinstall -C dist -so libmidpathqt ${D}${libdir_jni} +} + +do_stage() { + : +} + +PACKAGES = "${PN} ${PN}-dbg" + +FILES_${PN} = "${libdir_jni}/lib*.so" +FILES_${PN}-dbg = "${libdir_jni}/.debug/lib*.so" + diff --git a/recipes/midpath/midpath-backend-qt4x11_0.2+0.3rc2.bb b/recipes/midpath/midpath-backend-qt4x11_0.2+0.3rc2.bb new file mode 100644 index 0000000000..f900c0ed75 --- /dev/null +++ b/recipes/midpath/midpath-backend-qt4x11_0.2+0.3rc2.bb @@ -0,0 +1,46 @@ +require midpath-common.inc + +PR = "r0" + +SRC_URI = "${SOURCEFORGE_MIRROR}/midpath/midpath-0.3rc2.tar.gz" + +S = "${WORKDIR}/midpath-0.3rc2" + +DEPENDS = "classpath qte-mt" + +inherit qt4x11 + +do_compile() { + # Only native qt4 backend library is enabled + midpath_build \ + --disable-cldc \ + --disable-midpath \ + --disable-sdljava-cldc \ + --disable-escher-cldc \ + --disable-jlayerme-cldc \ + --disable-jorbis-cldc \ + --disable-avetanabt-cldc \ + --disable-jgl-cldc \ + --disable-web_services-api \ + --disable-location-api \ + --disable-messaging-api \ + --disable-svg-api \ + --disable-opengl-api \ + --disable-m3g-api \ + --disable-demos \ + --qt4 +} + +do_install() { + oe_libinstall -C dist -so libmidpathqt4 ${D}${libdir_jni} +} + +do_stage() { + : +} + +PACKAGES = "${PN} ${PN}-dbg" + +FILES_${PN} = "${libdir_jni}/lib*.so" +FILES_${PN}-dbg = "${libdir_jni}/.debug/lib*.so" + diff --git a/recipes/midpath/midpath-backend-qte_0.2+0.3rc2.bb b/recipes/midpath/midpath-backend-qte_0.2+0.3rc2.bb new file mode 100644 index 0000000000..e8e5ab29b6 --- /dev/null +++ b/recipes/midpath/midpath-backend-qte_0.2+0.3rc2.bb @@ -0,0 +1,47 @@ +require midpath-common.inc + +PR = "r0" + +SRC_URI = "${SOURCEFORGE_MIRROR}/midpath/midpath-0.3rc2.tar.gz" + +S = "${WORKDIR}/midpath-0.3rc2" + +DEPENDS = "classpath qte-mt" +RCONFLICTS = "midpath-backend-qt3" + +inherit qt3e + +do_compile() { + # Only native qt3 backend library is enabled + midpath_build \ + --disable-cldc \ + --disable-midpath \ + --disable-sdljava-cldc \ + --disable-escher-cldc \ + --disable-jlayerme-cldc \ + --disable-jorbis-cldc \ + --disable-avetanabt-cldc \ + --disable-jgl-cldc \ + --disable-web_services-api \ + --disable-location-api \ + --disable-messaging-api \ + --disable-svg-api \ + --disable-opengl-api \ + --disable-m3g-api \ + --disable-demos \ + --qte +} + +do_install() { + oe_libinstall -C dist -so libmidpathqt ${D}${libdir_jni} +} + +do_stage() { + : +} + +PACKAGES = "${PN} ${PN}-dbg" + +FILES_${PN} = "${libdir_jni}/lib*.so" +FILES_${PN}-dbg = "${libdir_jni}/.debug/lib*.so" + diff --git a/recipes/midpath/midpath-backend-sdl_0.2+0.3rc2.bb b/recipes/midpath/midpath-backend-sdl_0.2+0.3rc2.bb new file mode 100644 index 0000000000..220f9d50d9 --- /dev/null +++ b/recipes/midpath/midpath-backend-sdl_0.2+0.3rc2.bb @@ -0,0 +1,59 @@ +require midpath-common.inc + +PR = "r0" + +SRC_URI = "${SOURCEFORGE_MIRROR}/midpath/midpath-0.3rc2.tar.gz" + +S = "${WORKDIR}/midpath-0.3rc2" + +DEPENDS += "midpath-cldc virtual/libsdl libsdl-mixer libsdl-ttf libsdl-image libsdl-gfx" + +RDEPENDS_${PN} = "${PN}-jni" + +do_compile() { + # Only sdljava-cldc and native SDL backend library is enabled + midpath_build \ + --disable-cldc \ + --disable-midpath \ + --disable-escher-cldc \ + --disable-jlayerme-cldc \ + --disable-jorbis-cldc \ + --disable-avetanabt-cldc \ + --disable-jgl-cldc \ + --disable-web_services-api \ + --disable-location-api \ + --disable-messaging-api \ + --disable-svg-api \ + --disable-opengl-api \ + --disable-m3g-api \ + --disable-demos \ + --sdl \ + --with-sdl-include="`sdl-config --cflags`" +} + +do_install() { + install -d ${D}${datadir}/midpath + install -m 0644 dist/sdljava-cldc.jar ${D}${datadir}/midpath + + install -d ${D}${libdir_jni} + oe_libinstall -C dist -so libsdljava ${D}${libdir_jni} + oe_libinstall -C dist -so libsdljava_mixer ${D}${libdir_jni} + oe_libinstall -C dist -so libsdljava_ttf ${D}${libdir_jni} + oe_libinstall -C dist -so libsdljava_image ${D}${libdir_jni} + oe_libinstall -C dist -so libsdljava_gfx ${D}${libdir_jni} +} + +do_stage() { + install -d ${STAGING_DATADIR}/midpath + install -m 0644 dist/sdljava-cldc.jar ${STAGING_DATADIR}/midpath +} + +PACKAGES = "${PN} ${PN}-jni ${PN}-jni-dbg" + +FILES_${PN} = "\ + ${datadir}/midpath/sdljava-cldc.jar \ + " + +FILES_${PN}-jni = "${libdir_jni}/lib*.so" +FILES_${PN}-jni-dbg = "${libdir_jni}/.debug/lib*.so" + diff --git a/recipes/midpath/midpath-cldc_0.2+0.3rc2.bb b/recipes/midpath/midpath-cldc_0.2+0.3rc2.bb new file mode 100644 index 0000000000..e93bcbb3e0 --- /dev/null +++ b/recipes/midpath/midpath-cldc_0.2+0.3rc2.bb @@ -0,0 +1,45 @@ +require midpath-common.inc + +PR = "r0" + +SRC_URI = "${SOURCEFORGE_MIRROR}/midpath/midpath-0.3rc2.tar.gz" + +S = "${WORKDIR}/midpath-0.3rc2" + +DESCRIPTION = "Implementation of the CLDC profile for use in the MIDPath library" +RPROVIDES = "midpath-cldc java-cldc1.1" + +JAR = "midpath-cldc1.1.jar" + +do_compile() { + midpath_build \ + --disable-midpath \ + --disable-sdljava-cldc \ + --disable-escher-cldc \ + --disable-jlayerme-cldc \ + --disable-jorbis-cldc \ + --disable-avetanabt-cldc \ + --disable-jgl-cldc \ + --disable-web_services-api \ + --disable-location-api \ + --disable-messaging-api \ + --disable-svg-api \ + --disable-opengl-api \ + --disable-m3g-api \ + --disable-demos \ + --with-cldc-jar=dist/${JAR} +} + +do_install() { + install -d ${D}${datadir}/midpath-cldc + install -m 0644 dist/${JAR} ${D}${datadir}/midpath-cldc +} + +do_stage() { + install -d ${STAGING_DATADIR}/midpath-cldc + install -m 0644 dist/${JAR} ${STAGING_DATADIR}/midpath-cldc +} + +PACKAGES = "${PN}" + +FILES_${PN} = "${datadir}/midpath-cldc/${JAR}" diff --git a/recipes/midpath/midpath-common.inc b/recipes/midpath/midpath-common.inc new file mode 100644 index 0000000000..0c320e4408 --- /dev/null +++ b/recipes/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-tools-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" \ + "$@" + +} diff --git a/recipes/midpath/midpath-core_0.2+0.3rc2.bb b/recipes/midpath/midpath-core_0.2+0.3rc2.bb new file mode 100644 index 0000000000..ec3291ce32 --- /dev/null +++ b/recipes/midpath/midpath-core_0.2+0.3rc2.bb @@ -0,0 +1,91 @@ +DESCRIPTION = "MIDPath is a Java library which provides a MIDP2 implementation" + +PR = "r2" + +SRC_URI = "${SOURCEFORGE_MIRROR}/midpath/midpath-0.3rc2.tar.gz" + +S = "${WORKDIR}/midpath-0.3rc2" + +require midpath-common.inc + +SRC_URI += "\ + file://fix-openfile.patch;patch=1 \ + file://midpath-suitemanager \ + file://midpath-launcher-j2se \ + file://midpath-suitemanager.desktop \ + file://midpath.png \ + " + +PROVIDES = "java-midp2.0" +DEPENDS += "midpath-cldc midpath-backend-sdl midpath-backend-escher swt3.4-gtk kxml2 bluez-libs" + +RDEPENDS += "libkxml2-java" + +JAR = "midpath.jar" + +do_compile() { + midpath_build \ + --disable-cldc \ + --disable-sdljava-cldc \ + --disable-escher-cldc \ + --disable-jgl-cldc \ + --disable-web_services-api \ + --disable-location-api \ + --disable-messaging-api \ + --disable-svg-api \ + --disable-opengl-api \ + --disable-m3g-api \ + --disable-demos \ + --with-sdljava-cldc=${STAGING_DATADIR}/midpath/sdljava-cldc.jar \ + --with-escher-cldc=${STAGING_DATADIR}/midpath/escher-cldc.jar \ + --with-swt-jar=${STAGING_DATADIR_JAVA}/swt.jar \ + --with-midpath-jar=${S}/dist/midpath.jar \ + --bt +} + +do_install() { + oe_libinstall -C dist -so libavetanabtcldc ${D}${libdir_jni} + + install -d ${D}${datadir}/midpath + install -m 0644 dist/${JAR} ${D}${datadir}/midpath + install -m 0644 dist/microbackend.jar ${D}${datadir}/midpath + install -m 0644 dist/avetanabt-cldc.jar ${D}${datadir}/midpath + install -m 0644 dist/jorbis-cldc.jar ${D}${datadir}/midpath + install -m 0644 dist/jlayerme-cldc.jar ${D}${datadir}/midpath + + install -d ${D}${bindir} + install -m 0755 ${WORKDIR}/midpath-launcher-j2se ${D}${bindir} + install -m 0755 ${WORKDIR}/midpath-suitemanager ${D}${bindir} + + install -d ${D}${datadir}/applications + install -m 0644 ${WORKDIR}/midpath-suitemanager.desktop ${D}${datadir}/applications + + install -d ${D}${datadir}/pixmaps + install -m 0644 ${WORKDIR}/midpath.png ${D}${datadir}/pixmaps +} + +do_stage() { + install -d ${STAGING_DATADIR}/midpath + install -m 0644 dist/${JAR} ${STAGING_DATADIR}/midpath + install -m 0644 dist/microbackend.jar ${STAGING_DATADIR}/midpath + install -m 0644 dist/avetanabt-cldc.jar ${STAGING_DATADIR}/midpath + install -m 0644 dist/jorbis-cldc.jar ${STAGING_DATADIR}/midpath + install -m 0644 dist/jlayerme-cldc.jar ${STAGING_DATADIR}/midpath +} + +PACKAGES = "${PN}-bluetooth ${PN}-bluetooth-jni ${PN}-bluetooth-jni-dbg ${PN}-mp3 ${PN}-ogg ${PN}" +RDEPENDS_${PN}-bluetooth = "${PN}-bluetooth-jni" + +FILES_${PN}-bluetooth = "${datadir}/midpath/avetanabt-cldc.jar" +FILES_${PN}-bluetooth-jni = "${libdir_jni}/lib*.so" +FILES_${PN}-bluetooth-jni-dbg = "${libdir_jni}/.debug/lib*.so" +FILES_${PN}-mp3 = "${datadir}/midpath/jlayerme-cldc.jar" +FILES_${PN}-ogg = "${datadir}/midpath/jorbis-cldc.jar" + +FILES_${PN} = "\ + ${datadir}/midpath/*.jar \ + ${datadir}/applications \ + ${datadir}/pixmaps \ + ${bindir} \ + " + diff --git a/recipes/midpath/midpath-demos_0.2+0.3rc2.bb b/recipes/midpath/midpath-demos_0.2+0.3rc2.bb new file mode 100644 index 0000000000..ebf260d7fe --- /dev/null +++ b/recipes/midpath/midpath-demos_0.2+0.3rc2.bb @@ -0,0 +1,53 @@ +require midpath-common.inc + +PR = "r0" + +SRC_URI = "${SOURCEFORGE_MIRROR}/midpath/midpath-0.3rc2.tar.gz" + +S = "${WORKDIR}/midpath-0.3rc2" + +DEPENDS = "midpath-core midpath-location midpath-messaging midpath-svg midpath-opengles midpath-m3g" +RDEPENDS = "midpath midpath-location midpath-messaging midpath-svg-midp midpath-opengles midpath-m3g" + +DESCRIPTION = "Demonstration programs of the MIDPath library" + +JAR = "midpath-demos.jar" + +do_compile() { + # Only Demos enabled. + midpath_build \ + --disable-midpath \ + --disable-cldc \ + --disable-sdljava-cldc \ + --disable-escher-cldc \ + --disable-jlayerme-cldc \ + --disable-jorbis-cldc \ + --disable-avetanabt-cldc \ + --disable-jgl-cldc \ + --disable-web_services-api \ + --disable-messaging-api \ + --disable-svg-api \ + --disable-opengl-api \ + --disable-m3g-api \ + --with-location-jar=${STAGING_DATADIR}/midpath/jsr179-location.jar \ + --with-messaging-jar=${STAGING_DATADIR}/midpath/jsr205-messaging.jar \ + --with-svg-core-jar=${STAGING_DATADIR}/midpath/jsr226-svg-core.jar \ + --with-opengles-core-jar=${STAGING_DATADIR}/midpath/jsr239-opengles-core.jar \ + --with-opengles-nio-jar=${STAGING_DATADIR}/midpath/jsr239-opengles-nio.jar \ + --with-m3g-jar=${STAGING_DATADIR}/midpath/jsr184-m3g.jar \ + --with-avetanabt-cldc-jar=${STAGING_DATADIR}/midpath/avetanabt-cldc.jar +} + +do_install() { + install -d ${D}${datadir}/midpath/repository + install -m 0644 dist/${JAR} ${D}${datadir}/midpath/repository +} + +do_stage() { + install -d ${STAGING_DATADIR}/midpath/repository + install -m 0644 dist/${JAR} ${STAGING_DATADIR}/midpath/repository +} + +PACKAGES = "${PN}" + +FILES_${PN} = "${datadir}/midpath/repository/${JAR}" diff --git a/recipes/midpath/midpath-jgl_0.2+0.3rc2.bb b/recipes/midpath/midpath-jgl_0.2+0.3rc2.bb new file mode 100644 index 0000000000..c969452c5c --- /dev/null +++ b/recipes/midpath/midpath-jgl_0.2+0.3rc2.bb @@ -0,0 +1,46 @@ +require midpath-common.inc + +PR = "r0" + +SRC_URI = "${SOURCEFORGE_MIRROR}/midpath/midpath-0.3rc2.tar.gz" + +S = "${WORKDIR}/midpath-0.3rc2" + +DEPENDS += "midpath-core" + +DESCRIPTION = "JGL CLDC API for use in the MIDPath library" + +JAR = "jgl-cldc.jar" + +do_compile() { + # Only JGL CLDC is enabled. + midpath_build \ + --disable-midpath \ + --disable-cldc \ + --disable-sdljava-cldc \ + --disable-escher-cldc \ + --disable-jlayerme-cldc \ + --disable-jorbis-cldc \ + --disable-avetanabt-cldc \ + --disable-web_services-api \ + --disable-location-api \ + --disable-messaging-api \ + --disable-svg-api \ + --disable-opengl-api \ + --disable-m3g-api \ + --disable-demos +} + +do_install() { + install -d ${D}${datadir}/midpath + install -m 0644 dist/${JAR} ${D}${datadir}/midpath +} + +do_stage() { + install -d ${STAGING_DATADIR}/midpath + install -m 0644 dist/${JAR} ${STAGING_DATADIR}/midpath +} + +PACKAGES = "${PN}" + +FILES_${PN} = "${datadir}/midpath/${JAR}" diff --git a/recipes/midpath/midpath-location_0.2+0.3rc2.bb b/recipes/midpath/midpath-location_0.2+0.3rc2.bb new file mode 100644 index 0000000000..54d1ea7907 --- /dev/null +++ b/recipes/midpath/midpath-location_0.2+0.3rc2.bb @@ -0,0 +1,45 @@ +require midpath-common.inc + +PR = "r0" + +SRC_URI = "${SOURCEFORGE_MIRROR}/midpath/midpath-0.3rc2.tar.gz" + +S = "${WORKDIR}/midpath-0.3rc2" + +DESCRIPTION = "Implementation of the JSR179 Location API for use in the MIDPath library" + +JAR = "jsr179-location.jar" + +do_compile() { + # Only location API is enabled. + midpath_build \ + --disable-midpath \ + --disable-cldc \ + --disable-sdljava-cldc \ + --disable-escher-cldc \ + --disable-jlayerme-cldc \ + --disable-jorbis-cldc \ + --disable-avetanabt-cldc \ + --disable-jgl-cldc \ + --disable-web_services-api \ + --disable-messaging-api \ + --disable-svg-api \ + --disable-opengl-api \ + --disable-m3g-api \ + --disable-demos \ + --with-avetanabt-cldc-jar=${STAGING_DATADIR}/midpath/avetanabt-cldc.jar +} + +do_install() { + install -d ${D}${datadir}/midpath + install -m 0644 dist/${JAR} ${D}${datadir}/midpath +} + +do_stage() { + install -d ${STAGING_DATADIR}/midpath + install -m 0644 dist/${JAR} ${STAGING_DATADIR}/midpath +} + +PACKAGES = "${PN}" + +FILES_${PN} = "${datadir}/midpath/${JAR}" diff --git a/recipes/midpath/midpath-m3g_0.2+0.3rc2.bb b/recipes/midpath/midpath-m3g_0.2+0.3rc2.bb new file mode 100644 index 0000000000..0d618021e1 --- /dev/null +++ b/recipes/midpath/midpath-m3g_0.2+0.3rc2.bb @@ -0,0 +1,48 @@ +require midpath-common.inc + +PR = "r0" + +SRC_URI = "${SOURCEFORGE_MIRROR}/midpath/midpath-0.3rc2.tar.gz" + +S = "${WORKDIR}/midpath-0.3rc2" + +DEPENDS += "midpath-core midpath-opengles" + +DESCRIPTION = "Implementation of the JSR184 Mobile 3D Graphics API for use in the MIDPath library" + +JAR = "jsr184-m3g.jar" + +do_compile() { + # Only M3G API is enabled. + midpath_build \ + --disable-midpath \ + --disable-cldc \ + --disable-sdljava-cldc \ + --disable-escher-cldc \ + --disable-jlayerme-cldc \ + --disable-jorbis-cldc \ + --disable-avetanabt-cldc \ + --disable-jgl-cldc \ + --disable-web_services-api \ + --disable-location-api \ + --disable-messaging-api \ + --disable-svg-api \ + --disable-opengl-api \ + --disable-demos \ + --with-opengles-core-jar=${STAGING_DATADIR}/midpath/jsr239-opengles-core.jar \ + --with-opengles-nio-jar=${STAGING_DATADIR}/midpath/jsr239-opengles-nio.jar +} + +do_install() { + install -d ${D}${datadir}/midpath + install -m 0644 dist/${JAR} ${D}${datadir}/midpath +} + +do_stage() { + install -d ${STAGING_DATADIR}/midpath + install -m 0644 dist/${JAR} ${STAGING_DATADIR}/midpath +} + +PACKAGES = "${PN}" + +FILES_${PN} = "${datadir}/midpath/${JAR}" diff --git a/recipes/midpath/midpath-maemo_0.2+0.3rc2.bb b/recipes/midpath/midpath-maemo_0.2+0.3rc2.bb new file mode 100644 index 0000000000..35a97c7e6d --- /dev/null +++ b/recipes/midpath/midpath-maemo_0.2+0.3rc2.bb @@ -0,0 +1,18 @@ +require midpath.inc + +PR = "r0" + +# The patch fixes the system_properties file only deployed in this recipe. +SRC_URI = "\ + ${SOURCEFORGE_MIRROR}/midpath/midpath-0.3rc2.tar.gz \ + " + +S = "${WORKDIR}/midpath-0.3rc2" + +PR = "r0" + +SRC_URI += "file://configuration_maemo.cfg" + +RDEPENDS += "java2-runtime libswt3.4-gtk-java midpath-core-bluetooth" + +CONFIGURATION = "configuration_maemo.cfg" diff --git a/recipes/midpath/midpath-messaging_0.2+0.3rc2.bb b/recipes/midpath/midpath-messaging_0.2+0.3rc2.bb new file mode 100644 index 0000000000..880b948b24 --- /dev/null +++ b/recipes/midpath/midpath-messaging_0.2+0.3rc2.bb @@ -0,0 +1,46 @@ +require midpath-common.inc + +PR = "r0" + +SRC_URI = "${SOURCEFORGE_MIRROR}/midpath/midpath-0.3rc2.tar.gz" + +S = "${WORKDIR}/midpath-0.3rc2" + +DEPENDS += "midpath-core" + +DESCRIPTION = "Implementation of the JSR205 Wireless Messaging API for use in the MIDPath library" + +JAR = "jsr205-messaging.jar" + +do_compile() { + # Only location API is enabled. + midpath_build \ + --disable-midpath \ + --disable-cldc \ + --disable-sdljava-cldc \ + --disable-escher-cldc \ + --disable-jlayerme-cldc \ + --disable-jorbis-cldc \ + --disable-avetanabt-cldc \ + --disable-jgl-cldc \ + --disable-web_services-api \ + --disable-location-api \ + --disable-svg-api \ + --disable-opengl-api \ + --disable-m3g-api \ + --disable-demos +} + +do_install() { + install -d ${D}${datadir}/midpath + install -m 0644 dist/${JAR} ${D}${datadir}/midpath +} + +do_stage() { + install -d ${STAGING_DATADIR}/midpath + install -m 0644 dist/${JAR} ${STAGING_DATADIR}/midpath +} + +PACKAGES = "${PN}" + +FILES_${PN} = "${datadir}/midpath/${JAR}" diff --git a/recipes/midpath/midpath-opengles_0.2+0.3rc2.bb b/recipes/midpath/midpath-opengles_0.2+0.3rc2.bb new file mode 100644 index 0000000000..fbfe719b57 --- /dev/null +++ b/recipes/midpath/midpath-opengles_0.2+0.3rc2.bb @@ -0,0 +1,56 @@ +require midpath-common.inc + +PR = "r0" + +SRC_URI = "${SOURCEFORGE_MIRROR}/midpath/midpath-0.3rc2.tar.gz" + +S = "${WORKDIR}/midpath-0.3rc2" + +DEPENDS += "midpath-core midpath-jgl" +RDEPENDS_${PN} = "midpath-core midpath-jgl ${PN}-core ${PN}-nio" + +DESCRIPTION = "Implementation of the JSR239 OpenGL ES API for use in the MIDPath library" + +JAR = "jsr239-opengles-jgl.jar" +JAR2 = "jsr239-opengles-core.jar" +JAR3 = "jsr239-opengles-nio.jar" + +do_compile() { + # Only OpenGL ES API is enabled. + midpath_build \ + --disable-midpath \ + --disable-cldc \ + --disable-sdljava-cldc \ + --disable-escher-cldc \ + --disable-jlayerme-cldc \ + --disable-jorbis-cldc \ + --disable-jgl-cldc \ + --disable-avetanabt-cldc \ + --disable-web_services-api \ + --disable-location-api \ + --disable-messaging-api \ + --disable-svg-api \ + --disable-m3g-api \ + --disable-demos \ + --with-jgl-cldc-jar=${STAGING_DATADIR}/midpath/jgl-cldc.jar +} + +do_install() { + install -d ${D}${datadir}/midpath + install -m 0644 dist/${JAR} ${D}${datadir}/midpath + install -m 0644 dist/${JAR2} ${D}${datadir}/midpath + install -m 0644 dist/${JAR3} ${D}${datadir}/midpath +} + +do_stage() { + install -d ${STAGING_DATADIR}/midpath + install -m 0644 dist/${JAR} ${STAGING_DATADIR}/midpath + install -m 0644 dist/${JAR2} ${STAGING_DATADIR}/midpath + install -m 0644 dist/${JAR3} ${STAGING_DATADIR}/midpath +} + +PACKAGES = "${PN} ${PN}-core ${PN}-nio" + +FILES_${PN} = "${datadir}/midpath/${JAR}" +FILES_${PN}-core = "${datadir}/midpath/${JAR2}" +FILES_${PN}-nio = "${datadir}/midpath/${JAR3}" diff --git a/recipes/midpath/midpath-openmoko_0.2+0.3rc2.bb b/recipes/midpath/midpath-openmoko_0.2+0.3rc2.bb new file mode 100644 index 0000000000..b64cb455dd --- /dev/null +++ b/recipes/midpath/midpath-openmoko_0.2+0.3rc2.bb @@ -0,0 +1,18 @@ +require midpath.inc + +PR = "r0" + +# The patch fixes the system_properties file only deployed in this recipe. +SRC_URI = "\ + ${SOURCEFORGE_MIRROR}/midpath/midpath-0.3rc2.tar.gz \ + " + +S = "${WORKDIR}/midpath-0.3rc2" + +PR = "r0" + +SRC_URI += "file://configuration_openmoko.cfg" + +RDEPENDS += "java2-runtime midpath-backend-alsa libswt3.4-gtk-java midpath-core-bluetooth" + +CONFIGURATION = "configuration_openmoko.cfg" diff --git a/recipes/midpath/midpath-svg_0.2+0.3rc2.bb b/recipes/midpath/midpath-svg_0.2+0.3rc2.bb new file mode 100644 index 0000000000..7f332ff30f --- /dev/null +++ b/recipes/midpath/midpath-svg_0.2+0.3rc2.bb @@ -0,0 +1,60 @@ +require midpath-common.inc + +PR = "r0" + +SRC_URI = "${SOURCEFORGE_MIRROR}/midpath/midpath-0.3rc2.tar.gz" + +S = "${WORKDIR}/midpath-0.3rc2" + +DEPENDS += "midpath-core midpath-webservices" +RDEPENDS_${PN}-midp = "${PN}" +RDEPENDS_${PN}-awt = "${PN}" + +DESCRIPTION = "Implementation of the JSR226 SVG API for use in the MIDPath library" + +JAR = "jsr226-svg-core.jar" +JAR2 = "jsr226-svg-midp2.jar" +JAR3 = "jsr226-svg-core.jar" + +do_compile() { + # Only SVG API is enabled. + midpath_build \ + --disable-midpath \ + --disable-cldc \ + --disable-sdljava-cldc \ + --disable-escher-cldc \ + --disable-jlayerme-cldc \ + --disable-jorbis-cldc \ + --disable-avetanabt-cldc \ + --disable-jgl-cldc \ + --disable-web_services-api \ + --disable-location-api \ + --disable-messaging-api \ + --disable-opengl-api \ + --disable-m3g-api \ + --disable-demos \ + --enable-svg-api-awt \ + --with-jaxp-jar=${STAGING_DATADIR}/midpath/jsr172-jaxp.jar +} + +do_install() { + install -d ${D}${datadir}/midpath + install -m 0644 dist/${JAR} ${D}${datadir}/midpath + install -m 0644 dist/${JAR2} ${D}${datadir}/midpath + install -m 0644 dist/${JAR3} ${D}${datadir}/midpath +} + +do_stage() { + install -d ${STAGING_DATADIR}/midpath + install -m 0644 dist/${JAR} ${STAGING_DATADIR}/midpath + install -m 0644 dist/${JAR2} ${STAGING_DATADIR}/midpath + install -m 0644 dist/${JAR3} ${STAGING_DATADIR}/midpath +} + +PACKAGES = "${PN} ${PN}-midp ${PN}-awt" + +FILES_${PN} = "${datadir}/midpath/${JAR}" + +FILES_${PN}-midp = "${datadir}/midpath/${JAR2}" + +FILES_${PN}-awt = "${datadir}/midpath/${JAR3}" diff --git a/recipes/midpath/midpath-webservices_0.2+0.3rc2.bb b/recipes/midpath/midpath-webservices_0.2+0.3rc2.bb new file mode 100644 index 0000000000..bc221286f0 --- /dev/null +++ b/recipes/midpath/midpath-webservices_0.2+0.3rc2.bb @@ -0,0 +1,51 @@ +require midpath-common.inc + +PR = "r0" + +SRC_URI = "${SOURCEFORGE_MIRROR}/midpath/midpath-0.3rc2.tar.gz" + +S = "${WORKDIR}/midpath-0.3rc2" + +DEPENDS += "midpath-core" +RSUGGESTS_${PN} = "${PN}-jaxp" + +DESCRIPTION = "Implementation of the JSR172 J2ME Web Services API for use in the MIDPath library" + +JAR = "jsr172-jaxp.jar" +JAR2 = "jsr172-jaxrpc.jar" + +do_compile() { + # Only web services API is enabled. + midpath_build \ + --disable-midpath \ + --disable-cldc \ + --disable-sdljava-cldc \ + --disable-escher-cldc \ + --disable-jlayerme-cldc \ + --disable-jorbis-cldc \ + --disable-avetanabt-cldc \ + --disable-jgl-cldc \ + --disable-location-api \ + --disable-messaging-api \ + --disable-svg-api \ + --disable-opengl-api \ + --disable-m3g-api \ + --disable-demos +} + +do_install() { + install -d ${D}${datadir}/midpath + install -m 0644 dist/${JAR} ${D}${datadir}/midpath + install -m 0644 dist/${JAR2} ${D}${datadir}/midpath +} + +do_stage() { + install -d ${STAGING_DATADIR}/midpath + install -m 0644 dist/${JAR} ${STAGING_DATADIR}/midpath + install -m 0644 dist/${JAR2} ${STAGING_DATADIR}/midpath +} + +PACKAGES = "${PN} ${PN}-jaxp" + +FILES_${PN}-jaxp = "${datadir}/midpath/${JAR}" +FILES_${PN} = "${datadir}/midpath/${JAR2}" diff --git a/recipes/midpath/midpath.inc b/recipes/midpath/midpath.inc new file mode 100644 index 0000000000..19b4179536 --- /dev/null +++ b/recipes/midpath/midpath.inc @@ -0,0 +1,49 @@ +# This is the include recipe for the midpath recipes for your platform. +# +# To support your particular platform, write a proper configuration, add +# a new recipe and decided which components it should install by modifying +# RDEPENDS. +require midpath-common.inc + +RDEPENDS = "midpath-core midpath-core-bluetooth midpath-core-ogg ${@base_conditional('ENTERPRISE_DISTRO', '1', '', 'midpath-core-mp3', d)}" + +PROVIDES = "midpath" +RPROVIDES = "midpath" + +CONFIGURATION = "${@bb.fatal('Variable CONFIGURATION is not set in your midpath.inc-based recipe.')}" + +do_compile() { + : +} + +do_install() { + # Installation of configuration.cfg: + # Creates a symbolic link at ${datadir}/midpath which points to ${sysconfdir}/midpath + install -d ${D}${datadir}/midpath/configuration/com/sun/midp/configuration + ln -sf ${sysconfdir}/midpath/configuration.cfg ${D}${datadir}/midpath/configuration/com/sun/midp/configuration/configuration.cfg + + # Put the file itself into ${sysconfdir}/midpath + install -d ${D}${sysconfdir}/midpath + install -m 0644 ${WORKDIR}/${CONFIGURATION} ${D}${sysconfdir}/midpath/configuration.cfg + + # Same procedure for MIDP2.0 required system properties + ln -sf ${sysconfdir}/midpath/system_properties ${D}${datadir}/midpath/configuration/com/sun/midp/configuration/system_properties + install -m 0644 configuration/com/sun/midp/configuration/system_properties ${D}${sysconfdir}/midpath + + # Put l10n data into $datadir + install -d ${D}${datadir}/midpath/configuration/com/sun/midp/configuration/l10n + install -m 0644 configuration/com/sun/midp/configuration/l10n/en-US.xml ${D}${datadir}/midpath/configuration/com/sun/midp/configuration/l10n +} + +PACKAGES = "${PN}" + +FILES_${PN} = "\ + ${datadir}/midpath/configuration \ + ${sysconfdir}/midpath \ + " + +CONFFILES_${PN} = "\ + ${sysconfdir}/midpath/system_properties \ + ${sysconfdir}/midpath/configuration.cfg \ + " + |