matrix-gui: Add support for am387x-evm machine
[openembedded.git] / recipes / ti / matrix-gui.inc
blob3dd0e1042f4d47a3b8cfb123a0560dd115c8d0fe
1 DESCRIPTION = "Matrix GUI for Qt X11"
2 HOMEPAGE = "https://gforge.ti.com/gf/project/matrix_gui/"
3 LICENSE = "BSD"
4 SECTION = "multimedia"
5 PRIORITY = "optional"
7 INC_PR = "r21"
9 COMPATIBLE_MACHINE = "(dm365|omapl138|omap3|ti816x|ti814x)"
11 PLATFORM_dm365-evm = "dm365"
12 PLATFORM_dm368-evm = "dm368"
13 PLATFORM_omapl138 = "omapl138"
14 PLATFORM_omap3evm = "omap3530"
15 PLATFORM_dm37x-evm = "dm3730"
16 PLATFORM_am37x-evm = "am3715"
17 PLATFORM_beagleboard = "am3715"
18 PLATFORM_ti816x = "ti816x"
19 PLATFORM_ti814x = "ti814x"
20 PLATFORM_am180x-evm = "am180x"
21 PLATFORM_am181x-evm = "am181x"
22 PLATFORM_am3517-evm = "am3517"
24 SRC_URI = "svn://gforge.ti.com/svn/matrix_gui/;module=trunk;proto=https;user=anonymous;pswd='' "
26 S = "${WORKDIR}/trunk"
28 CXXFLAGS_omapl138_append = " -DPlatform_omapl138 "
29 CXXFLAGS_dm365_append = " -DPlatform_dm365 "
30 PACKAGE_ARCH = ${MACHINE_ARCH}
32 inherit qt4x11
34 do_install() {
35         install -d ${D}/${bindir}
36         install -m 0755 ${S}/matrix_gui ${D}/${bindir}
37         install -d ${D}${sysconfdir}/init.d/
38         install -c -m 0755 ${S}/${PLATFORM}/etc/x11/init ${D}${sysconfdir}/init.d/matrix-gui
39         install -d ${D}/${sysconfdir}/xdg/autostart
40         install -m 0755 ${S}/${PLATFORM}/etc/x11/matrix-gui.desktop ${D}/${sysconfdir}/xdg/autostart
43 FILES_${PN}-autostart = "${sysconfdir}/xdg/autostart/matrix-gui.desktop"
45 #Make autostart package depend on matrix-gui package.  Doesn't make sense
46 #to install the autostart package without the underlying matrix-gui package.
47 RDEPENDS_${PN}-autostart += "${PN}"
48 PACKAGES =+ "${PN}-autostart"
50 RDEPENDS_${PN} += "matrix-gui-common"