diff options
Diffstat (limited to 'meta/recipes-devtools/pkgconfig/pkgconfig_git.bb')
| -rw-r--r-- | meta/recipes-devtools/pkgconfig/pkgconfig_git.bb | 96 |
1 files changed, 57 insertions, 39 deletions
diff --git a/meta/recipes-devtools/pkgconfig/pkgconfig_git.bb b/meta/recipes-devtools/pkgconfig/pkgconfig_git.bb index 6aa7f6d7dc..dc44992c7e 100644 --- a/meta/recipes-devtools/pkgconfig/pkgconfig_git.bb +++ b/meta/recipes-devtools/pkgconfig/pkgconfig_git.bb @@ -1,40 +1,58 @@ -require pkgconfig.inc - -SRC_URI = "git://anongit.freedesktop.org/pkg-config;protocol=git \ - file://autofoo.patch;patch=1 \ - file://glibconfig-sysdefs.h" - -S = "${WORKDIR}/git/" - -SRCREV = "66d49f1375fec838bcd301bb4ca2ef76cee0e47c" -PV = "0.23+git${SRCPV}" - -DEFAULT_PREFERENCE = "-1" - -# Can't do native version with git since git-native depends on pkgconfig-native -BBCLASSEXTEND = "nativesdk" - -do_fixsource() { - # Adapted from autogen.sh - cd ${S} - tar -xvzf glib-1.2.10.tar.gz - - chmod +w `find glib-1.2.10 -name Makefile.am` - perl -p -i.bak -e "s/lib_LTLIBRARIES/noinst_LTLIBRARIES/g" `find glib-1.2.10 -name Makefile.am` - perl -p -i.bak -e "s/bin_SCRIPTS/noinst_SCRIPTS/g" `find glib-1.2.10 -name Makefile.am` - perl -p -i.bak -e "s/include_HEADERS/noinst_HEADERS/g" `find glib-1.2.10 -name Makefile.am` - perl -p -i.bak -e "s/glibnoinst_HEADERS/noinst_HEADERS/g" `find glib-1.2.10 -name Makefile.am` - perl -p -i.bak -e 's/([a-zA-Z0-9]+)_DATA/noinst_DATA/g' `find glib-1.2.10 -name Makefile.am` - perl -p -i.bak -e "s/info_TEXINFOS/noinst_TEXINFOS/g" `find glib-1.2.10 -name Makefile.am` - perl -p -i.bak -e "s/man_MANS/noinst_MANS/g" `find glib-1.2.10 -name Makefile.am` - - ## patch gslist.c to have stable sort - perl -p -w -i.bak -e 's/if \(compare_func\(l1->data,l2->data\) < 0\)/if \(compare_func\(l1->data,l2->data\) <= 0\)/g' glib-1.2.10/gslist.c - - # Update random auto* files to actually have something which have a snowball's - # chance in a hot place of working with modern auto* tools. - - (cd glib-1.2.10 && for p in ../glib-patches/*.diff; do echo $p; patch -p1 < $p || exit 1; done ) || exit 1 -} +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" + +SRCREV = "87152c05be88ca8be71a3a563f275b3686d32c28" +PV = "0.29.1+git${SRCPV}" + +SRC_URI = "git://anongit.freedesktop.org/pkg-config \ + file://pkg-config-native.in \ + file://fix-glib-configure-libtool-usage.patch \ + file://0001-gdate-Move-warning-pragma-outside-of-function.patch \ + file://0001-glib-gettext.m4-Update-AM_GLIB_GNU_GETTEXT-to-match-.patch \ + " + +S = "${WORKDIR}/git" + +inherit autotools + +# Because of a faulty test, the current auto mode always evaluates to no, +# so just continue that behaviour. +# +EXTRA_OECONF += "--disable-indirect-deps" -addtask fixsource before do_patch after do_unpack +PACKAGECONFIG ??= "glib" +PACKAGECONFIG_class-native = "" +PACKAGECONFIG_class-nativesdk = "" + +PACKAGECONFIG[glib] = "--without-internal-glib,--with-internal-glib,glib-2.0 pkgconfig-native" + +acpaths = "-I ." + +BBCLASSEXTEND = "native nativesdk" + +# 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 = "" +FILES_${PN} += "${datadir}/aclocal/pkg.m4" + +# 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 +} |
