blob: 2303b8f18087e80d42db590a6a61d94ef426ad71 [file] [log] [blame]
Brad Bishop316dfdd2018-06-25 12:45:53 -04001SUMMARY = "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 += " \
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"
27SRC_URI[archive.md5sum] = "568a21a4df4e0ec985c849b38fc66908"
28SRC_URI[archive.sha256sum] = "63b1ae5f76be818862f455bf841b5ebb1ec3e1f4df6d3a16dc2be348b7e0a1c5"
29
30LKSTRFTIME = "HAVE_LKSTRFTIME=ON"
31LKSTRFTIME_libc-musl = "HAVE_LKSTRFTIME=OFF"
32
33EXTRA_OECMAKE = " \
34 -DWITH_KRB5=OFF \
35 -DENABLE_GOA=OFF \
36 -DENABLE_UOA=OFF \
37 -DENABLE_GOOGLE_AUTH=OFF \
38 -DENABLE_WEATHER=OFF \
39 -D${LKSTRFTIME} \
40"
41
42PACKAGECONFIG ??= ""
43PACKAGECONFIG[openldap] = "-DWITH_OPENLDAP=ON,-DWITH_OPENLDAP=OFF,openldap"
44
45EXTRA_OECONF = "--with-libdb=${STAGING_DIR_HOST}${prefix} \
46 --disable-nntp --disable-gtk-doc"
47
48# -ldb needs this on some platforms
49LDFLAGS += "-lpthread -lgmodule-2.0 -lgthread-2.0"
50
51do_configure_append () {
52 cp ${WORKDIR}/iconv-detect.h ${S}/src
53
54 # fix native perl shebang
55 sed -i 's:${STAGING_BINDIR_NATIVE}/perl-native:${bindir}:' ${B}/src/tools/addressbook-export/csv2vcard
56}
57
58do_compile_prepend() {
59 export GIR_EXTRA_LIBS_PATH="${B}/camel/.libs:${B}/libedataserver/.libs"
60}
61
62
63PACKAGES =+ "libcamel libcamel-dev libebook libebook-dev libecal libecal-dev \
64 libedata-book libedata-book-dev libedata-cal libedata-cal-dev \
65 libedataserver libedataserver-dev \
66 libedataserverui libedataserverui-dev"
67
68FILES_${PN} =+ "${systemd_user_unitdir} \
69 ${datadir}/dbus-1 \
70 ${datadir}/evolution-data-server-*/ui/"
71RDEPENDS_${PN} += "perl"
72
73FILES_${PN}-dev =+ "${libdir}/pkgconfig/evolution-data-server-*.pc"
74FILES_${PN}-dbg =+ "${libdir}/evolution-data-server*/camel-providers/.debug \
75 ${libdir}/evolution-data-server*/calendar-backends/.debug \
76 ${libdir}/evolution-data-server*/addressbook-backends/.debug \
77 ${libdir}/evolution-data-server*/extensions/.debug/"
78
79RRECOMMENDS_${PN}-dev += "libecal-dev libebook-dev"
80
81FILES_libcamel = "${libdir}/libcamel-*.so.* \
82 ${libdir}/libcamel-provider-*.so.* \
83 ${libdir}/evolution-data-server*/camel-providers/*.so \
84 ${libdir}/evolution-data-server*/camel-providers/*.urls"
85FILES_libcamel-dev = "${libdir}/libcamel-*.so ${libdir}/libcamel-provider-*.so \
86 ${libdir}/pkgconfig/camel*pc \
87 ${libdir}/evolution-data-server*/camel-providers/*.la \
88 ${includedir}/evolution-data-server*/camel"
89
90FILES_libebook = "${libdir}/libebook-*.so.*"
91FILES_libebook-dev = "${libdir}/libebook-1.2.so \
92 ${libdir}/pkgconfig/libebook-*.pc \
93 ${includedir}/evolution-data-server*/libebook/*.h"
94RRECOMMENDS_libebook = "libedata-book"
95
96FILES_libecal = "${libdir}/libecal-*.so.* \
97 ${datadir}/evolution-data-server-1.4/zoneinfo"
98FILES_libecal-dev = "${libdir}/libecal-*.so ${libdir}/pkgconfig/libecal-*.pc \
99 ${includedir}/evolution-data-server*/libecal/*.h \
100 ${includedir}/evolution-data-server*/libical/*.h"
101RRECOMMENDS_libecal = "libedata-cal tzdata"
102
103FILES_libedata-book = "${libexecdir}/e-addressbook-factory \
104 ${datadir}/dbus-1/services/*.AddressBook.service \
105 ${libdir}/libedata-book-*.so.* \
106 ${libdir}/evolution-data-server-*/extensions/libebook*.so \
107 ${datadir}/evolution-data-server-1.4/weather/Locations.xml"
108FILES_libedata-book-dev = "${libdir}/libedata-book-*.so \
109 ${libdir}/pkgconfig/libedata-book-*.pc \
110 ${libdir}/evolution-data-server-*/extensions/libebook*.la \
111 ${includedir}/evolution-data-server-*/libedata-book"
112
113FILES_libedata-cal = "${libexecdir}/e-calendar-factory \
114 ${datadir}/dbus-1/services/*.Calendar.service \
115 ${libdir}/libedata-cal-*.so.* \
116 ${libdir}/evolution-data-server-*/extensions/libecal*.so"
117FILES_libedata-cal-dev = "${libdir}/libedata-cal-*.so \
118 ${libdir}/pkgconfig/libedata-cal-*.pc \
119 ${includedir}/evolution-data-server-*/libedata-cal \
120 ${libdir}/evolution-data-server-*/extensions/libecal*.la"
121
122FILES_libedataserver = "${libdir}/libedataserver-*.so.*"
123FILES_libedataserver-dev = "${libdir}/libedataserver-*.so \
124 ${libdir}/pkgconfig/libedataserver-*.pc \
125 ${includedir}/evolution-data-server-*/libedataserver/*.h"
126
127FILES_libedataserverui = "${libdir}/libedataserverui-*.so.* ${datadir}/evolution-data-server-1.4/glade/*.glade"
128FILES_libedataserverui-dev = "${libdir}/libedataserverui-*.so \
129 ${libdir}/pkgconfig/libedataserverui-*.pc \
130 ${includedir}/evolution-data-server-*/libedataserverui/*.h"