summaryrefslogtreecommitdiff
path: root/recipes/ti/matrix-tui_svn.bb
blob: 8331c3037d2c2907e179ca10454aa3b89dfe359c (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
DESCRIPTION = "Matrix TUI"
HOMEPAGE = "https://gforge.ti.com/gf/project/matrix_tui/"
LICENSE = "BSD"
SECTION = "multimedia"
PRIORITY = "optional"

SRCREV = "29"
PV = "1.0"
PR = "r1+svnr${SRCPV}"

INSANE_SKIP_${PN} = "True"

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:PATH=${LINUX_DEVKIT_PATH}/arm-none-linux-gnueabi:PATH ?= ${LINUX_DEVKIT_PATH}/arm-none-linux-gnueabi:' makefile.init
}

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}
	make release
}

do_install() {
	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/*"