aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/gdbus-binding-tool/gdbus-binding-tool_git.bb
blob: c7b3c1c8453a2ccf5c5427f3eb11c786b230c278 (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
DESCRIPTION = "gdbus-binding-tool is used to generate C code for interacting with remote objects using D-Bus."
DEPENDS = "glib-2.0 gdbus-binding-tool-native"
DEPENDS_virtclass-native = "glib-2.0-native"

inherit autotools pkgconfig

SRC_URI = "git://anongit.freedesktop.org/~david/${BPN};protocol=git;branch=master"
SRCREV = "229fd9adbb6bd9d824b38a3bd092229016540f41"
PV = "0.1+gitr${SRCPV}"
S = "${WORKDIR}/git"

do_configure_prepend() {
  # missing ${topdir}/gtk-doc.make and --disable-gtk-doc* is not enough
  sed -i '/^doc\/Makefile/d' ${S}/configure.ac
  sed -i 's/SUBDIRS = src doc/SUBDIRS = src/g' ${S}/Makefile.am

  # cannot execute target binary, so use staged native
  sed -i "s#\$(top_builddir)/src/gdbus-codegen#${STAGING_BINDIR_NATIVE}/gdbus-codegen#g" ${S}/src/Makefile.am
}
do_configure_prepend_virtclass-native() {
  # missing ${topdir}/gtk-doc.make and --disable-gtk-doc* is not enough
  sed -i '/^doc\/Makefile/d' ${S}/configure.ac
  sed -i 's/SUBDIRS = src doc/SUBDIRS = src/g' ${S}/Makefile.am
}

BBCLASSEXTEND = "native"