aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Weinberger <adamw@FreeBSD.org>2014-08-04 22:00:31 +0000
committerAdam Weinberger <adamw@FreeBSD.org>2014-08-04 22:00:31 +0000
commit859586e28934a3677a6ae7df980b90d0dd3bc6ad (patch)
treef3d8ccfe733c4cf9e21e30777bbb67b4108bd896
parent1e0b4acfc5989eb03aa86b5dd572673f88f36d1d (diff)
downloadports-859586e28934a3677a6ae7df980b90d0dd3bc6ad.tar.gz
ports-859586e28934a3677a6ae7df980b90d0dd3bc6ad.zip
Stage, and fix build without gcc.
Notes
Notes: svn path=/head/; revision=364058
-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>