1 DESCRIPTION = "Automotive Message Broker is a vehicle network abstraction system."
2 HOMEPAGE = "http://nohomepage.org"
3 SECTION = "System Environment/Daemons"
11 inherit manifest autotools-brokensep
16 #PROVIDES by ico-vic-amb-plugin
20 #RDEPENDS of ico-vic-amb-plugin (${PN})
21 RDEPENDS_${PN} += "libjson"
22 RDEPENDS_${PN} += "ico-uxf-utilities"
23 RDEPENDS_${PN} += "glibc"
27 #DEPENDS of ico-vic-amb-plugin
28 DEPENDS += "ico-uxf-utilities"
33 DEPENDS += "automotive-message-broker"
34 DEPENDS += "elementary"
39 chmod -Rf a+rX,u+w,g-w,o-w ${S}
40 #setup -q -n ico-vic-amb-plugin-0.9.5
45 bb.build.exec_func('do_prep', d)
56 LD_AS_NEEDED=1; export LD_AS_NEEDED ;
60 -DCMAKE_VERBOSE_MAKEFILE=ON \
61 -DCMAKE_INSTALL_PREFIX:PATH=${prefix} \
62 -DCMAKE_INSTALL_LIBDIR:PATH=${prefix}/lib \
63 -DINCLUDE_INSTALL_DIR:PATH=${prefix}/include \
64 -DLIB_INSTALL_DIR:PATH=${prefix}/lib \
65 -DSYSCONF_INSTALL_DIR:PATH=${sysconfdir} \
66 -DSHARE_INSTALL_PREFIX:PATH=${prefix}/share \
67 -DCMAKE_SKIP_RPATH:BOOL=ON \
68 -DBUILD_SHARED_LIBS:BOOL=ON \
69 -DCMAKE_TOOLCHAIN_FILE=${WORKDIR}/toolchain.cmake \
79 export RPM_BUILD_ROOT=${D}
92 BINDIR=${prefix}/bin \
94 rm -f ${D}${infodir}/dir
95 find ${D} -regex ".*\.la$" | xargs rm -f --
96 find ${D} -regex ".*\.a$" | xargs rm -f --
97 mkdir -p ${D}/${sysconfdir}/ambd
99 cp src/AMBformat.conf ${D}/${sysconfdir}/ambd/
100 cp tool/ico_set_vehicleinfo ${D}/usr/bin/ico_set_vehicleinfo
105 pkg_postinst_${PN}() {
108 [ "x$D" == "x" ] && ldconfig
114 [ "x$D" == "x" ] && ldconfig
117 PACKAGES = "${PN}-dbg ${PN}-doc ${PN}-locale"
118 PACKAGES += " ico-vic-amb-plugin "
120 ico-vic-amb-plugin_files = ""
121 ico-vic-amb-plugin_files += "${prefix}/lib/automotive-message-broker/*.so"
122 ico-vic-amb-plugin_files += "${sysconfdir}/ambd/AMBformat.conf"
123 ico-vic-amb-plugin_files += "/usr/share/doc/automotive-message-broker/ico-vic-amb-plugin/README"
124 ico-vic-amb-plugin_files += "/usr/bin/ico_set_vehicleinfo"
125 MANIFESTFILES_${PN} = "ico-vic-amb-plugin.manifest"
127 FILES_${PN} = "${ico-vic-amb-plugin_files}"
129 PKG_ico-vic-amb-plugin= "ico-vic-amb-plugin"
131 require ico-vic-amb-plugin-extraconf.inc