diff options
Diffstat (limited to 'meta/recipes-support/libical/libical_3.0.9.bb')
-rw-r--r-- | meta/recipes-support/libical/libical_3.0.9.bb | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/meta/recipes-support/libical/libical_3.0.9.bb b/meta/recipes-support/libical/libical_3.0.9.bb new file mode 100644 index 0000000000..d03f2f6486 --- /dev/null +++ b/meta/recipes-support/libical/libical_3.0.9.bb | |||
@@ -0,0 +1,48 @@ | |||
1 | SUMMARY = "iCal and scheduling (RFC 2445, 2446, 2447) library" | ||
2 | DESCRIPTION = "An Open Source implementation of the iCalendar protocols \ | ||
3 | and protocol data units. The iCalendar specification describes how \ | ||
4 | calendar clients can communicate with calendar servers so users can store \ | ||
5 | their calendar data and arrange meetings with other users. " | ||
6 | HOMEPAGE = "https://github.com/libical/libical" | ||
7 | BUGTRACKER = "https://github.com/libical/libical/issues" | ||
8 | LICENSE = "LGPLv2.1 | MPL-2.0" | ||
9 | LIC_FILES_CHKSUM = "file://LICENSE;md5=1910a2a76ddf6a9ba369182494170d87 \ | ||
10 | file://LICENSE.LGPL21.txt;md5=933adb561f159e7c3da079536f0ed871 \ | ||
11 | file://LICENSE.MPL2.txt;md5=f75d2927d3c1ed2414ef72048f5ad640 \ | ||
12 | " | ||
13 | SECTION = "libs" | ||
14 | |||
15 | SRC_URI = "https://github.com/${BPN}/${BPN}/releases/download/v${PV}/${BP}.tar.gz \ | ||
16 | file://0001-Use-our-hand-build-native-src-generator.patch \ | ||
17 | " | ||
18 | SRC_URI[sha256sum] = "bd26d98b7fcb2eb0cd5461747bbb02024ebe38e293ca53a7dfdcb2505265a728" | ||
19 | UPSTREAM_CHECK_URI = "https://github.com/libical/libical/releases" | ||
20 | |||
21 | inherit cmake pkgconfig | ||
22 | |||
23 | do_compile_prepend() { | ||
24 | # As long as https://github.com/libical/libical/issues/481 is open build native src-generator manually | ||
25 | NATIVE_CFLAGS="${BUILD_CFLAGS} `pkg-config-native --cflags glib-2.0` `pkg-config-native --cflags libxml-2.0`" | ||
26 | NATIVE_LDFLAGS="${BUILD_LDFLAGS} `pkg-config-native --libs glib-2.0` `pkg-config-native --libs libxml-2.0`" | ||
27 | ${BUILD_CC} $NATIVE_CFLAGS ${S}/src/libical-glib/tools/generator.c ${S}/src/libical-glib/tools/xml-parser.c -o ${B}/src-generator $NATIVE_LDFLAGS | ||
28 | } | ||
29 | |||
30 | PACKAGECONFIG ??= "icu glib" | ||
31 | PACKAGECONFIG[bdb] = ",-DCMAKE_DISABLE_FIND_PACKAGE_BDB=True,db" | ||
32 | PACKAGECONFIG[glib] = "-DICAL_GLIB=True,-DICAL_GLIB=False,glib-2.0-native libxml2-native glib-2.0 libxml2" | ||
33 | # ICU is used for RSCALE (RFC7529) support | ||
34 | PACKAGECONFIG[icu] = ",-DCMAKE_DISABLE_FIND_PACKAGE_ICU=True,icu" | ||
35 | |||
36 | # No need to use perl-native, the host perl is sufficient. | ||
37 | EXTRA_OECMAKE += "-DPERL_EXECUTABLE=${HOSTTOOLS_DIR}/perl" | ||
38 | # doc build fails with linker error (??) for libical-glib so disable it | ||
39 | EXTRA_OECMAKE += "-DICAL_BUILD_DOCS=false" | ||
40 | |||
41 | do_install_append () { | ||
42 | # Remove build host references | ||
43 | sed -i \ | ||
44 | -e 's,${STAGING_LIBDIR},${libdir},g' \ | ||
45 | -e 's,${STAGING_INCDIR},${includedir},g' \ | ||
46 | ${D}${libdir}/cmake/LibIcal/LibIcal*.cmake \ | ||
47 | ${D}${libdir}/cmake/LibIcal/Ical*.cmake | ||
48 | } | ||