diff --git a/textproc/p5-HTML-CTPP2/Makefile b/textproc/p5-HTML-CTPP2/Makefile index ddc256a067c2..7fb6cad9c5ca 100644 --- a/textproc/p5-HTML-CTPP2/Makefile +++ b/textproc/p5-HTML-CTPP2/Makefile @@ -22,7 +22,8 @@ USE_PERL5= configure CC= ${CXX} post-patch: - @${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|' \ - ${WRKSRC}/Makefile.PL + @${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|; \ + /^my $$CXX/s|g++|${CXX}|; /^my $$CC/s|gcc|${CC}|' \ + ${WRKSRC}/Makefile.PL .include