blob: b2b2211b9b464d226569fb1cd4319f1cbf93a7a5 [file] [log] [blame]
Andrew Geissler595f6302022-01-24 19:11:47 +00001SUMMARY = "iCal and scheduling (RFC 2445, 2446, 2447) library"
2DESCRIPTION = "An Open Source implementation of the iCalendar protocols \
3and protocol data units. The iCalendar specification describes how \
4calendar clients can communicate with calendar servers so users can store \
5their calendar data and arrange meetings with other users. "
6HOMEPAGE = "https://github.com/libical/libical"
7BUGTRACKER = "https://github.com/libical/libical/issues"
8LICENSE = "LGPLv2.1 | MPL-2.0"
9LIC_FILES_CHKSUM = "file://LICENSE;md5=1910a2a76ddf6a9ba369182494170d87 \
10 file://LICENSE.LGPL21.txt;md5=933adb561f159e7c3da079536f0ed871 \
11 file://LICENSE.MPL2.txt;md5=f75d2927d3c1ed2414ef72048f5ad640 \
12 "
13SECTION = "libs"
14
15SRC_URI = "https://github.com/${BPN}/${BPN}/releases/download/v${PV}/${BP}.tar.gz"
16SRC_URI[sha256sum] = "35095a4cc1a061a3de0f332c2dc728226cf127fa0baa818e9f8856cee6d35830"
17UPSTREAM_CHECK_URI = "https://github.com/libical/libical/releases"
18
19inherit cmake pkgconfig
20
21DEPENDS += "libical-native"
22
23PACKAGECONFIG ??= "icu glib"
24PACKAGECONFIG[bdb] = ",-DCMAKE_DISABLE_FIND_PACKAGE_BDB=True,db"
25PACKAGECONFIG[glib] = "-DICAL_GLIB=True,-DICAL_GLIB=False,glib-2.0-native libxml2-native glib-2.0 libxml2"
26# ICU is used for RSCALE (RFC7529) support
27PACKAGECONFIG[icu] = ",-DCMAKE_DISABLE_FIND_PACKAGE_ICU=True,icu"
28
29# No need to use perl-native, the host perl is sufficient.
30EXTRA_OECMAKE += "-DPERL_EXECUTABLE=${HOSTTOOLS_DIR}/perl"
31# Disable the test suite as we can't install it
32EXTRA_OECMAKE += "-DLIBICAL_BUILD_TESTING=false"
33# doc build fails with linker error (??) for libical-glib so disable it
34EXTRA_OECMAKE += "-DICAL_BUILD_DOCS=false"
35
36# Tell the cross-libical where the tool it needs to build is
37EXTRA_OECMAKE:append:class-target = " -DIMPORT_ICAL_GLIB_SRC_GENERATOR=${STAGING_LIBDIR_NATIVE}/cmake/LibIcal/IcalGlibSrcGenerator.cmake"
38
39do_install:append () {
40 # Remove build host references (https://github.com/libical/libical/issues/532)
41 sed -i \
42 -e 's,${STAGING_LIBDIR},${libdir},g' \
43 -e 's,${STAGING_INCDIR},${includedir},g' \
44 ${D}${libdir}/cmake/LibIcal/LibIcal*.cmake \
45 ${D}${libdir}/cmake/LibIcal/Ical*.cmake
46}
47
48BBCLASSEXTEND = "native"