diff --git a/recipes/pcre/pcre-binconfig.oe b/recipes/pcre/pcre-binconfig.oe new file mode 100644 index 000000000..9e30a7342 --- /dev/null +++ b/recipes/pcre/pcre-binconfig.oe @@ -0,0 +1,10 @@ +DESCRIPTION = "Recipe to provide a symlink to machine:pcre-config in stage/cross/bin/" +LICENSE = "MIT" + +RECIPE_TYPES = "cross" +FILES_${PN} = "${bindir}" + +do_install() { + install -d ${D}${bindir} + ln -s ../../machine${machine_bindir} ${D}${bindir}/pcre-config +} diff --git a/recipes/pcre/pcre.inc b/recipes/pcre/pcre.inc index 8cf5d0850..7ade5de06 100644 --- a/recipes/pcre/pcre.inc +++ b/recipes/pcre/pcre.inc @@ -10,7 +10,7 @@ HOMEPAGE = "http://www.pcre.org/" RECIPE_TYPES = "native machine sdk" -inherit c++ autotools-autoreconf binconfig pkgconfig +inherit c++ autotools-autoreconf pkgconfig require conf/fetch/sourceforge.conf SRC_URI = "${SOURCEFORGE_MIRROR}/project/${PN}/${PN}/${PV}/${P}.tar.gz" @@ -53,4 +53,4 @@ AUTO_PACKAGE_LIBS_PCPREFIX = "lib" AUTO_PACKAGE_LIBS_DEV_DEPENDS = "${PN}-dev_${PV}" DEPENDS_${PN}-libpcreposix = "libpcre libc" DEPENDS_${PN}-libpcrecpp = "libpcre libc libm libgcc libstdc++" -DEPENDS_${PN}-libpcre = "libc" +DEPENDS_${PN}-libpcre = "libc cross:pcre-binconfig"