blob: e1360af069b820462bc0c6ec8e8b91e1d719d2f0 [file] [log] [blame]
Brad Bishop23eaf032019-11-20 05:15:02 -05001require ${BPN}.inc
2
3DEPENDS = " \
4 ${BPN}-native intltool-native gperf-native \
Andrew Geissler517393d2023-01-13 08:55:19 -06005 glib-2.0 gtk+3 gtk4 libxml2 icu \
6 dbus db virtual/libiconv zlib libsoup-3.0 libical nss libsecret \
Brad Bishop23eaf032019-11-20 05:15:02 -05007"
8
Andrew Geissler595f6302022-01-24 19:11:47 +00009inherit pkgconfig gsettings gobject-introspection features_check cmake gtk-doc gettext perlnative vala
Brad Bishop23eaf032019-11-20 05:15:02 -050010
Andrew Geissler78b72792022-06-14 06:47:25 -050011ANY_OF_DISTRO_FEATURES = "${GTK3DISTROFEATURES}"
Andrew Geissler517393d2023-01-13 08:55:19 -060012REQUIRED_DISTRO_FEATURES = "opengl"
Brad Bishop23eaf032019-11-20 05:15:02 -050013
14SRC_URI += " \
Andrew Geissler9aee5002022-03-30 16:27:02 +000015 file://0001-cmake-Do-not-export-CC-into-gir-compiler.patch \
Brad Bishop23eaf032019-11-20 05:15:02 -050016 file://0001-CMakeLists.txt-Remove-TRY_RUN-for-iconv.patch \
17 file://0002-CMakeLists.txt-remove-CHECK_C_SOURCE_RUNS-check.patch \
18 file://0003-contact-Replace-the-Novell-sample-contact-with-somet.patch \
19 file://0004-call-native-helpers.patch \
20 file://iconv-detect.h \
21"
22
23LKSTRFTIME = "HAVE_LKSTRFTIME=ON"
Patrick Williams213cb262021-08-07 19:21:33 -050024LKSTRFTIME:libc-musl = "HAVE_LKSTRFTIME=OFF"
Brad Bishop23eaf032019-11-20 05:15:02 -050025
Brad Bishop23eaf032019-11-20 05:15:02 -050026EXTRA_OECMAKE = " \
27 -DSYSCONF_INSTALL_DIR=${sysconfdir} \
Andrew Geissler595f6302022-01-24 19:11:47 +000028 -DVAPIGEN=${STAGING_BINDIR_NATIVE}/vapigen \
29 ${@bb.utils.contains('GI_DATA_ENABLED', 'True', '-DENABLE_INTROSPECTION=ON -DENABLE_VALA_BINDINGS=ON', '-DENABLE_INTROSPECTION=OFF', d)} \
Brad Bishop23eaf032019-11-20 05:15:02 -050030 -D${LKSTRFTIME} \
31 -DLIB_SUFFIX=${@d.getVar('baselib').replace('lib', '')} \
32"
33
Andrew Geissler7e0e3c02022-02-25 20:34:39 +000034EXTRA_OECMAKE:append:class-target = " -DG_IR_COMPILER=${STAGING_BINDIR}/g-ir-compiler-wrapper"
35EXTRA_OECMAKE:append:class-target = " -DG_IR_SCANNER=${STAGING_BINDIR}/g-ir-scanner-wrapper"
36
Andrew Geissler517393d2023-01-13 08:55:19 -060037PACKAGECONFIG ?= "oauth"
Brad Bishop23eaf032019-11-20 05:15:02 -050038
Andrew Geissler517393d2023-01-13 08:55:19 -060039PACKAGECONFIG[canberra] = "-DENABLE_CANBERRA=ON,-DENABLE_CANBERRA=OFF,libcanberra"
Andrew Geisslerfc113ea2023-03-31 09:59:46 -050040PACKAGECONFIG[oauth] = "-DENABLE_OAUTH2_WEBKITGTK4=ON -DENABLE_OAUTH2_WEBKITGTK=OFF,-DENABLE_OAUTH2_WEBKITGTK4=OFF -DENABLE_OAUTH2_WEBKITGTK=OFF,webkitgtk json-glib"
Andrew Geissler517393d2023-01-13 08:55:19 -060041PACKAGECONFIG[goa] = "-DENABLE_GOA=ON,-DENABLE_GOA=OFF,gnome-online-accounts"
42PACKAGECONFIG[kerberos] = "-DWITH_KRB5=ON,-DWITH_KRB5=OFF,krb5"
Brad Bishop23eaf032019-11-20 05:15:02 -050043# BROKEN: due missing pkg-config in openldap eds' cmake finds host-libs when
44# searching for openldap-libs
45PACKAGECONFIG[openldap] = "-DWITH_OPENLDAP=ON,-DWITH_OPENLDAP=OFF,openldap"
Andrew Geissler517393d2023-01-13 08:55:19 -060046PACKAGECONFIG[weather] = "-DENABLE_WEATHER=ON,-DENABLE_WEATHER=OFF,libgweather4"
47
Brad Bishop23eaf032019-11-20 05:15:02 -050048
49# -ldb needs this on some platforms
50LDFLAGS += "-lpthread -lgmodule-2.0 -lgthread-2.0"
51
Patrick Williams58776372022-04-13 09:07:35 -050052# invokes libraries from build host
53GI_DATA_ENABLED:libc-musl="False"
54
Patrick Williams213cb262021-08-07 19:21:33 -050055do_configure:append () {
Brad Bishop23eaf032019-11-20 05:15:02 -050056 cp ${WORKDIR}/iconv-detect.h ${S}/src
Andrew Geissler595f6302022-01-24 19:11:47 +000057 # avoid writing perl-native path into csv2vcard shebang
58 sed -i "s|@PERL@|${bindir}/perl|" ${S}/src/tools/addressbook-export/csv2vcard.in
Brad Bishop23eaf032019-11-20 05:15:02 -050059}
60
Patrick Williams213cb262021-08-07 19:21:33 -050061FILES:${PN} =+ " \
Brad Bishop23eaf032019-11-20 05:15:02 -050062 ${datadir}/dbus-1 \
63 ${datadir}/evolution-data-server-*/ui/ \
64 ${systemd_user_unitdir} \
65"
66
Patrick Williams213cb262021-08-07 19:21:33 -050067RDEPENDS:${PN} += "perl"