summaryrefslogtreecommitdiffstats
path: root/recipes-support/libgsystem/libgsystem_git.bb
blob: 048c44bc47dceca7e94fee95c41ae3e2ec8463b2 (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
SUMMARY = "GIO-based library, targeted primarily for use by operating system components"
LICENSE = "GPLv2+"
LIC_FILES_CHKSUM = "file://COPYING;md5=5f30f0716dfdd0d91eb439ebec522ec2"

SRC_URI = "gitsm://github.com/GNOME/libgsystem.git"
SRCREV="d606bec68ddfea78de4b03c3f3568afb71bdc1ce"

S = "${WORKDIR}/git"

inherit autotools-brokensep gobject-introspection

DEPENDS += "attr glib-2.0 pkgconfig libcap xz"

RDEPENDS_${PN}_append = "${@bb.utils.contains('DISTRO_FEATURES', 'systemd', ' systemd', '', d)}"
RDEPENDS_${PN}_remove_class-native = "systemd-native"

BBCLASSEXTEND = "native"

export STAGING_INCDIR
export STAGING_LIBDIR

do_configure() {
 NOCONFIGURE=true ./autogen.sh
 oe_runconf
}

do_compile_prepend() {
 export BUILD_SYS="${BUILD_SYS}"
 export HOST_SYS="${HOST_SYS}"
}

FILES_${PN} += " \
    ${datadir} \
    ${datadir}/gir-1.0 \
    ${datadir}/gir-1.0/GSystem-1.0.gir \
    ${libdir}/girepository-1.0/ \
    ${libdir}/girepository-1.0/GSystem-1.0.typelib \
"