diff options
author | Henning Heinold <heinold@inf.fu-berlin.de> | 2007-08-24 21:38:23 +0000 |
---|---|---|
committer | Henning Heinold <heinold@inf.fu-berlin.de> | 2007-08-24 21:38:23 +0000 |
commit | 9e9e2859d9f8876ad5b37f94f33c768d2164d81d (patch) | |
tree | f44880c62f2b4244a306b74943e6c0ebf98e58a3 /packages/midpath/midpath-cldc-sdl_0.1.bb | |
parent | 8c53ce6b232e7bca264d3eae91ae6e2f94a68e55 (diff) |
midpath: major rework of midpath
* new releas 0.1
* introduce midpath.inc
* split midpath-cldc and midpath-cldc-sdl from midpath
* seperate out kxml2 from midpath
* split midpath-test from midpath
* change jar-installdir to /usr/share/java
Diffstat (limited to 'packages/midpath/midpath-cldc-sdl_0.1.bb')
-rw-r--r-- | packages/midpath/midpath-cldc-sdl_0.1.bb | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/packages/midpath/midpath-cldc-sdl_0.1.bb b/packages/midpath/midpath-cldc-sdl_0.1.bb new file mode 100644 index 0000000000..d00cbfc619 --- /dev/null +++ b/packages/midpath/midpath-cldc-sdl_0.1.bb @@ -0,0 +1,43 @@ + +require midpath.inc + +do_configure() { + + cd ${S}/resources-embedded/com/sun/midp/configuration + sed -i -e "s|ui.backend:AWT|ui.backend:SDL|" \ + -e "s|bitsPerPixel:32|bitsPerPixel:16|" \ + configuration.cfg + +} + + +do_compile() { + +mkdir -p ${S}/dist + +# Build SDLJava for CLDC +cd ${S}/external/sdljava-cldc +make JAVAC=${JAVAC_CMD} JAVAC_FLAGS="-bootclasspath ${CLDC_PATH}:${GNU_CLASSPATH_PATH} -sourcepath ${S}/external/sdljava-cldc -source 1.3 -target 1.1" || exit 1 +make jar JAVAC=${JAVAC_CMD} JAVAC_FLAGS="-bootclasspath ${CLDC_PATH}:${GNU_CLASSPATH_PATH} -source 1.3 -target 1.1" JAR_FILE="sdljava-cldc.jar" JAR_FLAGS="cvf" || exit 1 + +} + +do_install() { + install -d ${D}${datadir}/java + install -m 0644 ${S}/external/sdljava-cldc/sdljava-cldc.jar ${D}${datadir}/java + install -d ${D}${datadir}/java/resources-embedded/com/sun/midp/configuration + install -m 0644 resources-embedded/com/sun/midp/configuration/configuration.cfg ${D}${datadir}/java/resources-embedded/com/sun/midp/configuration/ +} + +do_stage() { + install -d ${STAGING_DATADIR}/java + install -m 0644 ${S}/external/sdljava-cldc/sdljava-cldc.jar ${STAGING_DATADIR}/java +} + +PACKAGES = "${PN}" + +FILES_${PN} = "${datadir}/java/sdljava-cldc.jar \ + ${datadir}/java/resources-embedded/com/sun/midp/configuration/configuration.cfg \ + " + +CONFFILES_${PN} = "${datadir}/java/resources-embedded/com/sun/midp/configuration/configuration.cfg" |