1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-13 07:34:50 +00:00

Fix build with clang by respecting CC, CFLAGS

This commit is contained in:
Pawel Pekala 2014-03-24 18:09:23 +00:00
parent 38e0997276
commit 8b1986317f
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=349043

View File

@ -16,6 +16,10 @@ USES= gmake
PLIST_FILES= bin/amp \
man/man1/amp.1.gz
post-configure:
@${REINPLACE_CMD} -e 's|-O6 -ffast-math -fomit-frame-pointer|${CFLAGS}|' \
-e 's|gcc|${CC}|' ${WRKSRC}/Makefile
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/amp ${STAGEDIR}${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/amp.1 ${STAGEDIR}${PREFIX}/man/man1