Qtopia/X11: Install a qtopia.sh into the profile.d to set PATH, QPEDIR and LD_LIBRARY...
authorHolger Freyther <zecke@selfish.org>
Sat, 15 Mar 2008 20:18:24 +0000 (20:18 +0000)
committerHolger Freyther <zecke@selfish.org>
Sat, 15 Mar 2008 20:18:24 +0000 (20:18 +0000)
packages/qtopia-phone/qtopia-phone-x11/qtopia.sh [new file with mode: 0644]
packages/qtopia-phone/qtopia-phone-x11_4.3.1.bb

diff --git a/packages/qtopia-phone/qtopia-phone-x11/qtopia.sh b/packages/qtopia-phone/qtopia-phone-x11/qtopia.sh
new file mode 100644 (file)
index 0000000..823d27d
--- /dev/null
@@ -0,0 +1,4 @@
+#!/bin/sh
+export QPEDIR=/opt/Qtopia
+export PATH=$PATH=$QPEDIR/bin
+export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$QPEDIR/lib
index e4be0e7..89984bf 100644 (file)
@@ -12,12 +12,13 @@ PRIORITY = "optional"
 HOMEPAGE = "http://www.trolltech.com"
 DEPENDS = "glib-2.0 dbus freetype alsa-lib bluez-libs virtual/libx11 fontconfig xft libxext libxrender libxrandr libxcursor libxtst"
 PROVIDES = "qtopia-phone"
-PR = "r2"
+PR = "r4"
 SRCREV = "${AUTOREV}"
 SRC_URI = "git://git.openmoko.org/git/qtopia.git;protocol=git \
            file://device-conf \
            file://qplatformdefs.h \
-           file://Xsession.d/99qtopia"
+           file://Xsession.d/99qtopia \
+           file://qtopia.sh"
 
 S = "${WORKDIR}/git"
 
@@ -116,6 +117,9 @@ do_install() {
    # Install some scripts
    install -d ${D}${bindir}
    install -m 0755 ${S}/bin/qcop-x11-launch ${D}${bindir}
+
+   install -d ${D}${sysconfdir}/profile.d/
+   install -m 0755 ${WORKDIR}/qtopia.sh ${D}${sysconfdir}/profile.d/
 }
 
 FILES_${PN} += "${OE_QT_RPREFIX}/bin ${OE_QT_RPREFIX}/help  \