diff options
author | David E. O'Brien <obrien@FreeBSD.org> | 2004-08-17 16:26:08 +0000 |
---|---|---|
committer | David E. O'Brien <obrien@FreeBSD.org> | 2004-08-17 16:26:08 +0000 |
commit | fc85b19c7a354d7c51be95a7f1fc0ca1b2c32001 (patch) | |
tree | 5077fad2462b7765fd06d6f86e47b1b0e42d8432 /print | |
parent | 275bc47e0463336dac2db6a4f8d852f695e6e753 (diff) | |
download | ports-fc85b19c7a354d7c51be95a7f1fc0ca1b2c32001.tar.gz ports-fc85b19c7a354d7c51be95a7f1fc0ca1b2c32001.zip |
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')
-rw-r--r-- | print/mp-letter/Makefile | 14 |
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> |