summaryrefslogtreecommitdiff
path: root/korganizer/korganizer-embedded_1.5.0.oe
blob: daa08aef356d699781d741545ef5cfd1a2fca436 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
DESCRIPTION="KDE Organizer, QtE based Palmtop Environments Edition"
SECTION="base"
PRIORITY="optional"
LICENSE="GPL"
RDEPENDS="libqpe1"
DEPENDS="virtual/libc virtual/libqpe uicmoc-native"

SRC_URI = http://www.pi-sync.net/korgenizerE-1.5.0rc2.tar.gz
S = "${WORKDIR}/korgenizerE-${PV}"

FILES=
FILES_${PN}=/opt/QtPalmtop

QMAKE=${STAGING_BINDIR}/qmake
QMAKESPEC=${QMAKE_MKSPEC_PATH}/qws/${TARGET_OS}-${TARGET_ARCH}-g++

EXTRA_QMAKEVARS_POST = "QMAKE_UIC=${STAGING_BINDIR}/uic QMAKE_MOC=${STAGING_BINDIR}/moc QMAKE_RPATH=-Wl,-rpath-link,"

do_configure() {
        echo -e "TEMPLATE=subdirs\nSUBDIRS=qtcompat microkde libical/src/libical libical/src/libicalss libkcal libkdepim kalarmd korganizer\n" >all.pro
        cd ${S}/qtcompat; ${QMAKE} -spec ${QMAKESPEC} qtcompat.pro -after ${EXTRA_QMAKEVARS_POST} -o Makefile
        cd ${S}/microkde; ${QMAKE} -spec ${QMAKESPEC} microkde.pro -after ${EXTRA_QMAKEVARS_POST} -o Makefile
        cd ${S}/libkcal; ${QMAKE} -spec ${QMAKESPEC} kcal.pro -after ${EXTRA_QMAKEVARS_POST} -o Makefile
        cd ${S}/libkdepim; ${QMAKE} -spec ${QMAKESPEC} kdepim.pro -after ${EXTRA_QMAKEVARS_POST} -o Makefile
        cd ${S}/kalarmd; ${QMAKE} -spec ${QMAKESPEC} kalarmd.pro -after ${EXTRA_QMAKEVARS_POST} -o Makefile
        cd ${S}/korganizer; ${QMAKE} -spec ${QMAKESPEC} korganizer.pro -after ${EXTRA_QMAKEVARS_POST} -o Makefile
        cd ${S}/libical/src/libical; ${QMAKE} -spec ${QMAKESPEC} ical.pro -after ${EXTRA_QMAKEVARS_POST} -o Makefile
        cd ${S}/libical/src/libicalss; ${QMAKE} -spec ${QMAKESPEC} icalss.pro -after ${EXTRA_QMAKEVARS_POST} -o Makefile
        cd ${S}; ${QMAKE} -spec ${QMAKESPEC} all.pro -after ${EXTRA_QMAKEVARS_POST} -o Makefile
}

do_install() {
    install -d ${D}/opt/QtPalmtop/{bin,lib,apps/Pim,pics/korganizer/icons16}
    install -m 0644 korganizer/korganizer.desktop ${D}/opt/QtPalmtop/apps/Pim/korganizer.desktop
    cd ${S}/pics
    cp *.png *.wav ${D}/opt/QtPalmtop/pics/korganizer
    cp ./icons16/*.png ${D}/opt/QtPalmtop/pics/korganizer/icons16
    for f in libmicrokde.so.1.0.0 libkcal.so.1.0.0 libkdepim.so.1.0.0 libqtcompat.so.1.0.0
    do
        oe_soinstall ${STAGING_LIBDIR}/${f} ${D}/opt/QtPalmtop/lib
        rm -f ${STAGING_LIBDIR}/${f}
    done
    install -m 0755 ${STAGING_DIR}/target/bin/korganizer ${D}/opt/QtPalmtop/bin/korganizer
    rm -f ${STAGING_DIR}/target/bin/korganizer
}