diff --git a/mail/xfmail/Makefile b/mail/xfmail/Makefile index 86a72845f4e5..b100cfb079f4 100644 --- a/mail/xfmail/Makefile +++ b/mail/xfmail/Makefile @@ -48,8 +48,23 @@ USE_GNOME+= esound CONFIGURE_ARGS+= --with-esd-sound .endif +.if defined(WITH_FACES) +LIB_DEPENDS+= compface:${PORTSDIR}/mail/faces +CONFIGURE_ARGS+= --with-faces +.endif + MAN1= xfmail.1 +pre-everything:: + @echo +.ifndef(WITH_ESOUND) + @echo "To build with esound support, restart make and define WITH_ESOUND" +.endif +.ifndef(WITH_FACES) + @echo "To build with faces support, restart make and define WITH_FACES" +.endif + @echo + pre-configure: @(cd ${WRKSRC} && ${SH} autogen.sh); \ ${MAKE} LIBTOOLFILES=aclocal.m4 patch-libtool diff --git a/mail/xfmail/pkg-plist b/mail/xfmail/pkg-plist index aade20735e65..1469a2ca43ad 100644 --- a/mail/xfmail/pkg-plist +++ b/mail/xfmail/pkg-plist @@ -37,3 +37,6 @@ share/xfmail/sign.xpm share/xfmail/spell.xpm share/xfmail/view.xpm @dirrm share/xfmail +@unexec rm -f %D/lib/libface.a +@unexec rm -f %D/lib/libface.so.0 +@unexec rm -f %D/lib/libface.so