xref: /OK3568_Linux_fs/yocto/meta-openembedded/meta-oe/recipes-navigation/geoclue/geoclue_2.5.7.bb (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593SmuzhiyunSUMMARY = "The Geolocation Service"
2*4882a593SmuzhiyunDESCRIPTION = "Geoclue is a D-Bus service that provides location information. \
3*4882a593SmuzhiyunThe primary goal of the Geoclue project is to make creating location-aware applications \
4*4882a593Smuzhiyunas simple as possible, while the secondary goal is to ensure that no application \
5*4882a593Smuzhiyuncan access location information without explicit permission from user."
6*4882a593SmuzhiyunLICENSE = "GPL-2.0-or-later"
7*4882a593SmuzhiyunSECTION = "console/network"
8*4882a593Smuzhiyun
9*4882a593SmuzhiyunLIC_FILES_CHKSUM = "file://COPYING;md5=bdfdd4986a0853eb84eeba85f9d0c4d6"
10*4882a593Smuzhiyun
11*4882a593SmuzhiyunDEPENDS = "glib-2.0 dbus json-glib libsoup-2.4 intltool-native"
12*4882a593Smuzhiyun
13*4882a593Smuzhiyuninherit meson pkgconfig gtk-doc gobject-introspection vala
14*4882a593Smuzhiyun
15*4882a593SmuzhiyunSRCREV = "3bb60dd600a8b247fd6049e7e5b1c73c2c5fc0e8"
16*4882a593SmuzhiyunSRC_URI = "git://gitlab.freedesktop.org/geoclue/geoclue.git;protocol=https;nobranch=1"
17*4882a593Smuzhiyun
18*4882a593SmuzhiyunS = "${WORKDIR}/git"
19*4882a593Smuzhiyun
20*4882a593Smuzhiyun# Without this line, package is declared a library and named libgeoclue*
21*4882a593SmuzhiyunAUTO_LIBNAME_PKGS = ""
22*4882a593Smuzhiyun
23*4882a593SmuzhiyunPACKAGECONFIG ??= "3g modem-gps cdma nmea lib"
24*4882a593SmuzhiyunPACKAGECONFIG[3g] = "-D3g-source=true,-D3g-source=false,modemmanager"
25*4882a593SmuzhiyunPACKAGECONFIG[modem-gps] = "-Dmodem-gps-source=true,-Dmodem-gps-source=false,modemmanager"
26*4882a593SmuzhiyunPACKAGECONFIG[cdma] = "-Dcdma-source=true,-Dcdma-source=false,modemmanager"
27*4882a593SmuzhiyunPACKAGECONFIG[nmea] = "-Dnmea-source=true,-Dnmea-source=false,avahi,avahi-daemon"
28*4882a593SmuzhiyunPACKAGECONFIG[lib] = "-Dlibgeoclue=true,-Dlibgeoclue=false,gobject-introspection"
29*4882a593Smuzhiyun
30*4882a593SmuzhiyunGTKDOC_MESON_OPTION = "gtk-doc"
31*4882a593Smuzhiyun
32*4882a593SmuzhiyunEXTRA_OEMESON += " \
33*4882a593Smuzhiyun    -Ddbus-sys-dir=${sysconfdir}/dbus-1/system.d \
34*4882a593Smuzhiyun    -Ddemo-agent=false \
35*4882a593Smuzhiyun"
36*4882a593Smuzhiyun
37*4882a593SmuzhiyunFILES:${PN} += " \
38*4882a593Smuzhiyun    ${datadir}/dbus-1/system-services \
39*4882a593Smuzhiyun    ${libdir} \
40*4882a593Smuzhiyun    ${systemd_unitdir} \
41*4882a593Smuzhiyun    ${prefix}/libexec \
42*4882a593Smuzhiyun"
43*4882a593Smuzhiyun
44*4882a593SmuzhiyunFILES:${PN}-dev += " \
45*4882a593Smuzhiyun    ${datadir}/dbus-1/interfaces \
46*4882a593Smuzhiyun    ${datadir}/gir-1.0 \
47*4882a593Smuzhiyun"
48