blob: 1949fc7fdd41977810f560557118213e6fefc119 [file] [log] [blame]
Brad Bishop1a4b7ee2018-12-16 17:11:34 -08001SUMMARY = "Evolution database backend server"
2HOMEPAGE = "http://www.gnome.org/projects/evolution/"
3BUGTRACKER = "https://bugzilla.gnome.org/"
4
5LICENSE = "LGPLv2 & LGPLv2+"
6LIC_FILES_CHKSUM = "file://COPYING;md5=6a6e689d19255cf0557f3fe7d7068212 \
7 file://src/camel/camel.h;endline=24;md5=342fc5e9357254bc30c24e43ae47d9a1 \
8 file://src/libedataserver/e-data-server-util.h;endline=20;md5=8f21a9c80ea82a4fb80b5f959f672543 \
9 file://src/calendar/libecal/e-cal.h;endline=24;md5=e699ec3866f73f129f7a4ffffdcfc196"
10
11DEPENDS = " \
12 intltool-native gperf-native \
13 glib-2.0 gtk+3 gconf libgnome-keyring libgdata \
14 dbus db virtual/libiconv zlib libsoup-2.4 libical nss libsecret \
15"
16
17inherit distro_features_check gnomebase cmake gtk-doc gettext gobject-introspection perlnative pythonnative
18
19REQUIRED_DISTRO_FEATURES = "x11"
20
21SRC_URI = "${GNOME_MIRROR}/${GNOMEBN}/${@gnome_verdir("${PV}")}/${GNOMEBN}-${PV}.tar.${GNOME_COMPRESS_TYPE};name=archive \
22 file://0001-CMakeLists.txt-Remove-TRY_RUN-for-iconv.patch \
23 file://0002-CMakeLists.txt-remove-CHECK_C_SOURCE_RUNS-check.patch \
24 file://0003-contact-Replace-the-Novell-sample-contact-with-somet.patch \
25 file://iconv-detect.h \
26 file://0004-Use-recommended-way-to-handle-the-icu-namespace.patch \
27 "
28SRC_URI[archive.md5sum] = "ae7bbf543b2c3ff79af27e0edea5d472"
29SRC_URI[archive.sha256sum] = "e43aa1847ddc02965f560261ef88d18fb8704eddaa55555bf96b884a33e510ec"
30
31LKSTRFTIME = "HAVE_LKSTRFTIME=ON"
32LKSTRFTIME_libc-musl = "HAVE_LKSTRFTIME=OFF"
33
34EXTRA_OECMAKE = " \
35 -DWITH_KRB5=OFF \
36 -DENABLE_GOA=OFF \
37 -DENABLE_UOA=OFF \
38 -DENABLE_GOOGLE_AUTH=OFF \
39 -DENABLE_WEATHER=OFF \
40 -D${LKSTRFTIME} \
Brad Bishop19323692019-04-05 15:28:33 -040041 -DLIB_SUFFIX=${@d.getVar('baselib').replace('lib', '')} \
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080042"
43
44PACKAGECONFIG ??= ""
45PACKAGECONFIG[openldap] = "-DWITH_OPENLDAP=ON,-DWITH_OPENLDAP=OFF,openldap"
46
47EXTRA_OECONF = "--with-libdb=${STAGING_DIR_HOST}${prefix} \
48 --disable-nntp --disable-gtk-doc"
49
50# -ldb needs this on some platforms
51LDFLAGS += "-lpthread -lgmodule-2.0 -lgthread-2.0"
52
53do_configure_append () {
54 cp ${WORKDIR}/iconv-detect.h ${S}/src
55
56 # fix native perl shebang
57 sed -i 's:${STAGING_BINDIR_NATIVE}/perl-native:${bindir}:' ${B}/src/tools/addressbook-export/csv2vcard
58}
59
60do_compile_prepend() {
61 export GIR_EXTRA_LIBS_PATH="${B}/camel/.libs:${B}/libedataserver/.libs"
62}
63
64
65PACKAGES =+ "libcamel libcamel-dev libebook libebook-dev libecal libecal-dev \
66 libedata-book libedata-book-dev libedata-cal libedata-cal-dev \
67 libedataserver libedataserver-dev \
68 libedataserverui libedataserverui-dev"
69
70FILES_${PN} =+ "${systemd_user_unitdir} \
71 ${datadir}/dbus-1 \
72 ${datadir}/evolution-data-server-*/ui/"
73RDEPENDS_${PN} += "perl"
74
75FILES_${PN}-dev =+ "${libdir}/pkgconfig/evolution-data-server-*.pc"
76FILES_${PN}-dbg =+ "${libdir}/evolution-data-server*/camel-providers/.debug \
77 ${libdir}/evolution-data-server*/calendar-backends/.debug \
78 ${libdir}/evolution-data-server*/addressbook-backends/.debug \
79 ${libdir}/evolution-data-server*/extensions/.debug/"
80
81RRECOMMENDS_${PN}-dev += "libecal-dev libebook-dev"
82
83FILES_libcamel = "${libdir}/libcamel-*.so.* \
84 ${libdir}/libcamel-provider-*.so.* \
85 ${libdir}/evolution-data-server*/camel-providers/*.so \
86 ${libdir}/evolution-data-server*/camel-providers/*.urls"
87FILES_libcamel-dev = "${libdir}/libcamel-*.so ${libdir}/libcamel-provider-*.so \
88 ${libdir}/pkgconfig/camel*pc \
89 ${libdir}/evolution-data-server*/camel-providers/*.la \
90 ${includedir}/evolution-data-server*/camel"
91
92FILES_libebook = "${libdir}/libebook-*.so.*"
93FILES_libebook-dev = "${libdir}/libebook-1.2.so \
94 ${libdir}/pkgconfig/libebook-*.pc \
95 ${includedir}/evolution-data-server*/libebook/*.h"
96RRECOMMENDS_libebook = "libedata-book"
97
98FILES_libecal = "${libdir}/libecal-*.so.* \
99 ${datadir}/evolution-data-server-1.4/zoneinfo"
100FILES_libecal-dev = "${libdir}/libecal-*.so ${libdir}/pkgconfig/libecal-*.pc \
101 ${includedir}/evolution-data-server*/libecal/*.h \
102 ${includedir}/evolution-data-server*/libical/*.h"
103RRECOMMENDS_libecal = "libedata-cal tzdata"
104
105FILES_libedata-book = "${libexecdir}/e-addressbook-factory \
106 ${datadir}/dbus-1/services/*.AddressBook.service \
107 ${libdir}/libedata-book-*.so.* \
108 ${libdir}/evolution-data-server-*/extensions/libebook*.so \
109 ${datadir}/evolution-data-server-1.4/weather/Locations.xml"
110FILES_libedata-book-dev = "${libdir}/libedata-book-*.so \
111 ${libdir}/pkgconfig/libedata-book-*.pc \
112 ${libdir}/evolution-data-server-*/extensions/libebook*.la \
113 ${includedir}/evolution-data-server-*/libedata-book"
114
115FILES_libedata-cal = "${libexecdir}/e-calendar-factory \
116 ${datadir}/dbus-1/services/*.Calendar.service \
117 ${libdir}/libedata-cal-*.so.* \
118 ${libdir}/evolution-data-server-*/extensions/libecal*.so"
119FILES_libedata-cal-dev = "${libdir}/libedata-cal-*.so \
120 ${libdir}/pkgconfig/libedata-cal-*.pc \
121 ${includedir}/evolution-data-server-*/libedata-cal \
122 ${libdir}/evolution-data-server-*/extensions/libecal*.la"
123
124FILES_libedataserver = "${libdir}/libedataserver-*.so.*"
125FILES_libedataserver-dev = "${libdir}/libedataserver-*.so \
126 ${libdir}/pkgconfig/libedataserver-*.pc \
127 ${includedir}/evolution-data-server-*/libedataserver/*.h"
128
129FILES_libedataserverui = "${libdir}/libedataserverui-*.so.* ${datadir}/evolution-data-server-1.4/glade/*.glade"
130FILES_libedataserverui-dev = "${libdir}/libedataserverui-*.so \
131 ${libdir}/pkgconfig/libedataserverui-*.pc \
132 ${includedir}/evolution-data-server-*/libedataserverui/*.h"