mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-21 00:25:50 +00:00
Stage, and fix build without gcc.
This commit is contained in:
parent
1e0b4acfc5
commit
859586e289
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=364058
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user