Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 27 Dec 2013 10:18:52 +0000 (UTC)
From:      Baptiste Daroussin <bapt@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r337688 - in head/news/mmail: . files
Message-ID:  <201312271018.rBRAIq63072835@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bapt
Date: Fri Dec 27 10:18:51 2013
New Revision: 337688
URL: http://svnweb.freebsd.org/changeset/ports/337688

Log:
  Support stage
  Fix build with modern compilers

Added:
  head/news/mmail/files/
  head/news/mmail/files/patch-interfac__main.cc   (contents, props changed)
Modified:
  head/news/mmail/Makefile

Modified: head/news/mmail/Makefile
==============================================================================
--- head/news/mmail/Makefile	Fri Dec 27 10:15:32 2013	(r337687)
+++ head/news/mmail/Makefile	Fri Dec 27 10:18:51 2013	(r337688)
@@ -12,15 +12,14 @@ COMMENT=	Offline BBS mail packet reader 
 RUN_DEPENDS=	zip:${PORTSDIR}/archivers/zip \
 		unzip:${PORTSDIR}/archivers/unzip
 
-USE_GMAKE=	yes
+USES=		gmake
 MAKE_ARGS=	OPTS=""
 
-MAN1=		mmail.1
-PLIST_FILES=	bin/mmail
+PLIST_FILES=	bin/mmail \
+		man/man1/mmail.1.gz
 
-NO_STAGE=	yes
 do-install:
-	${INSTALL_PROGRAM} ${WRKSRC}/mm ${PREFIX}/bin/mmail
-	${INSTALL_MAN} ${WRKSRC}/mm.1 ${MANPREFIX}/man/man1/mmail.1
+	${INSTALL_PROGRAM} ${WRKSRC}/mm ${STAGEDIR}${PREFIX}/bin/mmail
+	${INSTALL_MAN} ${WRKSRC}/mm.1 ${STAGEDIR}${MANPREFIX}/man/man1/mmail.1
 
 .include <bsd.port.mk>

Added: head/news/mmail/files/patch-interfac__main.cc
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/news/mmail/files/patch-interfac__main.cc	Fri Dec 27 10:18:51 2013	(r337688)
@@ -0,0 +1,20 @@
+--- ./interfac/main.cc.orig	2007-07-16 19:19:36.000000000 +0200
++++ ./interfac/main.cc	2013-12-27 11:18:04.000000000 +0100
+@@ -12,7 +12,7 @@
+ #include "interfac.h"
+ 
+ #ifdef USE_NEWHANDLER
+-# include <new.h>
++# include <new>
+ #endif
+ 
+ #include <locale.h>
+@@ -40,7 +40,7 @@
+ 	srand((unsigned) starttime);
+ 
+ #ifdef USE_NEWHANDLER
+-	set_new_handler(memError);
++	std::set_new_handler(memError);
+ #endif
+ 	origdir = mygetcwd();
+ }



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201312271018.rBRAIq63072835>