diff options
author | Leon Woestenberg <leon.woestenberg@gmail.com> | 2007-08-25 17:00:30 +0000 |
---|---|---|
committer | Leon Woestenberg <leon.woestenberg@gmail.com> | 2007-08-25 17:00:30 +0000 |
commit | 3cdc3b52b167778be7f2c45b1a885f0af7864f97 (patch) | |
tree | b0e6176e9c836a3cae4f1f835e51156e9e114184 /packages/midpath/midpath-cldc-x11_0.1.bb | |
parent | afba23ee6fd6c6c0262b0b46cace12a9087f3670 (diff) | |
parent | 3ea8eeaef5fced41a090c1230642d51db358a544 (diff) |
merge of '7222928a192dd87d681067dcc74025c3a2ecf986'
and 'c9235531d0eda1ab2165b6651685887b61d57ba1'
Diffstat (limited to 'packages/midpath/midpath-cldc-x11_0.1.bb')
-rw-r--r-- | packages/midpath/midpath-cldc-x11_0.1.bb | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/packages/midpath/midpath-cldc-x11_0.1.bb b/packages/midpath/midpath-cldc-x11_0.1.bb new file mode 100644 index 0000000000..30ca378436 --- /dev/null +++ b/packages/midpath/midpath-cldc-x11_0.1.bb @@ -0,0 +1,40 @@ + +require midpath.inc + +DEPENDS += " virtual/libx11 virtual/cldc-api-1.1" + +do_configure() { + + cd ${S}/resources-embedded/com/sun/midp/configuration + sed -i -e "s|ui.backend:AWT|ui.backend:X11|" configuration.cfg + +} + +do_compile() { + +mkdir -p ${S}/dist + +# Build Escher X11 library +cd ${S}/external/escher-cldc/core +make JAVAC=${JAVAC_CMD} JAVAC_FLAGS="-bootclasspath ${CLDC_PATH} -sourcepath ${S}/external/escher-cldc/core -source 1.3 -target 1.1" || exit 1 +make jar JAVAC=${JAVAC_CMD} JAVAC_FLAGS="-bootclasspath ${CLDC_PATH} -source 1.3 -target 1.1" JAR_FILE="escher-x11-cldc.jar" JAR_FLAGS="cvf" || exit 1 + +} + +do_install() { + install -d ${D}${datadir} + install -m 0644 ${S}/external/escher-cldc/core/escher-x11-cldc.jar ${D}${datadir} + 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/escher-cldc/core/escher-x11-cldc.jar ${STAGING_DATADIR}/java +} + +PACKAGES = "${PN}" + +FILES_${PN} = "${datadir}/java/escher-x11-cldc.jar \ + ${datadir}/java/resources-embedded/com/sun/midp/configuration/configuration.cfg \ + " |