summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/pkgconfig/pkgconfig.inc
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/pkgconfig/pkgconfig.inc')
-rw-r--r--meta/recipes-devtools/pkgconfig/pkgconfig.inc47
1 files changed, 47 insertions, 0 deletions
diff --git a/meta/recipes-devtools/pkgconfig/pkgconfig.inc b/meta/recipes-devtools/pkgconfig/pkgconfig.inc
new file mode 100644
index 0000000000..c4ada808ab
--- /dev/null
+++ b/meta/recipes-devtools/pkgconfig/pkgconfig.inc
@@ -0,0 +1,47 @@
1SUMMARY = "Helper tool used when compiling"
2DESCRIPTION = "pkg-config is a helper tool used when compiling applications and libraries. It helps determined \
3the correct compiler/link options. It is also language-agnostic."
4HOMEPAGE = "http://pkg-config.freedesktop.org/wiki/"
5BUGTRACKER = "http://bugs.freedesktop.org/buglist.cgi?product=pkg-config"
6SECTION = "console/utils"
7
8LICENSE = "GPLv2+"
9LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
10
11DEPENDS = "glib-2.0"
12DEPENDS_class-native = ""
13DEPENDS_class-nativesdk = ""
14
15SRC_URI = "http://pkgconfig.freedesktop.org/releases/pkg-config-${PV}.tar.gz"
16
17S = "${WORKDIR}/pkg-config-${PV}/"
18
19inherit autotools
20
21EXTRA_OECONF = "--without-internal-glib"
22EXTRA_OECONF_class-native = "--with-internal-glib"
23EXTRA_OECONF_class-nativesdk = "--with-internal-glib"
24
25acpaths = "-I ."
26
27BBCLASSEXTEND = "native nativesdk"
28
29# Set an empty dev package to ensure the base PN package gets
30# the pkg.m4 macros, pkgconfig does not deliver any other -dev
31# files.
32FILES_${PN}-dev = ""
33FILES_${PN} += "${datadir}/aclocal/pkg.m4"
34
35# When using the RPM generated automatic package dependencies, some packages
36# will end up requiring 'pkgconfig(pkg-config)'. Allow this behavior by
37# specifying an appropriate provide.
38RPROVIDES_${PN} += "pkgconfig(pkg-config)"
39
40# Install a pkg-config-native wrapper that will use the native sysroot instead
41# of the MACHINE sysroot, for using pkg-config when building native tools.
42do_install_append_class-native () {
43 sed -e "s|@PATH_NATIVE@|${PKG_CONFIG_PATH}|" \
44 -e "s|@LIBDIR_NATIVE@|${PKG_CONFIG_LIBDIR}|" \
45 < ${WORKDIR}/pkg-config-native.in > ${B}/pkg-config-native
46 install -m755 ${B}/pkg-config-native ${D}${bindir}/pkg-config-native
47}