linux-3.1rc: update to latest SRCREV
[glsdk/meta-ti-glsdk.git] / recipes-bsp / ti / matrix-tui.inc
1 DESCRIPTION = "Matrix TUI"
2 HOMEPAGE = "https://gforge.ti.com/gf/project/matrix_tui/"
3 LICENSE = "BSD"
4 SECTION = "multimedia"
5 PRIORITY = "optional"
6 DEPENDS = "libxml2 zlib ncurses"
8 INC_PR = "r7"
10 COMPATIBLE_MACHINE = "(omapl138|omap3)"
12 SRC_URI = "svn://gforge.ti.com/svn/matrix_tui/;module=trunk;proto=https;user=anonymous;pswd='' \
13         file://init \
14 "
16 S = "${WORKDIR}/trunk"
18 # Do not auto-start TUI by default, uncomment otherwise
19 #inherit update-rc.d
20 #INITSCRIPT_NAME = "matrix-tui"
21 #INITSCRIPT_PARAMS = "defaults 99"
23 do_configure() {
24         sed -i -e 's|LIBS :=|LIBS := ${LDFLAGS} |' Release/objects.mk
25 }
27 do_compile() {
28         # don't build debug version
29         touch debug
30         export CROSS_COMPILE=${TARGET_PREFIX}
31         export TUI_INCLUDE_PATH=${STAGING_INCDIR}
32         export XML_INCLUDE_PATH=${STAGING_INCDIR}/libxml2
33         export TUI_LIB_PATH=${STAGING_LIBDIR}
34         export PLATFORM=${MACHINE}
35         make release
36 }
38 do_install() {
39         export PLATFORM=${MACHINE}
40         make DESTDIR=${D} install
41         install -d ${D}${sysconfdir}/init.d/
42         install -c -m 0755 ${WORKDIR}/init ${D}${sysconfdir}/init.d/matrix-tui
43 }
45 FILES_${PN} += "${datadir}/matrix/*"