--- Makefile (revision 374834) +++ Makefile (working copy) @@ -22,8 +22,8 @@ libnotify.so:${PORTSDIR}/devel/libnotify RUN_DEPENDS= highlight:${PORTSDIR}/textproc/highlight -USES= desktop-file-utils bison gettext gmake libtool \ - pathfix perl5 pkgconfig tar:xz +USES= bison compiler:c++11-lib desktop-file-utils gettext gmake \ + libtool pathfix perl5 pkgconfig tar:xz USE_GNOME= evolutiondataserver3 gnomedesktop3 gnomeprefix gtkhtml4 \ intlhack GNU_CONFIGURE= yes @@ -114,4 +114,10 @@ ${WRKSRC}/modules/bogofilter/evolution-bogofilter.c # @${SH} ${FILESDIR}/fix-plugins.sh ${WRKSRC} -.include +.include + +.if ${CHOSEN_COMPILER_TYPE} == gcc +LDFLAGS+= -lstdc++ +.endif + +.include