aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authoradamw <adamw@FreeBSD.org>2014-08-05 06:00:31 +0800
committeradamw <adamw@FreeBSD.org>2014-08-05 06:00:31 +0800
commit1553d48c6b05751605eac5e055235368008c4396 (patch)
treef3d8ccfe733c4cf9e21e30777bbb67b4108bd896 /net
parentce04ad6f1f6359bb4dd425257e5d9556370c2dd4 (diff)
downloadfreebsd-ports-gnome-1553d48c6b05751605eac5e055235368008c4396.tar.gz
freebsd-ports-gnome-1553d48c6b05751605eac5e055235368008c4396.tar.zst
freebsd-ports-gnome-1553d48c6b05751605eac5e055235368008c4396.zip
Stage, and fix build without gcc.
Diffstat (limited to 'net')
-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>