diff options
author | bapt <bapt@FreeBSD.org> | 2013-12-27 18:18:51 +0800 |
---|---|---|
committer | bapt <bapt@FreeBSD.org> | 2013-12-27 18:18:51 +0800 |
commit | e4d02f5f7a6c823d5489d6f0c1e60c32cea2bf70 (patch) | |
tree | 49aa1910b5d5b2ccf0387240733f6358f9d60155 /news/mmail | |
parent | 6a0924bde543455b265a01e9cc30c2f246905315 (diff) | |
download | freebsd-ports-gnome-e4d02f5f7a6c823d5489d6f0c1e60c32cea2bf70.tar.gz freebsd-ports-gnome-e4d02f5f7a6c823d5489d6f0c1e60c32cea2bf70.tar.zst freebsd-ports-gnome-e4d02f5f7a6c823d5489d6f0c1e60c32cea2bf70.zip |
Support stage
Fix build with modern compilers
Diffstat (limited to 'news/mmail')
-rw-r--r-- | news/mmail/Makefile | 11 | ||||
-rw-r--r-- | news/mmail/files/patch-interfac__main.cc | 20 |
2 files changed, 25 insertions, 6 deletions
diff --git a/news/mmail/Makefile b/news/mmail/Makefile index 9a0744ceb01d..f7fb93cc5cd7 100644 --- a/news/mmail/Makefile +++ b/news/mmail/Makefile @@ -12,15 +12,14 @@ COMMENT= Offline BBS mail packet reader supporting QWK/OMEN/SOUP/OPX/BLUEWAVE 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> diff --git a/news/mmail/files/patch-interfac__main.cc b/news/mmail/files/patch-interfac__main.cc new file mode 100644 index 000000000000..639389615e23 --- /dev/null +++ b/news/mmail/files/patch-interfac__main.cc @@ -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(); + } |