summaryrefslogtreecommitdiff
path: root/mail/sonicmail
diff options
context:
space:
mode:
authorJeremy Lea <reg@FreeBSD.org>2000-10-05 07:17:31 +0000
committerJeremy Lea <reg@FreeBSD.org>2000-10-05 07:17:31 +0000
commitc76cf46929051f9dd322487d888c82f104026e6d (patch)
treef415aeddadc6782b1474ebd88710bfa86cf08711 /mail/sonicmail
parentImplement USE_GNOME, part 1. (diff)
Implement USE_GNOME, part 2.
Notes
Notes: svn path=/head/; revision=33429
Diffstat (limited to 'mail/sonicmail')
-rw-r--r--mail/sonicmail/Makefile10
-rw-r--r--mail/sonicmail/files/patch-aa6
2 files changed, 11 insertions, 5 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>
diff --git a/mail/sonicmail/files/patch-aa b/mail/sonicmail/files/patch-aa
index d0e58373185e..2986fa716524 100644
--- a/mail/sonicmail/files/patch-aa
+++ b/mail/sonicmail/files/patch-aa
@@ -6,8 +6,8 @@
# Change these to the default location of the pixmaps/wav files:
-XPMSPATH = /usr/share/pixmaps/sonicmail
-WAVSPATH = /usr/share/sound/sonicmail
-+XPMSPATH = /usr/X11R6/share/pixmaps/sonicmail
-+WAVSPATH = /usr/X11R6/share/sound/sonicmail
++XPMSPATH = ${PREFIX}/share/pixmaps/sonicmail
++WAVSPATH = ${PREFIX}/share/sound/sonicmail
# Change to 1 to activate debug mode:
SONICMAIL_DEBUG = 0
@@ -16,7 +16,7 @@
CFLAGS = -Wall $($(OSTYPE)_Flags) -O2 `gnome-config --cflags applets` $(DEFINES)
-LFLAGS = `gnome-config --libs applets` `gtk-config --libs gthread` -lpthread
-+LFLAGS = `gnome-config --libs applets` `gtk12-config --libs gthread`
++LFLAGS = `gnome-config --libs applets` `${GTK_CONFIG} --libs gthread`
# Define platform specific flags/libraries below:
Linux_Flags = -DLINUX