aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>2004-08-18 00:26:08 +0800
committerobrien <obrien@FreeBSD.org>2004-08-18 00:26:08 +0800
commit074b94d5d3e69cbb2ef5b1d84774a3b226a90e11 (patch)
tree8c51ac55c7f80a2edc5cab13cc3b379d6342c72b
parent08008cedbe4b628b26a44484695650788f87d192 (diff)
downloadfreebsd-ports-gnome-074b94d5d3e69cbb2ef5b1d84774a3b226a90e11.tar.gz
freebsd-ports-gnome-074b94d5d3e69cbb2ef5b1d84774a3b226a90e11.tar.zst
freebsd-ports-gnome-074b94d5d3e69cbb2ef5b1d84774a3b226a90e11.zip
Preprocess the heck out of this to bring it in line with C++98.
-rw-r--r--print/mp-letter/Makefile14
1 files changed, 8 insertions, 6 deletions
diff --git a/print/mp-letter/Makefile b/print/mp-letter/Makefile
index bd5fdb3d416b..a560fcb55d8e 100644
--- a/print/mp-letter/Makefile
+++ b/print/mp-letter/Makefile
@@ -18,11 +18,8 @@ DISTNAME= mp-3.0.1
MAINTAINER= obrien@FreeBSD.org
COMMENT= A PostScript printing util for ASCII files, email, USENET news articles, etc
-.include <bsd.port.pre.mk>
-.if ${OSVERSION} > 500000
-USE_GCC= 3.3
-.endif
WRKSRC= ${WRKDIR}/mp
+USE_REINPLACE= yes
MAN1= mp.1
MLINKS= mp.1 digestp.1 - filep.1 - filofaxp.1 \
- franklinp.1 - mailp.1 - newsp.1 \
@@ -30,10 +27,15 @@ MLINKS= mp.1 digestp.1 - filep.1 - filofaxp.1 \
PAPERSIZE?= letter
.if ${PAPERSIZE} == a4
-INSTALL_TARGET= install-a4
+INSTALL_TARGET= install-a4
.endif
pre-patch:
@${CP} ${WRKSRC}/Makefile.dist ${WRKSRC}/Makefile
+ @${REINPLACE_CMD} -e 's/<iostream\.h>/<iostream> using namespace std;/' \
+ -e 's/enum action_type/action_type/g' \
+ -e 's/enum text_type/text_type/g' \
+ ${WRKSRC}/header.cc ${WRKSRC}/input.cc ${WRKSRC}/main.cc \
+ ${WRKSRC}/print.cc ${WRKSRC}/print.hh
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>