diff options
author | Tudor Florea <tudor.florea@enea.com> | 2015-10-08 22:51:41 +0200 |
---|---|---|
committer | Tudor Florea <tudor.florea@enea.com> | 2015-10-08 22:51:41 +0200 |
commit | 1219bf8a90a7bf8cd3a5363551ef635d51e8fc8e (patch) | |
tree | a21a5fc103bb3bd65ecd85ed22be5228fc54e447 /meta-oe/recipes-support/libtinyxml2 | |
download | meta-openembedded-1219bf8a90a7bf8cd3a5363551ef635d51e8fc8e.tar.gz |
initial commit for Enea Linux 5.0 arm
Signed-off-by: Tudor Florea <tudor.florea@enea.com>
Diffstat (limited to 'meta-oe/recipes-support/libtinyxml2')
-rw-r--r-- | meta-oe/recipes-support/libtinyxml2/libtinyxml2_git.bb | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/meta-oe/recipes-support/libtinyxml2/libtinyxml2_git.bb b/meta-oe/recipes-support/libtinyxml2/libtinyxml2_git.bb new file mode 100644 index 000000000..1d3cffd77 --- /dev/null +++ b/meta-oe/recipes-support/libtinyxml2/libtinyxml2_git.bb | |||
@@ -0,0 +1,38 @@ | |||
1 | SUMMARY = "TinyXML-2 is a simple, small, efficient, C++ XML parser that can be easily integrating into other programs." | ||
2 | HOMEPAGE = "http://www.grinninglizard.com/tinyxml2/" | ||
3 | LICENSE = "Zlib" | ||
4 | LIC_FILES_CHKSUM = "file://readme.md;md5=0033b2f8a25283414b21354670bb1334" | ||
5 | SECTION = "libs" | ||
6 | |||
7 | SRCREV = "d211bb13512cf4edb408e2c4badbcf4100ce0fd0" | ||
8 | |||
9 | PV = "2.2.0+git${SRCPV}" | ||
10 | |||
11 | SRC_URI = "git://github.com/leethomason/tinyxml2.git" | ||
12 | |||
13 | S = "${WORKDIR}/git" | ||
14 | |||
15 | EXTRA_CXXFLAGS = "-I. -fPIC" | ||
16 | |||
17 | do_compile() { | ||
18 | ${CXX} ${CXXFLAGS} ${EXTRA_CXXFLAGS} -c -o tinyxml2.o tinyxml2.cpp | ||
19 | ${CXX} ${CXXFLAGS} \ | ||
20 | -shared \ | ||
21 | -Wl,-soname,libtinyxml2.so.${PV} \ | ||
22 | -o libtinyxml2.so.${PV} \ | ||
23 | ${LDFLAGS} \ | ||
24 | tinyxml2.o \ | ||
25 | |||
26 | } | ||
27 | |||
28 | do_install() { | ||
29 | install -d ${D}${libdir} | ||
30 | install -m 0755 ${S}/libtinyxml2.so.${PV} ${D}${libdir} | ||
31 | ln -sf libtinyxml2.so.${PV} ${D}${libdir}/libtinyxml2.so | ||
32 | |||
33 | install -d ${D}${includedir} | ||
34 | install -m 0644 ${S}/tinyxml2.h ${D}${includedir} | ||
35 | } | ||
36 | |||
37 | BBCLASSEXTEND += "native" | ||
38 | |||