From 859586e28934a3677a6ae7df980b90d0dd3bc6ad Mon Sep 17 00:00:00 2001 From: Adam Weinberger Date: Mon, 4 Aug 2014 22:00:31 +0000 Subject: Stage, and fix build without gcc. --- net/mad_fcl/Makefile | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/net/mad_fcl/Makefile b/net/mad_fcl/Makefile index 9c7e3b9e10cb..0b505a06c90a 100644 --- a/net/mad_fcl/Makefile +++ b/net/mad_fcl/Makefile @@ -25,25 +25,26 @@ PLIST_FILES= bin/flute MAKE_JOBS_UNSAFE= yes -NO_STAGE= yes +OPTIONS_DEFINE= DOCS + pre-patch: # Fixing the end-of-lines: - for f in `${FIND} ${WRKSRC}/.. -type f` ; do \ + @for f in `${FIND} ${WRKSRC}/.. -type f` ; do \ ${TR} -d '\015' < $$f > $$f.noms && \ ${CAT} $$f.noms > $$f && ${RM} $$f.noms; done post-patch: - ${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g' \ + @${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g' \ ${WRKSRC}/flute/Makefile + @${FIND} ${WRKSRC} -name Makefile | ${XARGS} \ + ${REINPLACE_CMD} -e 's|gcc|${CC}|' do-install: - ${INSTALL_PROGRAM} ${WRKSRC}/bin/flute ${PREFIX}/bin -.ifndef(NOPORTDOCS) - @${MKDIR} ${DOCSDIR} + ${INSTALL_PROGRAM} ${WRKSRC}/bin/flute ${STAGEDIR}${PREFIX}/bin + @${MKDIR} ${STAGEDIR}${DOCSDIR} .for file in ${DOC_FILES} - @${INSTALL_DATA} ${WRKSRC}/doc/${file} ${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/doc/${file} ${STAGEDIR}${DOCSDIR} .endfor - ${INSTALL_DATA} ${WRKSRC}/README.TXT ${DOCSDIR} -.endif + ${INSTALL_DATA} ${WRKSRC}/README.TXT ${STAGEDIR}${DOCSDIR} .include -- cgit v1.2.3