# Created by: ijliao # $FreeBSD: head/devel/codeworker/Makefile 347405 2014-03-07 16:49:09Z bapt $ PORTNAME= codeworker PORTVERSION= 4.5.3 CATEGORIES= devel MASTER_SITES= http://codeworker.free.fr/downloads/ DISTNAME= CodeWorker_SRC${PORTVERSION:S/./_/g} MAINTAINER= ports@FreeBSD.org COMMENT= Versatile parsing tool and source code generator LICENSE= LGPL21 WRKSRC= ${WRKDIR}/CodeWorker${PORTVERSION:S/./_/g} USES= dos2unix gmake zip MAKE_ARGS= CC="${CXX}" CXX="${CXX}" CXXFLAGS="${CXXFLAGS}" LFLAGS="-lm" ALL_TARGET= build CFLAGS+= -Dstricmp=strcasecmp PLIST_FILES= bin/codeworker post-patch: @${FIND} ${WRKSRC} -name "*.cpp" -or -name "*.h" | ${XARGS} \ ${REINPLACE_CMD} -e \ 's||| ; \ s|(__cplusplus) \&\&|(__cplusplus) // \&\&|' do-install: (cd ${WRKSRC} && ${INSTALL_PROGRAM} codeworker ${STAGEDIR}${PREFIX}/bin) .include