summaryrefslogtreecommitdiff
path: root/packages/midpath/midpath-qte_0.1.bb
diff options
context:
space:
mode:
Diffstat (limited to 'packages/midpath/midpath-qte_0.1.bb')
-rw-r--r--packages/midpath/midpath-qte_0.1.bb46
1 files changed, 46 insertions, 0 deletions
diff --git a/packages/midpath/midpath-qte_0.1.bb b/packages/midpath/midpath-qte_0.1.bb
new file mode 100644
index 0000000000..e37825bf57
--- /dev/null
+++ b/packages/midpath/midpath-qte_0.1.bb
@@ -0,0 +1,46 @@
+
+require midpath.inc
+
+DEPENDS += " qte-mt"
+RCONFLICTS = "midpath-qt3x11"
+
+do_configure() {
+
+ cd ${S}/resources-embedded/com/sun/midp/configuration
+ sed -i -e "s|ui.backend:AWT|ui.backend:QT|" configuration.cfg
+
+ cd ${S}/native/qt
+ sed -i -e "s|\-I/usr/include/classpath|\-I${STAGING_INCDIR}/classpath-minimal -DQWS|" \
+ -e "s|\`pkg\-config \-\-cflags qt\-mt\`|\-I${QTDIR}/include/ -DQWS -DQT_THREAD_SUPPORT|" \
+ -e "s|\`pkg\-config \-\-libs qt\-mt\`|\-L${QTDIR}/lib \-lqte-mt -lsupc++|" \
+ Makefile
+}
+
+do_compile() {
+
+mkdir -p ${S}/dist
+
+# Build the QT native part
+cd ${S}/native/qt
+make || exit 1
+
+}
+
+do_install() {
+ install -d ${D}${libdir}
+ install -m 0644 ${S}/native/qt/libmidpathqt.so ${D}${libdir}
+ 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() {
+ :
+}
+
+PACKAGES = "${PN}"
+
+FILES_${PN} = "${libdir}/libmidpathqt.so \
+ ${datadir}/java/resources-embedded/com/sun/midp/configuration/configuration.cfg \
+ "
+
+CONFFILES_${PN} = "${datadir}/java/resources-embedded/com/sun/midp/configuration/configuration.cfg"