diff options
Diffstat (limited to 'meta/recipes-support/libical/libical_3.0.8.bb')
-rw-r--r-- | meta/recipes-support/libical/libical_3.0.8.bb | 50 |
1 files changed, 0 insertions, 50 deletions
diff --git a/meta/recipes-support/libical/libical_3.0.8.bb b/meta/recipes-support/libical/libical_3.0.8.bb deleted file mode 100644 index ffc117d439..0000000000 --- a/meta/recipes-support/libical/libical_3.0.8.bb +++ /dev/null | |||
@@ -1,50 +0,0 @@ | |||
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 = " \ | ||
16 | https://github.com/${BPN}/${BPN}/releases/download/v${PV}/${BP}.tar.gz \ | ||
17 | file://0001-Use-our-hand-build-native-src-generator.patch \ | ||
18 | file://0001-Fix-build-with-icu-68.1.patch \ | ||
19 | " | ||
20 | SRC_URI[md5sum] = "41bd1f1fcdcb4779cea478bb55cf07bf" | ||
21 | SRC_URI[sha256sum] = "09fecacaf75ba5a242159e3a9758a5446b5ce4d0ab684f98a7040864e1d1286f" | ||
22 | UPSTREAM_CHECK_URI = "https://github.com/libical/libical/releases" | ||
23 | |||
24 | inherit cmake pkgconfig | ||
25 | |||
26 | do_compile_prepend() { | ||
27 | # As long as https://github.com/libical/libical/issues/394 is open build native src-generator manually | ||
28 | NATIVE_CFLAGS="${BUILD_CFLAGS} `pkg-config-native --cflags glib-2.0` `pkg-config-native --cflags libxml-2.0`" | ||
29 | NATIVE_LDFLAGS="${BUILD_LDFLAGS} `pkg-config-native --libs glib-2.0` `pkg-config-native --libs libxml-2.0`" | ||
30 | ${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 | ||
31 | } | ||
32 | |||
33 | PACKAGECONFIG ??= "icu glib" | ||
34 | PACKAGECONFIG[bdb] = ",-DCMAKE_DISABLE_FIND_PACKAGE_BDB=True,db" | ||
35 | PACKAGECONFIG[glib] = "-DICAL_GLIB=True,-DICAL_GLIB=False,glib-2.0-native libxml2-native glib-2.0 libxml2" | ||
36 | # ICU is used for RSCALE (RFC7529) support | ||
37 | PACKAGECONFIG[icu] = ",-DCMAKE_DISABLE_FIND_PACKAGE_ICU=True,icu" | ||
38 | |||
39 | # No need to use perl-native, the host perl is sufficient. | ||
40 | EXTRA_OECMAKE += "-DPERL_EXECUTABLE=${HOSTTOOLS_DIR}/perl" | ||
41 | # doc build fails with linker error (??) for libical-glib so disable it | ||
42 | EXTRA_OECMAKE += "-DICAL_BUILD_DOCS=false" | ||
43 | |||
44 | do_install_append () { | ||
45 | # Remove build host references | ||
46 | sed -i \ | ||
47 | -e 's,${STAGING_LIBDIR},${libdir},g' \ | ||
48 | -e 's,${STAGING_INCDIR},${includedir},g' \ | ||
49 | ${D}${libdir}/cmake/LibIcal/LibIcal*.cmake | ||
50 | } | ||