aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-demo-hmi/navigation/navigation_git.bb
blob: 290def058adfea2f9dc1212a1282d2326920aafd (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
LICENSE="GPLv2"
LIC_FILES_CHKSUM="file://LICENSE;md5=3595e9c703a847d990664d2b396a9df0 \
                  file://COPYING;md5=947b2d60ca3872e172034438e9801200"

DEPENDS = " \
          glib-2.0 freetype sqlite3 wayland zlib expat openssl virtual/libgles2 virtual/libgl virtual/egl \
          wayland libdbus-c++ \
          "

RDEPENDS_${PN} = " flite openjtalk "

SRCREV="292c7f5abad2da32a9dc0d0314ba6aa8673fa052"
SRC_URI="git://github.com/AGLExport/gpsnavi.git \
         file://flite.in \
         file://jtalk.in \
         file://config.xml \
"

# To avoid C++ library link failure
SECURITY_CFLAGS = ""

inherit autotools pkgconfig

S = "${WORKDIR}/git"

do_compile_prepend() {
   cp ${WORKDIR}/flite.in ${S}/
   cp ${WORKDIR}/jtalk.in ${S}/
}

do_install_append() {
   mkdir -p ${WORKDIR}/widget
   install -m 0644 ${WORKDIR}/config.xml ${WORKDIR}/widget
   install -m 0755 ${D}/usr/bin/navi ${WORKDIR}/widget
   zip -ju ${WORKDIR}/widget/navigation.wgt ${WORKDIR}/widget/navi ${WORKDIR}/widget/config.xml

   install -d ${D}/usr/AGL/ces2017-demo
   install -m 0644 ${WORKDIR}/widget/navigation.wgt ${D}/usr/AGL/ces2017-demo/
   install -d ${D}/usr/AGL/ces2017-demo

   install -d ${D}/usr/share/mapdata
}

FILES_${PN} += " /usr/AGL/ces2017-demo/navigation.wgt /usr/share/mapdata "