Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 24 Mar 2014 18:09:24 +0000 (UTC)
From:      Pawel Pekala <pawel@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r349043 - head/audio/amp
Message-ID:  <201403241809.s2OI9Op3020691@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pawel
Date: Mon Mar 24 18:09:23 2014
New Revision: 349043
URL: http://svnweb.freebsd.org/changeset/ports/349043
QAT: https://qat.redports.org/buildarchive/r349043/

Log:
  Fix build with clang by respecting CC, CFLAGS

Modified:
  head/audio/amp/Makefile

Modified: head/audio/amp/Makefile
==============================================================================
--- head/audio/amp/Makefile	Mon Mar 24 18:04:07 2014	(r349042)
+++ head/audio/amp/Makefile	Mon Mar 24 18:09:23 2014	(r349043)
@@ -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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201403241809.s2OI9Op3020691>