Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 1 | SUMMARY = "Evolution database backend server" |
| 2 | HOMEPAGE = "http://www.gnome.org/projects/evolution/" |
| 3 | BUGTRACKER = "https://bugzilla.gnome.org/" |
| 4 | |
| 5 | LICENSE = "LGPLv2 & LGPLv2+" |
| 6 | LIC_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 | |
| 11 | DEPENDS = " \ |
| 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 | |
| 17 | inherit distro_features_check gnomebase cmake gtk-doc gettext gobject-introspection perlnative pythonnative |
| 18 | |
| 19 | REQUIRED_DISTRO_FEATURES = "x11" |
| 20 | |
| 21 | SRC_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 | " |
| 27 | SRC_URI[archive.md5sum] = "568a21a4df4e0ec985c849b38fc66908" |
| 28 | SRC_URI[archive.sha256sum] = "63b1ae5f76be818862f455bf841b5ebb1ec3e1f4df6d3a16dc2be348b7e0a1c5" |
| 29 | |
| 30 | LKSTRFTIME = "HAVE_LKSTRFTIME=ON" |
| 31 | LKSTRFTIME_libc-musl = "HAVE_LKSTRFTIME=OFF" |
| 32 | |
| 33 | EXTRA_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 | |
| 42 | PACKAGECONFIG ??= "" |
| 43 | PACKAGECONFIG[openldap] = "-DWITH_OPENLDAP=ON,-DWITH_OPENLDAP=OFF,openldap" |
| 44 | |
| 45 | EXTRA_OECONF = "--with-libdb=${STAGING_DIR_HOST}${prefix} \ |
| 46 | --disable-nntp --disable-gtk-doc" |
| 47 | |
| 48 | # -ldb needs this on some platforms |
| 49 | LDFLAGS += "-lpthread -lgmodule-2.0 -lgthread-2.0" |
| 50 | |
| 51 | do_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 | |
| 58 | do_compile_prepend() { |
| 59 | export GIR_EXTRA_LIBS_PATH="${B}/camel/.libs:${B}/libedataserver/.libs" |
| 60 | } |
| 61 | |
| 62 | |
| 63 | PACKAGES =+ "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 | |
| 68 | FILES_${PN} =+ "${systemd_user_unitdir} \ |
| 69 | ${datadir}/dbus-1 \ |
| 70 | ${datadir}/evolution-data-server-*/ui/" |
| 71 | RDEPENDS_${PN} += "perl" |
| 72 | |
| 73 | FILES_${PN}-dev =+ "${libdir}/pkgconfig/evolution-data-server-*.pc" |
| 74 | FILES_${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 | |
| 79 | RRECOMMENDS_${PN}-dev += "libecal-dev libebook-dev" |
| 80 | |
| 81 | FILES_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" |
| 85 | FILES_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 | |
| 90 | FILES_libebook = "${libdir}/libebook-*.so.*" |
| 91 | FILES_libebook-dev = "${libdir}/libebook-1.2.so \ |
| 92 | ${libdir}/pkgconfig/libebook-*.pc \ |
| 93 | ${includedir}/evolution-data-server*/libebook/*.h" |
| 94 | RRECOMMENDS_libebook = "libedata-book" |
| 95 | |
| 96 | FILES_libecal = "${libdir}/libecal-*.so.* \ |
| 97 | ${datadir}/evolution-data-server-1.4/zoneinfo" |
| 98 | FILES_libecal-dev = "${libdir}/libecal-*.so ${libdir}/pkgconfig/libecal-*.pc \ |
| 99 | ${includedir}/evolution-data-server*/libecal/*.h \ |
| 100 | ${includedir}/evolution-data-server*/libical/*.h" |
| 101 | RRECOMMENDS_libecal = "libedata-cal tzdata" |
| 102 | |
| 103 | FILES_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" |
| 108 | FILES_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 | |
| 113 | FILES_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" |
| 117 | FILES_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 | |
| 122 | FILES_libedataserver = "${libdir}/libedataserver-*.so.*" |
| 123 | FILES_libedataserver-dev = "${libdir}/libedataserver-*.so \ |
| 124 | ${libdir}/pkgconfig/libedataserver-*.pc \ |
| 125 | ${includedir}/evolution-data-server-*/libedataserver/*.h" |
| 126 | |
| 127 | FILES_libedataserverui = "${libdir}/libedataserverui-*.so.* ${datadir}/evolution-data-server-1.4/glade/*.glade" |
| 128 | FILES_libedataserverui-dev = "${libdir}/libedataserverui-*.so \ |
| 129 | ${libdir}/pkgconfig/libedataserverui-*.pc \ |
| 130 | ${includedir}/evolution-data-server-*/libedataserverui/*.h" |