summaryrefslogtreecommitdiff
path: root/korganizer/korganizer-embedded_1.7.5.oe
blob: 90be6abd08c6b3bf21fe5390a02f0f32381f86bf (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
46
47
48
49
50
51
52
53
DESCRIPTION= "Korganizer/Pi is a powerful calender and ToDo Tool for Qt/Embedded based Palmtop Environments"
SECTION = "base"
PRIORITY = "optional"
MAINTAINER = "Sebastian Goergen <zeppo@gmx.net>"
LICENSE = "GPL"
RDEPENDS = "lipqpe1"
DEPENDS ="virtual/libc virtual/libqpe libopie1"

SRC_URI = "http://www.pi-sync.net/daunlood/stable/korganizerPi.175.tar.gz"

S = "${WORKDIR}/korganizerPi.175"

inherit palmtop

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

SUBDIRS="microkde libical/src/libical libical/src/libicalss libkcal libkdepim libkabcwrap kalarmd korganizer" 

do_configure_prepend() {
        echo -e "TEMPLATE=subdirs\nSUBDIRS=qtcompat ${SUBDIRS}\n" >all.pro
        for d in ${SUBDIRS}
        do
                mv -f ${d}/`basename ${d}`E.pro ${d}/`basename ${d}`.pro
        done
}

do_install() {
    install -d ${D}/${palmtopdir}/bin \
               ${D}/${palmtopdir}/lib \
               ${D}/${palmtopdir}/apps/1Pim \
               ${D}/${palmtopdir}/pics/korganizer/icons16 \
               ${D}/${palmtopdir}/pics/korganizer/iconsmini \
               ${D}/${palmtopdir}/plugins/applets
    install -m 0644 korganizer/korganizer.desktop ${D}/${palmtopdir}/apps/1Pim/korganizer.desktop
    cd ${S}/pics
    install -m 0644 ${S}/pics/ko*.png ${D}/${palmtopdir}/pics
    install -m 0644 ${S}/pics/*.png ${D}/${palmtopdir}/pics/korganizer
    install -m 0644 ${S}/pics/icons16/*.png ${D}/${palmtopdir}/pics/korganizer/icons16
    install -m 0644 ${S}/pics/iconsmini/*.png ${D}/${palmtopdir}/pics/korganizer/iconsmini

    for f in libmicrokde libmicrokdepim libmicrokabc libmicrokcal libmicroqtcompat
    do
        oe_libinstall -so -C ${STAGING_LIBDIR} $f ${d}/${palmtopdir}/lib
    done

    install -m 0755 ${STAGING_DIR}/${HOST_SYS}/bin/kopi ${D}/${palmtopdir}/bin/kopi

    for f in libkopialarmapplet
    do
        oe_libinstall -so -C ${STAGING_DIR}/${HOST_SYS}/plugins/applets $f ${d}/${palmtopdir}/plugins/applets
    done
}