diff options
author | Cristian Iorga <cristian.iorga@intel.com> | 2012-07-25 09:42:39 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-07-26 14:55:19 +0100 |
commit | 4078b7a211ebc85d348b64a00acee3df290e23b8 (patch) | |
tree | e4e300cda44dc3c715156fbcafba8a5a46bad257 /meta/recipes-support/libpcre/libpcre_8.31.bb | |
parent | bd13f7ae25ddaaf8c4696c38114269ebb6277fd9 (diff) | |
download | poky-4078b7a211ebc85d348b64a00acee3df290e23b8.tar.gz |
libpcre: upgrade to ver. 8.31
(From OE-Core rev: 5cb5a0c0ea74d484ef100fd04cedcb66e98b6553)
Signed-off-by: Cristian Iorga <cristian.iorga@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-support/libpcre/libpcre_8.31.bb')
-rw-r--r-- | meta/recipes-support/libpcre/libpcre_8.31.bb | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/meta/recipes-support/libpcre/libpcre_8.31.bb b/meta/recipes-support/libpcre/libpcre_8.31.bb new file mode 100644 index 0000000000..e1dad8b8c8 --- /dev/null +++ b/meta/recipes-support/libpcre/libpcre_8.31.bb | |||
@@ -0,0 +1,53 @@ | |||
1 | DESCRIPTION = "Perl-compatible regular expression library. PCRE has its own native \ | ||
2 | API, but a set of 'wrapper' functions that are based on the POSIX API \ | ||
3 | are also supplied in the library libpcreposix. Note that this just \ | ||
4 | provides a POSIX calling interface to PCRE; the regular expressions \ | ||
5 | themselves still follow Perl syntax and semantics. The header file for \ | ||
6 | the POSIX-style functions is called pcreposix.h." | ||
7 | SECTION = "devel" | ||
8 | PR = "r0" | ||
9 | LICENSE = "BSD" | ||
10 | LIC_FILES_CHKSUM = "file://LICENCE;md5=115e2bee152e2e23e838a29136094877" | ||
11 | SRC_URI = "${SOURCEFORGE_MIRROR}/project/pcre/pcre/${PV}/pcre-${PV}.tar.bz2 \ | ||
12 | file://pcre-cross.patch \ | ||
13 | file://fix-pcre-name-collision.patch" | ||
14 | |||
15 | SRC_URI[md5sum] = "1c9a276af932b5599157f96e945391f0" | ||
16 | SRC_URI[sha256sum] = "5778a02535473c7ee7838ea598c19f451e63cf5eec0bf0307a688301c9078c3c" | ||
17 | |||
18 | S = "${WORKDIR}/pcre-${PV}" | ||
19 | |||
20 | PROVIDES = "pcre" | ||
21 | DEPENDS = "bzip2 zlib readline" | ||
22 | |||
23 | inherit autotools binconfig | ||
24 | |||
25 | PARALLEL_MAKE = "" | ||
26 | |||
27 | CFLAGS_append = " -D_REENTRANT" | ||
28 | CXXFLAGS_powerpc += "-lstdc++" | ||
29 | EXTRA_OECONF = " --with-link-size=2 --enable-newline-is-lf --with-match-limit=10000000 --enable-rebuild-chartables --enable-utf8" | ||
30 | |||
31 | do_compile () { | ||
32 | # stop libtool from trying to link with host libraries - fix from #33 | ||
33 | # this resolve build problem on amd64 - #1015 | ||
34 | if [ -e ${S}/${HOST_SYS}-libtool ] ; then | ||
35 | sed -i 's:-L\$:-L${STAGING_LIBDIR} -L\$:' ${S}/${HOST_SYS}-libtool | ||
36 | else | ||
37 | ln -sf ${S}/libtool ${S}/${HOST_SYS}-libtool | ||
38 | sed -i 's:-L\$:-L${STAGING_LIBDIR} -L\$:' ${S}/${HOST_SYS}-libtool | ||
39 | fi | ||
40 | |||
41 | # The generation of dftables can lead to timestamp problems with ccache | ||
42 | # because the generated config.h seems newer. It is sufficient to ensure that the | ||
43 | # attempt to build dftables inside make will actually work (foo_FOR_BUILD is | ||
44 | # only used for this). | ||
45 | oe_runmake CC_FOR_BUILD="${BUILD_CC}" CFLAGS_FOR_BUILD="-DLINK_SIZE=2 -I${S}/include" LINK_FOR_BUILD="${BUILD_CC} -L${S}/lib" | ||
46 | } | ||
47 | |||
48 | python populate_packages_prepend () { | ||
49 | pcre_libdir = d.expand('${libdir}') | ||
50 | do_split_packages(d, pcre_libdir, '^lib(.*)\.so\.+', 'lib%s', 'libpcre %s library', extra_depends='', allow_links=True, prepend=True) | ||
51 | } | ||
52 | |||
53 | BBCLASSEXTEND = "native" | ||