diff options
author | Tudor Florea <tudor.florea@enea.com> | 2015-10-09 22:59:03 +0200 |
---|---|---|
committer | Tudor Florea <tudor.florea@enea.com> | 2015-10-09 22:59:03 +0200 |
commit | 972dcfcdbfe75dcfeb777150c136576cf1a71e99 (patch) | |
tree | 97a61cd7e293d7ae9d56ef7ed0f81253365bb026 /meta/recipes-devtools/pkgconfig/pkgconfig.inc | |
download | poky-972dcfcdbfe75dcfeb777150c136576cf1a71e99.tar.gz |
initial commit for Enea Linux 5.0 arm
Signed-off-by: Tudor Florea <tudor.florea@enea.com>
Diffstat (limited to 'meta/recipes-devtools/pkgconfig/pkgconfig.inc')
-rw-r--r-- | meta/recipes-devtools/pkgconfig/pkgconfig.inc | 47 |
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 @@ | |||
1 | SUMMARY = "Helper tool used when compiling" | ||
2 | DESCRIPTION = "pkg-config is a helper tool used when compiling applications and libraries. It helps determined \ | ||
3 | the correct compiler/link options. It is also language-agnostic." | ||
4 | HOMEPAGE = "http://pkg-config.freedesktop.org/wiki/" | ||
5 | BUGTRACKER = "http://bugs.freedesktop.org/buglist.cgi?product=pkg-config" | ||
6 | SECTION = "console/utils" | ||
7 | |||
8 | LICENSE = "GPLv2+" | ||
9 | LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263" | ||
10 | |||
11 | DEPENDS = "glib-2.0" | ||
12 | DEPENDS_class-native = "" | ||
13 | DEPENDS_class-nativesdk = "" | ||
14 | |||
15 | SRC_URI = "http://pkgconfig.freedesktop.org/releases/pkg-config-${PV}.tar.gz" | ||
16 | |||
17 | S = "${WORKDIR}/pkg-config-${PV}/" | ||
18 | |||
19 | inherit autotools | ||
20 | |||
21 | EXTRA_OECONF = "--without-internal-glib" | ||
22 | EXTRA_OECONF_class-native = "--with-internal-glib" | ||
23 | EXTRA_OECONF_class-nativesdk = "--with-internal-glib" | ||
24 | |||
25 | acpaths = "-I ." | ||
26 | |||
27 | BBCLASSEXTEND = "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. | ||
32 | FILES_${PN}-dev = "" | ||
33 | FILES_${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. | ||
38 | RPROVIDES_${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. | ||
42 | do_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 | } | ||