# Created by: ijliao
# $FreeBSD: print/cpp2latex/Makefile 327765 2013-09-20 22:43:59Z bapt $

PORTNAME=	cpp2latex
PORTVERSION=	2.3
CATEGORIES=	print
MASTER_SITES=	http://www.arnoldarts.de/files/cpp2latex/

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Converts C++ source to output that can be used in LaTeX documents

LICENSE=	GPLv2 GPLv3
LICENSE_COMB=	dual

GNU_CONFIGURE=	yes

PORTDOCS=	AUTHORS ChangeLog README TODO

PLIST_FILES=	bin/cpp2latex

NO_STAGE=	yes
.include <bsd.port.options.mk>

post-patch:
	@${REINPLACE_CMD} -e '/-O2 /s|^|#|' -e '/-pedantic /s|^|#|' \
		${WRKSRC}/configure

post-install:
.if ${PORT_OPTIONS:MDOCS}
	@${MKDIR} ${DOCSDIR}
.for docfile in ${PORTDOCS}
	${INSTALL_DATA} ${WRKSRC}/${docfile} ${DOCSDIR}
.endfor
.endif

.include <bsd.port.mk>
