blob: 103bad1b68a8a839120e75ac56d4555176143487 [file] [log] [blame]
Brad Bishop23eaf032019-11-20 05:15:02 -05001require ${BPN}.inc
2
3DEPENDS = " \
Patrick Williams169d7bc2024-01-05 11:33:25 -06004 ${BPN}-native gperf-native \
Patrick Williams03514f12024-04-05 07:04:11 -05005 glib-2.0 json-glib gtk4 libxml2 icu \
Andrew Geissler517393d2023-01-13 08:55:19 -06006 dbus db virtual/libiconv zlib libsoup-3.0 libical nss libsecret \
Brad Bishop23eaf032019-11-20 05:15:02 -05007"
8
Patrick Williams56b44a92024-01-19 08:49:29 -06009inherit pkgconfig gsettings gobject-introspection features_check 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', '')} \
Patrick Williams03514f12024-04-05 07:04:11 -050032 -DENABLE_GTK=OFF \
33 -DENABLE_GTK4=ON \
34 -DENABLE_INSTALLED_TESTS=OFF \
35 -DENABLE_EXAMPLES=OFF \
36 -DENABLE_MAINTAINER_MODE=OFF \
Brad Bishop23eaf032019-11-20 05:15:02 -050037"
38
Andrew Geissler7e0e3c02022-02-25 20:34:39 +000039EXTRA_OECMAKE:append:class-target = " -DG_IR_COMPILER=${STAGING_BINDIR}/g-ir-compiler-wrapper"
40EXTRA_OECMAKE:append:class-target = " -DG_IR_SCANNER=${STAGING_BINDIR}/g-ir-scanner-wrapper"
41
Patrick Williams03514f12024-04-05 07:04:11 -050042PACKAGECONFIG ?= "goa oauth"
Brad Bishop23eaf032019-11-20 05:15:02 -050043
Andrew Geissler517393d2023-01-13 08:55:19 -060044PACKAGECONFIG[canberra] = "-DENABLE_CANBERRA=ON,-DENABLE_CANBERRA=OFF,libcanberra"
Patrick Williams03514f12024-04-05 07:04:11 -050045PACKAGECONFIG[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 -060046PACKAGECONFIG[goa] = "-DENABLE_GOA=ON,-DENABLE_GOA=OFF,gnome-online-accounts"
47PACKAGECONFIG[kerberos] = "-DWITH_KRB5=ON,-DWITH_KRB5=OFF,krb5"
Brad Bishop23eaf032019-11-20 05:15:02 -050048# BROKEN: due missing pkg-config in openldap eds' cmake finds host-libs when
49# searching for openldap-libs
50PACKAGECONFIG[openldap] = "-DWITH_OPENLDAP=ON,-DWITH_OPENLDAP=OFF,openldap"
Andrew Geissler517393d2023-01-13 08:55:19 -060051PACKAGECONFIG[weather] = "-DENABLE_WEATHER=ON,-DENABLE_WEATHER=OFF,libgweather4"
52
Brad Bishop23eaf032019-11-20 05:15:02 -050053
54# -ldb needs this on some platforms
55LDFLAGS += "-lpthread -lgmodule-2.0 -lgthread-2.0"
56
Patrick Williams58776372022-04-13 09:07:35 -050057# invokes libraries from build host
58GI_DATA_ENABLED:libc-musl="False"
59
Patrick Williams213cb262021-08-07 19:21:33 -050060do_configure:append () {
Brad Bishop23eaf032019-11-20 05:15:02 -050061 cp ${WORKDIR}/iconv-detect.h ${S}/src
Andrew Geissler595f6302022-01-24 19:11:47 +000062 # avoid writing perl-native path into csv2vcard shebang
63 sed -i "s|@PERL@|${bindir}/perl|" ${S}/src/tools/addressbook-export/csv2vcard.in
Brad Bishop23eaf032019-11-20 05:15:02 -050064}
65
Patrick Williams213cb262021-08-07 19:21:33 -050066FILES:${PN} =+ " \
Brad Bishop23eaf032019-11-20 05:15:02 -050067 ${datadir}/dbus-1 \
68 ${datadir}/evolution-data-server-*/ui/ \
69 ${systemd_user_unitdir} \
70"
71
Patrick Williams213cb262021-08-07 19:21:33 -050072RDEPENDS:${PN} += "perl"