aboutsummaryrefslogtreecommitdiffstats
path: root/net/mad_fcl
diff options
context:
space:
mode:
Diffstat (limited to 'net/mad_fcl')
-rw-r--r--net/mad_fcl/Makefile19
1 files 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 <bsd.port.mk>