1 SUMMARY = "HTTP REST interface to automotive backends for HTML5 UI support"
2 DESCRIPTION = "Automotive-Framework-Binder Daemon provides a HTTP REST \
3 interface to various automotive-oriented bindings, \
4 allowing HTML5 UIs to send platform-specific requests in a secure way."
5 HOMEPAGE = "https://gerrit.automotivelinux.org/gerrit/#/admin/projects/src/app-framework-binder"
8 LIC_FILES_CHKSUM = "file://LICENSE-2.0.txt;md5=3b83ef96387f14655fc854ddc3c6bd57"
10 DEPENDS = "file json-c libmicrohttpd systemd util-linux openssl cynara"
12 SRC_URI_git = "git://gerrit.automotivelinux.org/gerrit/src/app-framework-binder;protocol=https;branch=master"
14 SRC_URI = "${SRC_URI_git} \
18 SRCREV = "b192d4cc46d8bda166116432ee28042e95750052"
21 inherit cmake pkgconfig
23 pkg_postinst_${PN}() {
24 mkdir -p "$D${libdir}/afb"
27 #############################################
29 #############################################
30 PACKAGES += "${PN}-tools ${PN}-meta"
32 FILES_${PN} += "${datadir}"
34 ALLOW_EMPTY_${PN}-meta = "1"
36 FILES_${PN}-tools = "\
37 ${bindir}/afb-client-demo \
38 ${bindir}/afb-genskel \
41 RDEPENDS_${PN}-dev += "libafbwsc-dev"
43 #############################################
44 # setup sample binding packages
45 #############################################
46 PACKAGES_DYNAMIC = "${PN}-binding-*"
48 python populate_packages_prepend () {
49 afb_libdir = d.expand('${libdir}/afb')
50 postinst = d.getVar('binding_postinst', True)
54 pkgs += do_split_packages(d, afb_libdir, '(.*)-api\.so$', d.expand('${PN}-binding-%s'), 'AFB binding for %s', postinst=postinst, extra_depends=d.expand('${PN}'))
55 pkgs += do_split_packages(d, afb_libdir, '(.*(?!-api))\.so$', d.expand('${PN}-binding-%s'), 'AFB binding for %s', postinst=postinst, extra_depends=d.expand('${PN}'))
57 pkgs_dbg += do_split_packages(d, oe.path.join(afb_libdir, ".debug"), '(.*)-api\.so$', d.expand('${PN}-binding-%s-dbg'), 'AFB binding for %s, debug info', postinst=postinst, extra_depends=d.expand('${PN}'))
58 pkgs_dbg += do_split_packages(d, oe.path.join(afb_libdir, ".debug"), '(.*(?!-api))\.so$', d.expand('${PN}-binding-%s-dbg'), 'AFB binding for %s, debug info', postinst=postinst, extra_depends=d.expand('${PN}'))
60 metapkg = d.getVar('PN', True) + '-meta'
61 d.setVar('RDEPENDS_' + metapkg, ' '.join(pkgs))
64 #############################################
65 # setup libafbwsc package
66 #############################################
67 PACKAGES =+ "libafbwsc libafbwsc-dev libafbwsc-dbg"
70 ${libdir}/libafbwsc.so.* \
72 FILES_libafbwsc-dev = "\
73 ${includedir}/afb/afb-wsj1.h \
74 ${includedir}/afb/afb-ws-client.h \
75 ${libdir}/libafbwsc.so \
76 ${libdir}/pkgconfig/libafbwsc.pc \
78 FILES_libafbwsc-dbg = "\
79 ${libdir}/.debug/libafbwsc.so.* \
80 ${bindir}/.debug/afb-client-demo \
82 RDEPENDS_libafbwsc-dbg += "${PN}-dbg libafbwsc-dev"