TI-BSP: import matrix from OE
[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 PLATFORM_am37x-evm = "am3715"
13 PLATFORM_beagleboard = "am3715"
14 PLATFORM_am3517-evm = "am3517"
15 PLATFORM_am180x-evm = "am180x"
16 PLATFORM_am181x-evm = "am181x"
17 PLATFORM_da850-omapl138-evm = "am180x"
19 SRC_URI = "svn://gforge.ti.com/svn/matrix_tui/;module=trunk;proto=https;user=anonymous;pswd='' \
20         file://init \
21 "
23 S = "${WORKDIR}/trunk"
25 # Do not auto-start TUI by default, uncomment otherwise
26 #inherit update-rc.d
27 #INITSCRIPT_NAME = "matrix-tui"
28 #INITSCRIPT_PARAMS = "defaults 99"
30 do_configure() {
31         sed -i -e 's:PATH=${LINUX_DEVKIT_PATH}/arm-none-linux-gnueabi:PATH ?= ${LINUX_DEVKIT_PATH}/arm-none-linux-gnueabi:' makefile.init
32         sed -i -e 's|LIBS :=|LIBS := ${LDFLAGS} |' Release/objects.mk
33 }
35 do_compile() {
36         # don't build debug version
37         touch debug
38         export CROSS_COMPILE=${TARGET_PREFIX}
39         export TUI_INCLUDE_PATH=${STAGING_INCDIR}
40         export XML_INCLUDE_PATH=${STAGING_INCDIR}/libxml2
41         export TUI_LIB_PATH=${STAGING_LIBDIR}
42         make release
43 }
45 do_install() {
46         export PLATFORM=${PLATFORM}
47         make DESTDIR=${D} install
48         install -d ${D}${sysconfdir}/init.d/
49         install -c -m 0755 ${WORKDIR}/init ${D}${sysconfdir}/init.d/matrix-tui
50 }
52 FILES_${PN} += "${datadir}/matrix/*"