summaryrefslogtreecommitdiff
path: root/packages/zbedic/libbedic_0.9.6.bb
blob: 05f52ef1f6f786b0e41fb4aa6b0e68118913262f (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
DESCRIPTION = "A dictionary application for Qt/E based Palmtop Environments"
SECTION = "opie/applications"
PRIORITY = "optional"
MAINTAINER = "Marcin Juszkiewicz <openembedded@hrw.one.pl>"
LICENSE = "GPL"
APPTYPE = "binary"
APPDESKTOP = "${WORKDIR}/zbedic/misc"
PR = "r2"

SRC_URI = "${SOURCEFORGE_MIRROR}/bedic/libbedic_${PV}-0.tgz"
S = "${WORKDIR}"

inherit palmtop
# need to override this, because bedic contains exception handling
export OE_QMAKE_CXXFLAGS="-fexceptions -fno-rtti ${CXXFLAGS}"

do_configure() {
	qmake -project && qmake -makefile -t lib -spec ${QMAKESPEC} CONFIG=console CONFIG+=staticlib -after \
        INCLUDEPATH+=../include TARGET=bedic DESTDIR=${STAGING_LIBDIR} \
	HEADERS+=src/file.h SOURCES+=src/file.cpp SOURCES-=tools/xerox.cpp CXXFLAGS+=-fexceptions
}

do_stage() {
    install -d ${STAGING_INCDIR}/libbedic/
    install -m 0644 ${S}/include/*.h ${STAGING_INCDIR}/libbedic/
}