diff options
Diffstat (limited to 'meta-networking/recipes-support/curlpp/curlpp_0.7.3.bb')
-rw-r--r-- | meta-networking/recipes-support/curlpp/curlpp_0.7.3.bb | 88 |
1 files changed, 88 insertions, 0 deletions
diff --git a/meta-networking/recipes-support/curlpp/curlpp_0.7.3.bb b/meta-networking/recipes-support/curlpp/curlpp_0.7.3.bb new file mode 100644 index 000000000..48f5178b5 --- /dev/null +++ b/meta-networking/recipes-support/curlpp/curlpp_0.7.3.bb | |||
@@ -0,0 +1,88 @@ | |||
1 | SUMMARY = "C++ library for client-side URL transfers" | ||
2 | HOMEPAGE = "http://code.google.com/p/curlpp/" | ||
3 | SECTION = "console/network" | ||
4 | LICENSE = "MIT" | ||
5 | LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420" | ||
6 | |||
7 | DEPENDS = "curl boost" | ||
8 | DEPENDS_class-native = "curl-native" | ||
9 | |||
10 | SRC_URI = "http://curlpp.googlecode.com/files/curlpp-${PV}.tar.gz \ | ||
11 | file://example21.cpp-remove-deprecated-code.patch \ | ||
12 | " | ||
13 | |||
14 | SRC_URI[md5sum] = "ccc3d30d4b3b5d2cdbed635898c29485" | ||
15 | SRC_URI[sha256sum] = "e3f9427b27c5bddf898d383d45c0d3d5397e2056ff935d9a5cdaef6a9a653bd5" | ||
16 | |||
17 | inherit autotools-brokensep pkgconfig binconfig | ||
18 | |||
19 | EXTRA_OECONF = "--prefix=${STAGING_DIR} \ | ||
20 | --with-boost=${STAGING_DIR} \ | ||
21 | " | ||
22 | |||
23 | do_install() { | ||
24 | install -d ${D}/${includedir}/curlpp | ||
25 | cp -r include/curlpp/* ${D}${includedir}/curlpp | ||
26 | |||
27 | install -d ${D}${includedir}/utilspp | ||
28 | cp -r include/utilspp/* ${D}${includedir}/utilspp | ||
29 | |||
30 | install -d ${D}/${libdir} | ||
31 | install -m 664 src/curlpp/.libs/libcurlpp.a ${D}/${libdir} | ||
32 | install -m 664 src/curlpp/.libs/libcurlpp.lai ${D}/${libdir}/libcurlpp.la | ||
33 | |||
34 | install -m 775 src/curlpp/.libs/libcurlpp.so.0.0.2 ${D}/${libdir} | ||
35 | |||
36 | install -m 664 src/utilspp/.libs/libutilspp.a ${D}/${libdir} | ||
37 | install -m 664 src/utilspp/.libs/libutilspp.lai ${D}/${libdir}/libutilspp.la | ||
38 | |||
39 | install -m 664 src/utilspp/.libs/libutilspp.so.0.0.0 ${D}/${libdir} | ||
40 | |||
41 | install -d ${D}/${libdir}/pkgconfig | ||
42 | install -m 664 curlpp.pc ${D}/${libdir}/pkgconfig | ||
43 | |||
44 | install -d ${D}/${bindir} | ||
45 | install -m 755 curlpp-config ${D}/${bindir} | ||
46 | |||
47 | install -d ${D}/${includedir}/curlpp | ||
48 | install -d ${D}/${includedir}/curlpp/internal | ||
49 | install -d ${D}/${includedir}/utilspp | ||
50 | install -d ${D}/${includedir}/utilspp/functor | ||
51 | install -d ${D}/${includedir}/utilspp/singleton | ||
52 | |||
53 | install -m 664 include/curlpp/config* ${D}/${includedir}/curlpp | ||
54 | install -m 664 include/curlpp/*.h* ${D}/${includedir}/curlpp | ||
55 | install -m 664 include/curlpp/*.inl ${D}/${includedir}/curlpp | ||
56 | |||
57 | install -m 664 include/curlpp/internal/*.h* ${D}/${includedir}/curlpp/internal | ||
58 | install -m 664 include/curlpp/internal/*.inl ${D}/${includedir}/curlpp/internal | ||
59 | |||
60 | install -m 664 include/utilspp/*.h* ${D}/${includedir}/utilspp | ||
61 | install -m 664 include/utilspp/*.inl ${D}/${includedir}/utilspp | ||
62 | |||
63 | install -m 664 include/utilspp/functor/*.h* ${D}/${includedir}/utilspp/functor | ||
64 | install -m 664 include/utilspp/singleton/*.h* ${D}/${includedir}/utilspp/singleton | ||
65 | install -m 664 include/utilspp/singleton/*.inl ${D}/${includedir}/utilspp/singleton | ||
66 | install -m 755 curlpp-config ${D}/${bindir} | ||
67 | } | ||
68 | |||
69 | pkg_postinst_${PN}() { | ||
70 | ln -sf libcurlpp.so.0.0.2 /usr/lib/libcurlpp.so.0 | ||
71 | ln -sf libcurlpp.so.0.0.2 /usr/lib/libcurlpp.so | ||
72 | ln -sf libutilspp.so.0.0.0 /usr/lib/libutilspp.so.0 | ||
73 | ln -sf libutilspp.so.0.0.0 /usr/lib/libutilspp.so | ||
74 | } | ||
75 | |||
76 | PACKAGES =+ "libcurlpp libcurlpp-dev libcurlpp-staticdev" | ||
77 | |||
78 | FILES_lib${BPN} = "${libdir}/lib*.so.* \ | ||
79 | " | ||
80 | |||
81 | FILES_lib${BPN}-dev = "${includedir} \ | ||
82 | ${libdir}/lib*.la \ | ||
83 | ${libdir}/pkgconfig \ | ||
84 | ${bindir}/*-config" | ||
85 | |||
86 | FILES_lib${BPN}-staticdev = "${libdir}/lib*.a" | ||
87 | |||
88 | BBCLASSEXTEND = "native nativesdk" | ||