summaryrefslogtreecommitdiffstats
path: root/meta/recipes-support/libical
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@intel.com>2019-07-26 11:21:58 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-07-27 22:45:30 +0100
commit685bcf1c21fc1961ed67855883a286794cb9e47c (patch)
tree8e70ce061f54540482a1566fb639453437b9e57d /meta/recipes-support/libical
parent41a5dbd16b0c9f5f97e7a160830cf7ca5de52ec6 (diff)
downloadpoky-685bcf1c21fc1961ed67855883a286794cb9e47c.tar.gz
libical: upgrade to 3.0.5
Add PACKAGECONFIG options for ICU (enabled by default) and BDB (disabled by default). Note that this upgrade includes some API breakage. (From OE-Core rev: 456b6abcbdb05a4b0ffc09458da15e747870ffa8) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-support/libical')
-rw-r--r--meta/recipes-support/libical/libical/0001-CMakeLists.txt-libical.pc.in-fix-iculibs-remove-full.patch44
-rw-r--r--meta/recipes-support/libical/libical_2.0.0.bb28
-rw-r--r--meta/recipes-support/libical/libical_3.0.5.bb35
3 files changed, 35 insertions, 72 deletions
diff --git a/meta/recipes-support/libical/libical/0001-CMakeLists.txt-libical.pc.in-fix-iculibs-remove-full.patch b/meta/recipes-support/libical/libical/0001-CMakeLists.txt-libical.pc.in-fix-iculibs-remove-full.patch
deleted file mode 100644
index 6db75f5086..0000000000
--- a/meta/recipes-support/libical/libical/0001-CMakeLists.txt-libical.pc.in-fix-iculibs-remove-full.patch
+++ /dev/null
@@ -1,44 +0,0 @@
1From 1a41069c0dc054e59cd76fc3d8cf7cc2a78b5e8d Mon Sep 17 00:00:00 2001
2From: Allen Winter <allen.winter@kdab.com>
3Date: Sat, 3 Sep 2016 16:56:29 -0400
4Subject: [PATCH] CMakeLists.txt, libical.pc.in - fix iculibs (remove full path) ISSUE: 227
5
6Upstream-Status: Backport
7
8Signed-off-by: Maxin B. John <maxin.john@intel.com>
9----
10diff -Naur libical-2.0.0-orig/CMakeLists.txt libical-2.0.0/CMakeLists.txt
11--- libical-2.0.0-orig/CMakeLists.txt 2016-09-08 18:05:06.166049345 +0300
12+++ libical-2.0.0/CMakeLists.txt 2016-09-08 18:05:45.201561334 +0300
13@@ -128,6 +128,7 @@
14 # RSCALE info at http://tools.ietf.org/html/rfc7529
15 find_package(ICU)
16 if(ICU_FOUND)
17+ set(ICUUC_LIBS "-licuuc") #for libical.pc
18 set(HAVE_LIBICU 1)
19 if(ICU_MAJOR_VERSION VERSION_GREATER 50)
20 set(HAVE_ICU_DANGI TRUE)
21@@ -137,6 +138,7 @@
22 endif()
23 if(ICU_I18N_FOUND)
24 set(HAVE_LIBICU_I18N 1)
25+ set(ICUI18N_LIBS "-licui18n") #for libical.pc
26 endif()
27
28 # MSVC specific definitions
29diff -Naur libical-2.0.0-orig/libical.pc.in libical-2.0.0/libical.pc.in
30--- libical-2.0.0-orig/libical.pc.in 2015-12-28 23:44:53.000000000 +0200
31+++ libical-2.0.0/libical.pc.in 2016-09-08 18:09:12.991963597 +0300
32@@ -3,10 +3,10 @@
33 libdir=@libdir@
34 includedir=@includedir@
35 threadslib=@PTHREAD_LIBS@
36-iculib=@ICU_LIBRARIES@ @ICU_I18N_LIBRARIES@
37+iculibs=@ICUUC_LIBS@ @ICUI18N_LIBS@
38
39 Name: libical
40 Description: An implementation of basic iCAL protocols
41 Version: @VERSION@
42-Libs: -L${libdir} -lical -licalss -licalvcal ${threadslib} ${iculib}
43+Libs: -L${libdir} -lical -licalss -licalvcal ${threadslib} ${iculibs}
44 Cflags: -I${includedir}
diff --git a/meta/recipes-support/libical/libical_2.0.0.bb b/meta/recipes-support/libical/libical_2.0.0.bb
deleted file mode 100644
index 7dffdcfb01..0000000000
--- a/meta/recipes-support/libical/libical_2.0.0.bb
+++ /dev/null
@@ -1,28 +0,0 @@
1SUMMARY = "iCal and scheduling (RFC 2445, 2446, 2447) library"
2HOMEPAGE = "https://github.com/libical/libical"
3BUGTRACKER = "https://github.com/libical/libical/issues"
4LICENSE = "LGPLv2.1 | MPL-1.0"
5LIC_FILES_CHKSUM = "file://COPYING;md5=d4fc58309d8ed46587ac63bb449d82f8 \
6 file://LICENSE;md5=d1a0891cd3e582b3e2ec8fe63badbbb6"
7SECTION = "libs"
8
9SRC_URI = "https://github.com/${BPN}/${BPN}/releases/download/v${PV}/${BP}.tar.gz \
10 file://0001-CMakeLists.txt-libical.pc.in-fix-iculibs-remove-full.patch \
11 "
12DEPENDS = "icu"
13
14SRC_URI[md5sum] = "6bf8e5f5a3ba88baf390d0134e05d76e"
15SRC_URI[sha256sum] = "654c11f759c19237be39f6ad401d917e5a05f36f1736385ed958e60cf21456da"
16UPSTREAM_CHECK_URI = "https://github.com/libical/libical/releases"
17
18inherit cmake pkgconfig
19
20# No need to use perl-native, the host perl is sufficient.
21EXTRA_OECMAKE += "-DPERL_EXECUTABLE=${HOSTTOOLS_DIR}/perl"
22
23do_install_append_class-target () {
24 # Remove build host references
25 sed -i \
26 -e 's,${STAGING_LIBDIR},${libdir},g' \
27 ${D}${libdir}/cmake/LibIcal/LibIcalTargets-noconfig.cmake
28}
diff --git a/meta/recipes-support/libical/libical_3.0.5.bb b/meta/recipes-support/libical/libical_3.0.5.bb
new file mode 100644
index 0000000000..3832b20bf1
--- /dev/null
+++ b/meta/recipes-support/libical/libical_3.0.5.bb
@@ -0,0 +1,35 @@
1SUMMARY = "iCal and scheduling (RFC 2445, 2446, 2447) library"
2HOMEPAGE = "https://github.com/libical/libical"
3BUGTRACKER = "https://github.com/libical/libical/issues"
4LICENSE = "LGPLv2.1 | MPL-2.0"
5LIC_FILES_CHKSUM = "file://LICENSE;md5=1910a2a76ddf6a9ba369182494170d87 \
6 file://LICENSE.LGPL21.txt;md5=933adb561f159e7c3da079536f0ed871 \
7 file://LICENSE.MPL2.txt;md5=9741c346eef56131163e13b9db1241b3"
8SECTION = "libs"
9
10SRC_URI = "https://github.com/${BPN}/${BPN}/releases/download/v${PV}/${BP}.tar.gz"
11
12SRC_URI[md5sum] = "9be4e8a1739a9c27e06aa8ce66b8cb34"
13SRC_URI[sha256sum] = "7ad550c8c49c9b9983658e3ab3e68b1eee2439ec17b169a6b1e6ecb5274e78e6"
14UPSTREAM_CHECK_URI = "https://github.com/libical/libical/releases"
15
16inherit cmake pkgconfig
17
18PACKAGECONFIG ??= "icu"
19PACKAGECONFIG[bdb] = ",-DCMAKE_DISABLE_FIND_PACKAGE_BDB=True,db"
20# ICU is used for RSCALE (RFC7529) support
21PACKAGECONFIG[icu] = ",-DCMAKE_DISABLE_FIND_PACKAGE_ICU=True,icu"
22
23# No need to use perl-native, the host perl is sufficient.
24EXTRA_OECMAKE += "-DPERL_EXECUTABLE=${HOSTTOOLS_DIR}/perl"
25
26# The glib library can't be cross-compiled, disable for now.
27# https://github.com/libical/libical/issues/394
28EXTRA_OECMAKE += "-DICAL_GLIB=false"
29
30do_install_append_class-target () {
31 # Remove build host references
32 sed -i \
33 -e 's,${STAGING_LIBDIR},${libdir},g' \
34 ${D}${libdir}/cmake/LibIcal/LibIcal*.cmake
35}