summaryrefslogtreecommitdiff
path: root/mail/sonicmail/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'mail/sonicmail/Makefile')
-rw-r--r--mail/sonicmail/Makefile10
1 files changed, 8 insertions, 2 deletions
diff --git a/mail/sonicmail/Makefile b/mail/sonicmail/Makefile
index 74e85ad3e819..6c166a89a5d2 100644
--- a/mail/sonicmail/Makefile
+++ b/mail/sonicmail/Makefile
@@ -12,8 +12,14 @@ MASTER_SITES= http://download.sourceforge.net/sonicmail/
MAINTAINER= nakai@FreeBSD.org
-LIB_DEPENDS= panel_applet.4:${PORTSDIR}/x11/gnomecore
-
USE_X_PREFIX= yes
+USE_GNOME= yes
+
+pre-patch:
+ @${PERL} -pi -e 's|-lpthread|-pthread|g ; \
+ s|DATADIRNAME=lib|DATADIRNAME=share|g' ${WRKSRC}/configure
+ @find ${WRKSRC} -name "Makefile.in" | xargs ${PERL} -pi -e \
+ 's|\$\(datadir\)/gnome/|\$\(datadir\)/|g ; \
+ s|\$\(datadir\)/locale|\$\(prefix\)/share/locale|g'
.include <bsd.port.mk>