summaryrefslogtreecommitdiffstats
path: root/recipes-bsp/ti/matrix-tui.inc
blob: ef89f1fa56b884542ed8605523ecffabafd332ac (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
DESCRIPTION = "Matrix TUI"
HOMEPAGE = "https://gforge.ti.com/gf/project/matrix_tui/"
LICENSE = "BSD"
SECTION = "multimedia"
PRIORITY = "optional"
DEPENDS = "libxml2 zlib ncurses"

INC_PR = "r7"

COMPATIBLE_MACHINE = "(omapl138|omap3)"

SRC_URI = "svn://gforge.ti.com/svn/matrix_tui/;module=trunk;proto=https;user=anonymous;pswd='' \
	file://init \
"

S = "${WORKDIR}/trunk"

# Do not auto-start TUI by default, uncomment otherwise
#inherit update-rc.d
#INITSCRIPT_NAME = "matrix-tui"
#INITSCRIPT_PARAMS = "defaults 99"

do_configure() {
	sed -i -e 's|LIBS :=|LIBS := ${LDFLAGS} |' Release/objects.mk
}

do_compile() {
	# don't build debug version
	touch debug
	export CROSS_COMPILE=${TARGET_PREFIX}
	export TUI_INCLUDE_PATH=${STAGING_INCDIR}
	export XML_INCLUDE_PATH=${STAGING_INCDIR}/libxml2
	export TUI_LIB_PATH=${STAGING_LIBDIR}
	export PLATFORM=${MACHINE}
	make release
}

do_install() {
	export PLATFORM=${MACHINE}
	make DESTDIR=${D} install
	install -d ${D}${sysconfdir}/init.d/
	install -c -m 0755 ${WORKDIR}/init ${D}${sysconfdir}/init.d/matrix-tui
}

FILES_${PN} += "${datadir}/matrix/*"