# Created by: Andreas Kohn # $FreeBSD: head/devel/pas2dox/Makefile 430630 2017-01-05 10:58:16Z amdmi3 $ PORTNAME= pas2dox DISTVERSION= 0.50rc1 CATEGORIES= devel converters MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${DISTVERSION} MAINTAINER= ports@FreeBSD.org COMMENT= Preprocessor to use doxygen with Pascal sources LICENSE= GPLv2 LICENSE_FILE= ${WRKSRC}/COPYING WRKSRC= ${WRKDIR}/${PORTNAME} USES= gmake ALL_TARGET= ${PORTNAME} PLIST_FILES= bin/${PORTNAME} post-patch: @${REINPLACE_CMD} -e \ 's|^LEX=|LEX?=| ; \ s|$${CC} $$<|$${CXX} $${CXXFLAGS} $$<|' ${WRKSRC}/Makefile @${REINPLACE_CMD} -e \ 's|yy_flex_realloc|yyrealloc|' ${WRKSRC}/${PORTNAME}.l pre-build: @${RM} ${WRKSRC}/${PORTNAME}.cpp do-install: ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin .include