blob: 55ab5c41f7ce36684d0007c6070c452382964ed6 [file] [log] [blame]
Patrick Williamsc124f4f2015-09-15 14:41:29 -05001SUMMARY = "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
15SRCREV = "40342dd0ead05d457a2a4e692cf865f50033a709"
16PV = "0.28+git${SRCPV}"
17SRC_URI = "git://anongit.freedesktop.org/pkg-config"
18
19S = "${WORKDIR}/git"
20
21inherit autotools
22
23EXTRA_OECONF = "--without-internal-glib"
24EXTRA_OECONF_class-native = "--with-internal-glib"
25EXTRA_OECONF_class-nativesdk = "--with-internal-glib"
26
27acpaths = "-I ."
28
29BBCLASSEXTEND = "native nativesdk"
30
31# Set an empty dev package to ensure the base PN package gets
32# the pkg.m4 macros, pkgconfig does not deliver any other -dev
33# files.
34FILES_${PN}-dev = ""
35FILES_${PN} += "${datadir}/aclocal/pkg.m4"
36
37# When using the RPM generated automatic package dependencies, some packages
38# will end up requiring 'pkgconfig(pkg-config)'. Allow this behavior by
39# specifying an appropriate provide.
40RPROVIDES_${PN} += "pkgconfig(pkg-config)"
41
42# Install a pkg-config-native wrapper that will use the native sysroot instead
43# of the MACHINE sysroot, for using pkg-config when building native tools.
44do_install_append_class-native () {
45 sed -e "s|@PATH_NATIVE@|${PKG_CONFIG_PATH}|" \
46 -e "s|@LIBDIR_NATIVE@|${PKG_CONFIG_LIBDIR}|" \
47 < ${WORKDIR}/pkg-config-native.in > ${B}/pkg-config-native
48 install -m755 ${B}/pkg-config-native ${D}${bindir}/pkg-config-native
49}