diff --git a/gnome2/evolution/evolution.conf b/gnome2/evolution/evolution.conf index 1377dd1e1..053039b7c 100644 --- a/gnome2/evolution/evolution.conf +++ b/gnome2/evolution/evolution.conf @@ -20,7 +20,12 @@ var_append confopt ' ' '--enable-nntp=yes' pkginstalled gnome-pilot-conduits && var_append confopt ' ' '--enable-pilot-conduits=yes' # Add Mono embedded hooks. -pkginstalled mono && var_append confopt ' ' "--enable-mono" +if pkginstalled -f mono; then + var_append confopt ' ' "--enable-mono" + # workaround to find mono headers and libs + mono_majorver="$( pkgprefix ver mono | cut -d '.' -f1)" + var_append CC_WRAPPER_APPEND ' ' "$( pkg-config --cflags --libs mono-$mono_majorver )" +fi # Add python embedded hooks. if pkginstalled -f python; then