midpath-openmoko: Use alsa backend.
+++ /dev/null
-Index: configuration/com/sun/midp/configuration/system_properties
-===================================================================
---- configuration/com/sun/midp/configuration/system_properties (Revision 290)
-+++ configuration/com/sun/midp/configuration/system_properties (Revision 291)
-@@ -1,47 +1,47 @@
- javax.microedition.io.Connector.protocolpath=com.sun.midp.io
--microedition.profiles=MIDP-2.0
--microedition.configuration=CLDC-1.1
--microedition.locale=en-US
-+microedition.profiles=MIDP-2.0
-+microedition.configuration=CLDC-1.1
-+microedition.locale=en-US
- microedition.platform=j2me
--microedition.encoding=ISO8859_1
--microedition.hostname=localhost
-+microedition.encoding=ISO8859_1
-+microedition.hostname=localhost
- microedition.commports=
--microedition.jtwi.version=1.0
--microedition.media.version=1.1
--supports.mixing=true
--supports.audio.capture=false
--supports.video.capture=false
--supports.recording=false
-+microedition.jtwi.version=1.0
-+microedition.media.version=1.1
-+supports.mixing=true
-+supports.audio.capture=false
-+supports.video.capture=false
-+supports.recording=false
- audio.encodings=encoding=audio/wav encoding=audio/x-wav encoding=pcm encoding=audio/mp3 encoding=audio/ogg
- video.snapshot.encodings=encoding=png encoding=image/png
- video.encodings=
--streamable.contents=encoding=audio/wav encoding=audio/x-wav encoding=pcm encoding=audio/mp3 encoding=audio/ogg
--microedition.io.file.FileConnection.version=1.0
--Bluetooth.api.version=1.1
--obex.api.version=1.1
--bluetooth.l2cap.receiveMTU.max=1024
--bluetooth.master.switch=true
--bluetooth.connected.devices.max=6
--bluetooth.sd.trans.max=8
--bluetooth.sd.attr.retrievable.max=16
--bluetooth.connected.inquiry=true
--bluetooth.connected.inquiry.scan=true
--bluetooth.connected.page=true
--bluetooth.connected.page.scan=true
--microedition.m3g.version=1.1
--microedition.location.version=1.1
--microedition.m2g.version=1.1
--microedition.m2g.svg.version=1.1
--microedition.m2g.svg.baseProfile=tiny
--xml.jaxp.subset.version=1.0
--xml.rpc.subset.version=1.0
--wireless.messaging.version=2.0
--wireless.messaging.sms.smsc=+17815511212
--wireless.messaging.mms.mmsc=+17815511212
-+streamable.contents=encoding=audio/wav encoding=audio/x-wav encoding=pcm encoding=audio/mp3 encoding=audio/ogg
-+microedition.io.file.FileConnection.version=1.0
-+Bluetooth.api.version=1.1
-+obex.api.version=1.1
-+bluetooth.l2cap.receiveMTU.max=1024
-+bluetooth.master.switch=true
-+bluetooth.connected.devices.max=6
-+bluetooth.sd.trans.max=8
-+bluetooth.sd.attr.retrievable.max=16
-+bluetooth.connected.inquiry=true
-+bluetooth.connected.inquiry.scan=true
-+bluetooth.connected.page=true
-+bluetooth.connected.page.scan=true
-+microedition.m3g.version=1.1
-+microedition.location.version=1.1
-+microedition.m2g.version=1.1
-+microedition.m2g.svg.version=1.1
-+microedition.m2g.svg.baseProfile=tiny
-+xml.jaxp.subset.version=1.0
-+xml.rpc.subset.version=1.0
-+wireless.messaging.version=2.0
-+wireless.messaging.sms.smsc=+17815511212
-+wireless.messaging.mms.mmsc=+17815511212
-
- # microedition.pim.version=
- # microedition.global.version=
--# microedition.sip.version=1.0.1
-+# microedition.sip.version=1.0.1
- #
- # com.sun.midp.io.http.proxy=
- # com.sun.midp.io.http.force_non_persistent=
# 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: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
#!/bin/sh
if [ ! $LAUNCHER_CLASS ]; then
- LAUNCHER_CLASS=org.thenesis.midpath.main.MIDletLauncher
+ 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
JLP=/usr/lib/jni
# Set the classpath
-CP=\
+CP=$CP:\
$MIDPATH_HOME/configuration:\
$MIDPATH_HOME/midpath.jar:\
$MIDPATH_HOME/microbackend.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:\
CP=$CP:$CLASSPATH
fi
-# Add the MIDlet jar to the classpath (must be loaded by the main classloader)
-CP=$CP:$MIDPATH_HOME/repository/midpath-demos.jar
-
-$JAVA -cp $CP -Djava.library.path=$JLP $LAUNCHER_CLASS "$@"
+$JAVA -cp $CP -Djava.library.path=$JLP $LAUNCHER_CLASS $ARGS
PR = "r0"
-SRC_URI = "${SOURCEFORGE_MIRROR}/midpath/midpath-0.3rc1.tar.gz"
+SRC_URI = "${SOURCEFORGE_MIRROR}/midpath/midpath-0.3rc2.tar.gz"
-S = "${WORKDIR}/midpath-0.3rc1"
+S = "${WORKDIR}/midpath-0.3rc2"
DEPENDS = "classpath linux-libc-headers"
PR = "r0"
-SRC_URI = "${SOURCEFORGE_MIRROR}/midpath/midpath-0.3rc1.tar.gz"
+SRC_URI = "${SOURCEFORGE_MIRROR}/midpath/midpath-0.3rc2.tar.gz"
-S = "${WORKDIR}/midpath-0.3rc1"
+S = "${WORKDIR}/midpath-0.3rc2"
DEPENDS += "midpath-cldc"
PR = "r0"
-SRC_URI = "${SOURCEFORGE_MIRROR}/midpath/midpath-0.3rc1.tar.gz"
+SRC_URI = "${SOURCEFORGE_MIRROR}/midpath/midpath-0.3rc2.tar.gz"
-S = "${WORKDIR}/midpath-0.3rc1"
+S = "${WORKDIR}/midpath-0.3rc2"
DEPENDS = "classpath esound"
PR = "r0"
-SRC_URI = "${SOURCEFORGE_MIRROR}/midpath/midpath-0.3rc1.tar.gz"
+SRC_URI = "${SOURCEFORGE_MIRROR}/midpath/midpath-0.3rc2.tar.gz"
-S = "${WORKDIR}/midpath-0.3rc1"
+S = "${WORKDIR}/midpath-0.3rc2"
DEPENDS = "classpath linux-libc-headers"
PR = "r0"
-SRC_URI = "${SOURCEFORGE_MIRROR}/midpath/midpath-0.3rc1.tar.gz"
+SRC_URI = "${SOURCEFORGE_MIRROR}/midpath/midpath-0.3rc2.tar.gz"
-S = "${WORKDIR}/midpath-0.3rc1"
+S = "${WORKDIR}/midpath-0.3rc2"
PROVIDES = "midpath-backend-gtk"
PR = "r0"
-SRC_URI = "${SOURCEFORGE_MIRROR}/midpath/midpath-0.3rc1.tar.gz"
+SRC_URI = "${SOURCEFORGE_MIRROR}/midpath/midpath-0.3rc2.tar.gz"
-S = "${WORKDIR}/midpath-0.3rc1"
+S = "${WORKDIR}/midpath-0.3rc2"
DEPENDS = "classpath gtk+"
PR = "r0"
-SRC_URI = "${SOURCEFORGE_MIRROR}/midpath/midpath-0.3rc1.tar.gz"
+SRC_URI = "${SOURCEFORGE_MIRROR}/midpath/midpath-0.3rc2.tar.gz"
-S = "${WORKDIR}/midpath-0.3rc1"
+S = "${WORKDIR}/midpath-0.3rc2"
DEPENDS = "classpath pulseaudio"
PR = "r0"
-SRC_URI = "${SOURCEFORGE_MIRROR}/midpath/midpath-0.3rc1.tar.gz"
+SRC_URI = "${SOURCEFORGE_MIRROR}/midpath/midpath-0.3rc2.tar.gz"
-S = "${WORKDIR}/midpath-0.3rc1"
+S = "${WORKDIR}/midpath-0.3rc2"
DEPENDS = "classpath qte-mt"
RCONFLICTS = "midpath-backend-qte"
PR = "r0"
-SRC_URI = "${SOURCEFORGE_MIRROR}/midpath/midpath-0.3rc1.tar.gz"
+SRC_URI = "${SOURCEFORGE_MIRROR}/midpath/midpath-0.3rc2.tar.gz"
-S = "${WORKDIR}/midpath-0.3rc1"
+S = "${WORKDIR}/midpath-0.3rc2"
DEPENDS = "classpath qte-mt"
PR = "r0"
-SRC_URI = "${SOURCEFORGE_MIRROR}/midpath/midpath-0.3rc1.tar.gz"
+SRC_URI = "${SOURCEFORGE_MIRROR}/midpath/midpath-0.3rc2.tar.gz"
-S = "${WORKDIR}/midpath-0.3rc1"
+S = "${WORKDIR}/midpath-0.3rc2"
DEPENDS = "classpath qte-mt"
RCONFLICTS = "midpath-backend-qt3"
PR = "r0"
-SRC_URI = "${SOURCEFORGE_MIRROR}/midpath/midpath-0.3rc1.tar.gz"
+SRC_URI = "${SOURCEFORGE_MIRROR}/midpath/midpath-0.3rc2.tar.gz"
-S = "${WORKDIR}/midpath-0.3rc1"
+S = "${WORKDIR}/midpath-0.3rc2"
DEPENDS += "midpath-cldc virtual/libsdl libsdl-mixer libsdl-ttf libsdl-image libsdl-gfx"
PR = "r0"
-SRC_URI = "${SOURCEFORGE_MIRROR}/midpath/midpath-0.3rc1.tar.gz"
+SRC_URI = "${SOURCEFORGE_MIRROR}/midpath/midpath-0.3rc2.tar.gz"
-S = "${WORKDIR}/midpath-0.3rc1"
+S = "${WORKDIR}/midpath-0.3rc2"
DESCRIPTION = "Implementation of the CLDC profile for use in the MIDPath library"
RPROVIDES = "midpath-cldc java-cldc1.1"
PR = "r0"
-SRC_URI = "${SOURCEFORGE_MIRROR}/midpath/midpath-0.3rc1.tar.gz"
+SRC_URI = "${SOURCEFORGE_MIRROR}/midpath/midpath-0.3rc2.tar.gz"
-S = "${WORKDIR}/midpath-0.3rc1"
+S = "${WORKDIR}/midpath-0.3rc2"
require midpath-common.inc
PR = "r0"
-SRC_URI = "${SOURCEFORGE_MIRROR}/midpath/midpath-0.3rc1.tar.gz"
+SRC_URI = "${SOURCEFORGE_MIRROR}/midpath/midpath-0.3rc2.tar.gz"
-S = "${WORKDIR}/midpath-0.3rc1"
+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"
PR = "r0"
-SRC_URI = "${SOURCEFORGE_MIRROR}/midpath/midpath-0.3rc1.tar.gz"
+SRC_URI = "${SOURCEFORGE_MIRROR}/midpath/midpath-0.3rc2.tar.gz"
-S = "${WORKDIR}/midpath-0.3rc1"
+S = "${WORKDIR}/midpath-0.3rc2"
DEPENDS += "midpath-core"
PR = "r0"
-SRC_URI = "${SOURCEFORGE_MIRROR}/midpath/midpath-0.3rc1.tar.gz"
+SRC_URI = "${SOURCEFORGE_MIRROR}/midpath/midpath-0.3rc2.tar.gz"
-S = "${WORKDIR}/midpath-0.3rc1"
+S = "${WORKDIR}/midpath-0.3rc2"
DESCRIPTION = "Implementation of the JSR179 Location API for use in the MIDPath library"
PR = "r0"
-SRC_URI = "${SOURCEFORGE_MIRROR}/midpath/midpath-0.3rc1.tar.gz"
+SRC_URI = "${SOURCEFORGE_MIRROR}/midpath/midpath-0.3rc2.tar.gz"
-S = "${WORKDIR}/midpath-0.3rc1"
+S = "${WORKDIR}/midpath-0.3rc2"
DEPENDS += "midpath-core midpath-opengles"
# The patch fixes the system_properties file only deployed in this recipe.
SRC_URI = "\
- ${SOURCEFORGE_MIRROR}/midpath/midpath-0.3rc1.tar.gz \
- file://0.2+0.3rc1-fix-crlf.patch;patch=1;pnum=0 \
+ ${SOURCEFORGE_MIRROR}/midpath/midpath-0.3rc2.tar.gz \
"
-S = "${WORKDIR}/midpath-0.3rc1"
+S = "${WORKDIR}/midpath-0.3rc2"
PR = "r0"
PR = "r0"
-SRC_URI = "${SOURCEFORGE_MIRROR}/midpath/midpath-0.3rc1.tar.gz"
+SRC_URI = "${SOURCEFORGE_MIRROR}/midpath/midpath-0.3rc2.tar.gz"
-S = "${WORKDIR}/midpath-0.3rc1"
+S = "${WORKDIR}/midpath-0.3rc2"
DEPENDS += "midpath-core"
PR = "r0"
-SRC_URI = "${SOURCEFORGE_MIRROR}/midpath/midpath-0.3rc1.tar.gz"
+SRC_URI = "${SOURCEFORGE_MIRROR}/midpath/midpath-0.3rc2.tar.gz"
-S = "${WORKDIR}/midpath-0.3rc1"
+S = "${WORKDIR}/midpath-0.3rc2"
DEPENDS += "midpath-core midpath-jgl"
RDEPENDS_${PN} = "midpath-core midpath-jgl ${PN}-core ${PN}-nio"
+++ /dev/null
-require midpath.inc
-
-PR = "r0"
-
-# The patch fixes the system_properties file only deployed in this recipe.
-SRC_URI = "\
- ${SOURCEFORGE_MIRROR}/midpath/midpath-0.3rc1.tar.gz \
- file://0.2+0.3rc1-fix-crlf.patch;patch=1;pnum=0 \
- "
-
-S = "${WORKDIR}/midpath-0.3rc1"
-
-PR = "r0"
-
-SRC_URI += "file://configuration_openmoko.cfg"
-
-RDEPENDS += "java2-runtime midpath-backend-pulseaudio libswt3.4-gtk-java midpath-core-bluetooth"
-
-CONFIGURATION = "configuration_openmoko.cfg"
--- /dev/null
+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"
PR = "r0"
-SRC_URI = "${SOURCEFORGE_MIRROR}/midpath/midpath-0.3rc1.tar.gz"
+SRC_URI = "${SOURCEFORGE_MIRROR}/midpath/midpath-0.3rc2.tar.gz"
-S = "${WORKDIR}/midpath-0.3rc1"
+S = "${WORKDIR}/midpath-0.3rc2"
DEPENDS += "midpath-core midpath-webservices"
RDEPENDS_${PN}-midp = "${PN}"
PR = "r0"
-SRC_URI = "${SOURCEFORGE_MIRROR}/midpath/midpath-0.3rc1.tar.gz"
+SRC_URI = "${SOURCEFORGE_MIRROR}/midpath/midpath-0.3rc2.tar.gz"
-S = "${WORKDIR}/midpath-0.3rc1"
+S = "${WORKDIR}/midpath-0.3rc2"
DEPENDS += "midpath-core"
RSUGGESTS_${PN} = "${PN}-jaxp"
# RDEPENDS.
require midpath-common.inc
-RDEPENDS = "midpath-core midpath-core-bluetooth midpath-core-ogg midpath-core-mp3"
+RDEPENDS = "midpath-core midpath-core-bluetooth midpath-core-ogg ${@base_conditional('ENTERPRISE_DISTRO', '1', '', 'midpath-core-mp3', d)}"
PROVIDES = "midpath"
RPROVIDES = "midpath"