aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorpav <pav@FreeBSD.org>2004-07-14 23:46:55 +0800
committerpav <pav@FreeBSD.org>2004-07-14 23:46:55 +0800
commitb29aa8c65d964d801232b6bfed61464b0c27c0f8 (patch)
tree1bbfb12f1f0565429c0f52b78cb836bb98bfcd27 /mail
parentc14b7d98fdf6ec7bf19c30eceec4e835f49e89b5 (diff)
downloadfreebsd-ports-gnome-b29aa8c65d964d801232b6bfed61464b0c27c0f8.tar.gz
freebsd-ports-gnome-b29aa8c65d964d801232b6bfed61464b0c27c0f8.tar.zst
freebsd-ports-gnome-b29aa8c65d964d801232b6bfed61464b0c27c0f8.zip
- Unset USE_GCC=2.95 and add patch to fix build with gcc 3.x
- Respect CFLAGS - Portlint PR: ports/69022 Submitted by: Andrey Slusar <vasallia@ukr.net>
Diffstat (limited to 'mail')
-rw-r--r--mail/mailsync/Makefile1
-rw-r--r--mail/mailsync/files/patch-Makefile7
-rw-r--r--mail/mailsync/files/patch-mailsync.c12
-rw-r--r--mail/mailsync/pkg-plist8
4 files changed, 18 insertions, 10 deletions
diff --git a/mail/mailsync/Makefile b/mail/mailsync/Makefile
index d1e45fddc842..975058be548b 100644
--- a/mail/mailsync/Makefile
+++ b/mail/mailsync/Makefile
@@ -22,7 +22,6 @@ WRKSRC= ${WRKDIR}/${PORTNAME}
USE_GMAKE= yes
USE_REINPLACE= yes
-USE_GCC= 2.95
ALL_TARGET= default
diff --git a/mail/mailsync/files/patch-Makefile b/mail/mailsync/files/patch-Makefile
index 1a463d11bb57..9c43172f9eca 100644
--- a/mail/mailsync/files/patch-Makefile
+++ b/mail/mailsync/files/patch-Makefile
@@ -1,5 +1,5 @@
---- Makefile.orig Thu Oct 24 16:03:07 2002
-+++ Makefile Wed Feb 26 23:39:48 2003
+--- Makefile.orig Thu Oct 24 17:03:07 2002
++++ Makefile Wed Jul 14 04:02:48 2004
@@ -1,32 +1,32 @@
# compiling with g++-3 worked for me with the commented ## lines - tpo
@@ -22,7 +22,8 @@
##CC = g++-3.0
# flags for your compiler
- CFLAGS = -g -O2 -Wall -I$(C)
+-CFLAGS = -g -O2 -Wall -I$(C)
++CFLAGS += -Wall -fno-operator-names -I$(C)
# required libraries
-LDFLAGS = -lm -lssl -lgssapi_krb5
diff --git a/mail/mailsync/files/patch-mailsync.c b/mail/mailsync/files/patch-mailsync.c
index 125e236ccef4..1fa875fbd6f2 100644
--- a/mail/mailsync/files/patch-mailsync.c
+++ b/mail/mailsync/files/patch-mailsync.c
@@ -1,6 +1,14 @@
--- mailsync.c.orig Thu Nov 7 12:05:46 2002
-+++ mailsync.c Mon Feb 3 22:59:09 2003
-@@ -30,8 +30,8 @@
++++ mailsync.c Wed Jul 14 03:52:22 2004
+@@ -20,6 +20,7 @@
+ extern int errno; // Just in case
+ #include <sys/stat.h> // Stat()
+
++#include <cassert>
+ #include <string>
+ #include <set>
+ #include <map>
+@@ -30,8 +31,8 @@
using std::vector;
using std::make_pair;
diff --git a/mail/mailsync/pkg-plist b/mail/mailsync/pkg-plist
index bd0a041c1690..71a70687dfc5 100644
--- a/mail/mailsync/pkg-plist
+++ b/mail/mailsync/pkg-plist
@@ -1,5 +1,5 @@
bin/mailsync
-%%PORTDOCS%%share/doc/mailsync/README
-share/examples/mailsync/mailsync
-@dirrm share/examples/mailsync
-%%PORTDOCS%%@dirrm share/doc/mailsync
+%%PORTDOCS%%%%DOCSDIR%%/README
+%%EXAMPLESDIR%%/mailsync
+@dirrm %%EXAMPLESDIR%%
+%%PORTDOCS%%@dirrm %%DOCSDIR%%