blob: d34f608f119d38a0271e7eef2cf72cbc03eb6deb [file] [log] [blame]
Patrick Williamsd8c66bc2016-06-20 12:57:21 -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"
Patrick Williamsc124f4f2015-09-15 14:41:29 -05007
Patrick Williamsd8c66bc2016-06-20 12:57:21 -05008LICENSE = "GPLv2+"
9LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
10
11DEPENDS = "glib-2.0"
12DEPENDS_class-native = ""
13DEPENDS_class-nativesdk = ""
14
15SRCREV = "5914edfe9604abfedd220103cbac382fc4d268bb"
16PV = "0.29+git${SRCPV}"
17
18SRC_URI = "git://anongit.freedesktop.org/pkg-config \
19 file://pkg-config-native.in \
20 file://fix-glib-configure-libtool-usage.patch \
Patrick Williamsc124f4f2015-09-15 14:41:29 -050021 "
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050022
23S = "${WORKDIR}/git"
24
25inherit autotools
26
27EXTRA_OECONF = "--without-internal-glib"
28EXTRA_OECONF_class-native = "--with-internal-glib"
29EXTRA_OECONF_class-nativesdk = "--with-internal-glib"
30
31acpaths = "-I ."
32
33BBCLASSEXTEND = "native nativesdk"
34
35# Set an empty dev package to ensure the base PN package gets
36# the pkg.m4 macros, pkgconfig does not deliver any other -dev
37# files.
38FILES_${PN}-dev = ""
39FILES_${PN} += "${datadir}/aclocal/pkg.m4"
40
41# When using the RPM generated automatic package dependencies, some packages
42# will end up requiring 'pkgconfig(pkg-config)'. Allow this behavior by
43# specifying an appropriate provide.
44RPROVIDES_${PN} += "pkgconfig(pkg-config)"
45
46# Install a pkg-config-native wrapper that will use the native sysroot instead
47# of the MACHINE sysroot, for using pkg-config when building native tools.
48do_install_append_class-native () {
49 sed -e "s|@PATH_NATIVE@|${PKG_CONFIG_PATH}|" \
50 -e "s|@LIBDIR_NATIVE@|${PKG_CONFIG_LIBDIR}|" \
51 < ${WORKDIR}/pkg-config-native.in > ${B}/pkg-config-native
52 install -m755 ${B}/pkg-config-native ${D}${bindir}/pkg-config-native
53}