Fix build with clang

PR:		ports/161527
Submitted by:	Nali Toja <nalitoja@gmail.com>
This commit is contained in:
Pawel Pekala 2011-10-21 15:22:07 +00:00
parent 6beb276952
commit b0ff3c0e93
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=284067

View file

@ -28,6 +28,11 @@ PLIST_FILES= bin/${PORTNAME}
post-patch:
@${REINPLACE_CMD} -e 's|^CXXFLAGS=|#CXXFLAGS=|g' ${WRKSRC}/configure
@${REINPLACE_CMD} '/[:.]c/!s/compare/this->&/' \
${WRKSRC}/aapl/avlcommon.h \
${WRKSRC}/aapl/bstcommon.h \
${WRKSRC}/aapl/bubblesort.h \
${WRKSRC}/aapl/mergesort.h
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/ragel/${PORTNAME} ${PREFIX}/bin