summaryrefslogtreecommitdiff
path: root/print/mp-letter
diff options
context:
space:
mode:
authorDavid E. O'Brien <obrien@FreeBSD.org>2004-08-17 16:26:08 +0000
committerDavid E. O'Brien <obrien@FreeBSD.org>2004-08-17 16:26:08 +0000
commitfc85b19c7a354d7c51be95a7f1fc0ca1b2c32001 (patch)
tree5077fad2462b7765fd06d6f86e47b1b0e42d8432 /print/mp-letter
parent- Update to 1.04 (diff)
Preprocess the heck out of this to bring it in line with C++98.
Notes
Notes: svn path=/head/; revision=116533
Diffstat (limited to 'print/mp-letter')
-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>