1 DESCRIPTION = "Automotive Message Broker is a vehicle network abstraction system"
2 HOMEPAGE = "http://nohomepage.org"
3 SECTION = "Automotive/Service"
11 inherit manifest autotools-brokensep
16 #PROVIDES by automotive-message-broker-doc
17 PROVIDES += "automotive-message-broker-doc"
20 #PROVIDES by automotive-message-broker-plugins
21 PROVIDES += "automotive-message-broker-plugins"
24 #PROVIDES by automotive-message-broker-plugins-common
25 PROVIDES += "automotive-message-broker-plugins-common"
28 #PROVIDES by automotive-message-broker-plugins-murphy
29 PROVIDES += "automotive-message-broker-plugins-murphy"
32 #PROVIDES by automotive-message-broker-plugins-cangen
33 PROVIDES += "automotive-message-broker-plugins-cangen"
36 #PROVIDES by automotive-message-broker-plugins-test
37 PROVIDES += "automotive-message-broker-plugins-test"
40 #PROVIDES by automotive-message-broker-plugins-wheel
41 PROVIDES += "automotive-message-broker-plugins-wheel"
44 #PROVIDES by automotive-message-broker-plugins-cansim
45 PROVIDES += "automotive-message-broker-plugins-cansim"
48 #PROVIDES by automotive-message-broker-xwalk-vehicle-extension
49 PROVIDES += "automotive-message-broker-xwalk-vehicle-extension"
52 #PROVIDES by automotive-message-broker-dev
53 PROVIDES += "automotive-message-broker-dev"
56 #PROVIDES by automotive-message-broker
59 #PROVIDES by automotive-message-broker-plugins-database
60 PROVIDES += "automotive-message-broker-plugins-database"
63 #PROVIDES by automotive-message-broker-plugins-obd2
64 PROVIDES += "automotive-message-broker-plugins-obd2"
67 #PROVIDES by automotive-message-broker-plugins-gpsnmea
68 PROVIDES += "automotive-message-broker-plugins-gpsnmea"
72 #RDEPENDS of automotive-message-broker-doc (${PN}-doc)
73 RDEPENDS_${PN}-doc += "automotive-message-broker"
75 #RDEPENDS of automotive-message-broker-plugins-cangen (${PN}-plugins-cangen)
76 RDEPENDS_${PN}-plugins-cangen += "automotive-message-broker"
78 #RDEPENDS of automotive-message-broker-plugins-common (${PN}-plugins-common)
79 RDEPENDS_${PN}-plugins-common += "automotive-message-broker"
81 #RDEPENDS of automotive-message-broker-plugins-murphy (${PN}-plugins-murphy)
82 RDEPENDS_${PN}-plugins-murphy += "murphy"
83 RDEPENDS_${PN}-plugins-murphy += "automotive-message-broker"
85 #RDEPENDS of automotive-message-broker-plugins (${PN}-plugins)
86 RDEPENDS_${PN}-plugins += "automotive-message-broker"
88 #RDEPENDS of automotive-message-broker-plugins-test (${PN}-plugins-test)
89 RDEPENDS_${PN}-plugins-test += "automotive-message-broker"
91 #RDEPENDS of automotive-message-broker-plugins-wheel (${PN}-plugins-wheel)
92 RDEPENDS_${PN}-plugins-wheel += "automotive-message-broker"
94 #RDEPENDS of automotive-message-broker-plugins-cansim (${PN}-plugins-cansim)
95 RDEPENDS_${PN}-plugins-cansim += "automotive-message-broker"
97 #RDEPENDS of automotive-message-broker-xwalk-vehicle-extension (${PN}-xwalk-vehicle-extension)
98 RDEPENDS_${PN}-xwalk-vehicle-extension += "crosswalk"
99 RDEPENDS_${PN}-xwalk-vehicle-extension += "automotive-message-broker"
101 #RDEPENDS of automotive-message-broker-dev (${PN}-dev)
102 RDEPENDS_${PN}-dev += "boost"
103 RDEPENDS_${PN}-dev += "util-linux"
104 RDEPENDS_${PN}-dev += "automotive-message-broker"
106 #RDEPENDS of automotive-message-broker (${PN})
107 RDEPENDS_${PN} += "automotive-message-broker-plugins-murphy"
108 RDEPENDS_${PN} += "automotive-message-broker-plugins"
109 RDEPENDS_${PN} += "dbus-python"
110 RDEPENDS_${PN} += "glibc"
111 RDEPENDS_${PN} += "default-ac-domains"
113 #RDEPENDS of automotive-message-broker-plugins-database (${PN}-plugins-database)
114 RDEPENDS_${PN}-plugins-database += "sqlite3"
115 RDEPENDS_${PN}-plugins-database += "automotive-message-broker"
117 #RDEPENDS of automotive-message-broker-plugins-obd2 (${PN}-plugins-obd2)
118 RDEPENDS_${PN}-plugins-obd2 += "automotive-message-broker-plugins-common"
119 RDEPENDS_${PN}-plugins-obd2 += "automotive-message-broker"
121 #RDEPENDS of automotive-message-broker-plugins-gpsnmea (${PN}-plugins-gpsnmea)
122 RDEPENDS_${PN}-plugins-gpsnmea += "automotive-message-broker"
126 #DEPENDS of automotive-message-broker
133 DEPENDS += "glib-2.0"
135 DEPENDS_append_class-native = " libtool"
136 DEPENDS_append_class-target = " libtool-cross"
137 DEPENDS += "libwebsockets"
138 DEPENDS += "util-linux"
143 chmod -Rf a+rX,u+w,g-w,o-w ${S}
144 #setup -q -n automotive-message-broker-0.12.803
149 bb.build.exec_func('do_prep', d)
160 LD_AS_NEEDED=1; export LD_AS_NEEDED ;
164 -DCMAKE_VERBOSE_MAKEFILE=ON \
165 -DCMAKE_INSTALL_PREFIX:PATH=${prefix} \
166 -DCMAKE_INSTALL_LIBDIR:PATH=${prefix}/lib \
167 -DINCLUDE_INSTALL_DIR:PATH=${prefix}/include \
168 -DLIB_INSTALL_DIR:PATH=${prefix}/lib \
169 -DSYSCONF_INSTALL_DIR:PATH=${sysconfdir} \
170 -DSHARE_INSTALL_PREFIX:PATH=${prefix}/share \
171 -DCMAKE_SKIP_RPATH:BOOL=ON \
172 -DBUILD_SHARED_LIBS:BOOL=ON \
173 -DCMAKE_TOOLCHAIN_FILE=${WORKDIR}/toolchain.cmake \
175 -Dxwalk_vehicle_extension=ON \
176 -DXWALK_EXTENSION_PATH=/tizen-extensions-crosswalk \
177 -Ddatabase_plugin=ON \
181 -Dgpsnmea_plugin=ON \
188 oe_runmake ${PARALLEL_MAKE}
195 export RPM_BUILD_ROOT=${D}
208 BINDIR=${prefix}/bin \
210 rm -f ${D}${infodir}/dir
211 find ${D} -regex ".*\.la$" | xargs rm -f --
212 find ${D} -regex ".*\.a$" | xargs rm -f --
214 mkdir -p ${D}${systemd_unitdir}/system/network.target.wants
215 cp packaging.in/ambd.service.systemd.tizen ${D}${systemd_unitdir}/system/ambd.service
216 ln -s ../ambd.service ${D}${systemd_unitdir}/system/network.target.wants/ambd.service
218 mkdir -p ${D}/${systemd_unitdir}/system/multi-user.target.wants
219 ln -s ../ambd.service ${D}/${systemd_unitdir}/system/multi-user.target.wants/ambd.service
221 cp packaging.in/config.tizen ${D}${sysconfdir}/ambd/
226 pkg_postinst_${PN}() {
229 [ "x$D" == "x" ] && ldconfig
232 pkg_postinst_${PN}() {
235 [ "x$D" == "x" ] && ldconfig
241 [ "x$D" == "x" ] && ldconfig
247 [ "x$D" == "x" ] && ldconfig
250 PACKAGES = "${PN}-dbg ${PN}-doc ${PN}-locale"
251 PACKAGES += " automotive-message-broker-plugins-cangen "
252 PACKAGES += " automotive-message-broker-plugins-common "
253 PACKAGES += " automotive-message-broker-dev "
254 PACKAGES += " automotive-message-broker-plugins-murphy "
255 PACKAGES += " automotive-message-broker-plugins "
256 PACKAGES += " automotive-message-broker-plugins-test "
257 PACKAGES += " automotive-message-broker-plugins-gpsnmea "
258 PACKAGES += " automotive-message-broker-plugins-cansim "
259 PACKAGES += " automotive-message-broker-xwalk-vehicle-extension "
260 PACKAGES += " automotive-message-broker "
261 PACKAGES += " automotive-message-broker-plugins-database "
262 PACKAGES += " automotive-message-broker-plugins-obd2 "
263 PACKAGES += " automotive-message-broker-plugins-wheel "
265 automotive-message-broker-plugins-cangen_files = ""
266 automotive-message-broker-plugins-cangen_files += "${prefix}/lib/automotive-message-broker/cangenplugin.so"
267 automotive-message-broker-plugins-cangen_files += "${prefix}/bin/gen-set"
268 MANIFESTFILES_${PN}-plugins-cangen = "packaging.in/amb.manifest.plugins"
270 automotive-message-broker-plugins-common_files = ""
271 automotive-message-broker-plugins-common_files += "${prefix}/lib/libamb-plugins-common.so"
272 MANIFESTFILES_${PN}-plugins-common = "packaging.in/amb.manifest.plugins"
274 automotive-message-broker-dev_files = ""
275 automotive-message-broker-dev_files += "${prefix}/include/amb/*.h"
276 automotive-message-broker-dev_files += "${prefix}/include/amb/*.hpp"
277 automotive-message-broker-dev_files += "${prefix}/lib/pkgconfig/*.pc"
278 MANIFESTFILES_${PN}-dev = "packaging.in/amb.manifest.plugins"
280 automotive-message-broker-plugins-murphy_files = ""
281 automotive-message-broker-plugins-murphy_files += "${prefix}/lib/automotive-message-broker/murphysourceplugin.so"
282 MANIFESTFILES_${PN}-plugins-murphy = "packaging.in/amb.manifest.plugins"
284 automotive-message-broker-plugins_files = ""
285 automotive-message-broker-plugins_files += "${prefix}/lib/automotive-message-broker/examplesourceplugin.so"
286 automotive-message-broker-plugins_files += "${prefix}/lib/automotive-message-broker/examplesinkplugin.so"
287 automotive-message-broker-plugins_files += "${prefix}/lib/automotive-message-broker/dbussinkplugin.so"
288 automotive-message-broker-plugins_files += "${prefix}/lib/automotive-message-broker/demosinkplugin.so"
289 automotive-message-broker-plugins_files += "${sysconfdir}/dbus-1/system.d/amb.conf"
290 CONFFILES_${PN}-plugins = ""
291 CONFFILES_${PN}-plugins += "${sysconfdir}/dbus-1/system.d/amb.conf"
292 MANIFESTFILES_${PN}-plugins = "packaging.in/amb.manifest.plugins"
294 automotive-message-broker-plugins-test_files = ""
295 automotive-message-broker-plugins-test_files += "${prefix}/lib/automotive-message-broker/testplugin.so"
296 MANIFESTFILES_${PN}-plugins-test = "packaging.in/amb.manifest.plugins"
298 automotive-message-broker-plugins-gpsnmea_files = ""
299 automotive-message-broker-plugins-gpsnmea_files += "${prefix}/lib/automotive-message-broker/gpsnmea.so"
300 MANIFESTFILES_${PN}-plugins-gpsnmea = "packaging.in/amb.manifest.plugins"
302 automotive-message-broker-plugins-cansim_files = ""
303 automotive-message-broker-plugins-cansim_files += "${prefix}/lib/automotive-message-broker/cansimplugin.so"
304 MANIFESTFILES_${PN}-plugins-cansim = "packaging.in/amb.manifest.plugins"
306 automotive-message-broker-xwalk-vehicle-extension_files = ""
307 automotive-message-broker-xwalk-vehicle-extension_files += "${prefix}/lib/tizen-extensions-crosswalk/*"
308 automotive-message-broker-xwalk-vehicle-extension_files += "${prefix}/share/automotive-message-broker/xwalk/examples/*"
309 MANIFESTFILES_${PN}-xwalk-vehicle-extension = "packaging.in/amb.manifest.plugins"
311 automotive-message-broker_files = ""
312 automotive-message-broker_files += "${sysconfdir}/ambd/config"
313 automotive-message-broker_files += "${sysconfdir}/ambd/config.tizen"
314 automotive-message-broker_files += "${sysconfdir}/ambd/examples/*"
315 automotive-message-broker_files += "${prefix}/bin/ambd"
316 automotive-message-broker_files += "${prefix}/lib/libamb.so*"
317 automotive-message-broker_files += "${systemd_unitdir}/system/ambd.service"
318 automotive-message-broker_files += "${systemd_unitdir}/system/network.target.wants/ambd.service"
319 automotive-message-broker_files += "${systemd_unitdir}/system/multi-user.target.wants/ambd.service"
320 automotive-message-broker_files += "${prefix}/bin/amb-get"
321 automotive-message-broker_files += "${prefix}/bin/amb-get-history"
322 automotive-message-broker_files += "${prefix}/bin/amb-set"
323 automotive-message-broker_files += "${prefix}/bin/amb-listen"
325 CONFFILES_${PN} += "${sysconfdir}/ambd/config"
326 CONFFILES_${PN} += "${sysconfdir}/ambd/config.tizen"
327 CONFFILES_${PN} += "${sysconfdir}/ambd/examples/*"
328 MANIFESTFILES_${PN} = "packaging.in/amb.manifest"
330 automotive-message-broker-plugins-database_files = ""
331 automotive-message-broker-plugins-database_files += "${prefix}/lib/automotive-message-broker/databasesinkplugin.so"
332 MANIFESTFILES_${PN}-plugins-database = "packaging.in/amb.manifest.plugins"
334 automotive-message-broker-plugins-obd2_files = ""
335 automotive-message-broker-plugins-obd2_files += "${prefix}/lib/automotive-message-broker/obd2sourceplugin.so"
336 MANIFESTFILES_${PN}-plugins-obd2 = "packaging.in/amb.manifest.plugins"
338 automotive-message-broker-plugins-wheel_files = ""
339 automotive-message-broker-plugins-wheel_files += "${prefix}/lib/automotive-message-broker/wheelsourceplugin.so"
340 MANIFESTFILES_${PN}-plugins-wheel = "packaging.in/amb.manifest.plugins"
342 automotive-message-broker-doc_files = ""
343 automotive-message-broker-doc_files += "${prefix}/share/doc/packages/automotive-message-broker/*"
344 MANIFESTFILES_${PN}-doc = "packaging.in/amb.manifest.plugins"
346 FILES_${PN}-plugins-cangen = "${automotive-message-broker-plugins-cangen_files}"
347 FILES_${PN}-plugins-common = "${automotive-message-broker-plugins-common_files}"
348 FILES_${PN}-dev = "${automotive-message-broker-dev_files}"
349 FILES_${PN}-plugins-murphy = "${automotive-message-broker-plugins-murphy_files}"
350 FILES_${PN}-plugins = "${automotive-message-broker-plugins_files}"
351 FILES_${PN}-plugins-test = "${automotive-message-broker-plugins-test_files}"
352 FILES_${PN}-plugins-gpsnmea = "${automotive-message-broker-plugins-gpsnmea_files}"
353 FILES_${PN}-plugins-cansim = "${automotive-message-broker-plugins-cansim_files}"
354 FILES_${PN}-xwalk-vehicle-extension = "${automotive-message-broker-xwalk-vehicle-extension_files}"
355 FILES_${PN} = "${automotive-message-broker_files}"
356 FILES_${PN}-plugins-database = "${automotive-message-broker-plugins-database_files}"
357 FILES_${PN}-plugins-obd2 = "${automotive-message-broker-plugins-obd2_files}"
358 FILES_${PN}-plugins-wheel = "${automotive-message-broker-plugins-wheel_files}"
359 FILES_${PN}-doc = "${automotive-message-broker-doc_files}"
361 PKG_automotive-message-broker-plugins-cangen= "automotive-message-broker-plugins-cangen"
362 PKG_automotive-message-broker-plugins-common= "automotive-message-broker-plugins-common"
363 PKG_automotive-message-broker-dev= "automotive-message-broker-dev"
364 PKG_automotive-message-broker-plugins-murphy= "automotive-message-broker-plugins-murphy"
365 PKG_automotive-message-broker-plugins= "automotive-message-broker-plugins"
366 PKG_automotive-message-broker-plugins-test= "automotive-message-broker-plugins-test"
367 PKG_automotive-message-broker-plugins-gpsnmea= "automotive-message-broker-plugins-gpsnmea"
368 PKG_automotive-message-broker-plugins-cansim= "automotive-message-broker-plugins-cansim"
369 PKG_automotive-message-broker-xwalk-vehicle-extension= "automotive-message-broker-xwalk-vehicle-extension"
370 PKG_automotive-message-broker= "automotive-message-broker"
371 PKG_automotive-message-broker-plugins-database= "automotive-message-broker-plugins-database"
372 PKG_automotive-message-broker-plugins-obd2= "automotive-message-broker-plugins-obd2"
373 PKG_automotive-message-broker-plugins-wheel= "automotive-message-broker-plugins-wheel"
374 PKG_automotive-message-broker-doc= "automotive-message-broker-doc"
376 require automotive-message-broker-extraconf.inc