2024-09-09 08:52:07 +00:00
|
|
|
SUMMARY = "Helper tool used when compiling"
|
|
|
|
DESCRIPTION = "pkg-config is a helper tool used when compiling applications and libraries. It helps determined \
|
|
|
|
the correct compiler/link options. It is also language-agnostic."
|
|
|
|
HOMEPAGE = "http://pkg-config.freedesktop.org/wiki/"
|
|
|
|
BUGTRACKER = "http://bugs.freedesktop.org/buglist.cgi?product=pkg-config"
|
|
|
|
SECTION = "console/utils"
|
|
|
|
|
|
|
|
LICENSE = "GPLv2+"
|
|
|
|
LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
|
|
|
|
|
2024-09-09 08:57:42 +00:00
|
|
|
DEPENDS = "glib-2.0"
|
|
|
|
DEPENDS_class-native = ""
|
|
|
|
DEPENDS_class-nativesdk = ""
|
2024-09-09 08:52:07 +00:00
|
|
|
|
2024-09-09 08:57:42 +00:00
|
|
|
SRC_URI = "http://pkgconfig.freedesktop.org/releases/pkg-config-${PV}.tar.gz"
|
2024-09-09 08:52:07 +00:00
|
|
|
|
|
|
|
S = "${WORKDIR}/pkg-config-${PV}/"
|
|
|
|
|
|
|
|
inherit autotools
|
|
|
|
|
2024-09-09 08:57:42 +00:00
|
|
|
EXTRA_OECONF = "--without-internal-glib"
|
|
|
|
EXTRA_OECONF_class-native = "--with-internal-glib"
|
|
|
|
EXTRA_OECONF_class-nativesdk = "--with-internal-glib"
|
2024-09-09 08:52:07 +00:00
|
|
|
|
|
|
|
acpaths = "-I ."
|
|
|
|
|
|
|
|
BBCLASSEXTEND = "native nativesdk"
|
|
|
|
|
2024-09-09 08:57:42 +00:00
|
|
|
# Set an empty dev package to ensure the base PN package gets
|
|
|
|
# the pkg.m4 macros, pkgconfig does not deliver any other -dev
|
|
|
|
# files.
|
|
|
|
FILES_${PN}-dev = ""
|
2024-09-09 08:52:07 +00:00
|
|
|
FILES_${PN} += "${datadir}/aclocal/pkg.m4"
|
2024-09-09 08:57:42 +00:00
|
|
|
|
|
|
|
# When using the RPM generated automatic package dependencies, some packages
|
|
|
|
# will end up requiring 'pkgconfig(pkg-config)'. Allow this behavior by
|
|
|
|
# specifying an appropriate provide.
|
|
|
|
RPROVIDES_${PN} += "pkgconfig(pkg-config)"
|
|
|
|
|
|
|
|
# Install a pkg-config-native wrapper that will use the native sysroot instead
|
|
|
|
# of the MACHINE sysroot, for using pkg-config when building native tools.
|
|
|
|
do_install_append_class-native () {
|
|
|
|
sed -e "s|@PATH_NATIVE@|${PKG_CONFIG_PATH}|" \
|
|
|
|
-e "s|@LIBDIR_NATIVE@|${PKG_CONFIG_LIBDIR}|" \
|
|
|
|
< ${WORKDIR}/pkg-config-native.in > ${B}/pkg-config-native
|
|
|
|
install -m755 ${B}/pkg-config-native ${D}${bindir}/pkg-config-native
|
|
|
|
}
|