summaryrefslogtreecommitdiff
path: root/recipes/disko/disko_git.bb
blob: a48ec15d398f9fa38529b35e8c5daf68f472b12a (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
DESCRIPTION = "Disko is an application framework, that can be used to develop GUI applications for embedded devices. It is closely connected to the DirectFB"
LICENSE = "GPL"
PV = "1.1.5+gitr${SRCREV}"
PR = "r0"

DEPENDS = "sqlite3 libpng jpeg curl alsa-lib taglib directfb libxml2 virtual/libx11 libsigc++-2.0 hal \
	   libxv libxxf86vm"

SRC_URI = "git://www.diskohq.org/disko.git;protocol=git \
	   file://linkpath.patch;patch=1 \
	   file://pkgconfig.patch;patch=1 \
	  "

SRCREV = "ed1d2905be5ae4fff37c498847c298fa501bbde1"

S = "${WORKDIR}/git"

inherit scons pkgconfig

do_compile() {
	${STAGING_BINDIR_NATIVE}/scons ${PARALLEL_MAKE} graphics=all PREFIX=${prefix} prefix=${prefix} || \
        oefatal "scons build execution failed."
}

#workaround for disko which creates .pc inside install
do_install_append () {

for i in `find ${S}/ ${D}/${libdir}/pkgconfig -name "*.pc" -type f` ; do \
            sed -i -e 's:${D}::g' $i
        done
}

scons_do_stage_append () {
        STAGE_PKG_SEARCHPATH="${S}/ ${@['','${WORKDIR}/staging-pkg/'][bb.data.inherits_class('packaged-staging',d)]}"
        for i in `find ${STAGE_PKG_SEARCHPATH} -name "*.pc" -type f` ; do \
            sed -i -e 's:${STAGING_DIR_HOST}::g' $i
        done
}