MFH: r552988

devel/plan9port: fix build on GCC architectures

Actually respect CC.

Approved by:	portmgr (fix build blanket)
This commit is contained in:
Piotr Kubaj 2020-10-22 15:45:00 +00:00
parent 04c4c573bd
commit d8c45feb35
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/branches/2020Q4/; revision=552989

View File

@ -48,6 +48,8 @@ DATA_DISTFILES= pgw.tar.bz2 \
roget.tar.bz2 \
scat.tgz
.include <bsd.port.pre.mk>
post-extract-DATA-on:
@cd ${WRKSRC}/dict && ${TAR} -xf ${DISTDIR}/${DIST_SUBDIR}/pgw.tar.bz2
@cd ${WRKSRC}/dict && ${TAR} -xf ${DISTDIR}/${DIST_SUBDIR}/roget.tar.bz2
@ -62,7 +64,10 @@ post-patch:
@${REINPLACE_CMD} -e 's|ulong|u64int|' ${WRKSRC}/src/libmach/FreeBSD.c
do-configure:
@${ECHO_CMD} 'CFLAGS="${CFLAGS}"' > ${WRKSRC}/LOCAL.config
.if ${CHOSEN_COMPILER_TYPE} == gcc
@${ECHO_CMD} 'CC9="${CC}"' > ${WRKSRC}/LOCAL.config
.endif
@${ECHO_CMD} 'CFLAGS="${CFLAGS}"' >> ${WRKSRC}/LOCAL.config
@${ECHO_CMD} 'LDFLAGS="${LDFLAGS}"' >> ${WRKSRC}/LOCAL.config
@${ECHO_CMD} 'FONTSRV=fontsrv' >> ${WRKSRC}/LOCAL.config
@ -85,4 +90,4 @@ post-install:
${STRIP_CMD} $$f > /dev/null 2>&1 || ${TRUE}; \
done
.include <bsd.port.mk>
.include <bsd.port.post.mk>