blob: 6983406d07e5416b79a3fe08d3224c28638467d2 (
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"
DEPENDS = "libxml2 zlib ncurses"
INC_PR = "r5"
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
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}
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/*"
|