Date: Thu, 20 Mar 2014 03:25:26 +0900 From: KATO Tsuguru <tkato432@yahoo.com> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/187769: audio/amp: Support CC/CFLAGS properly Message-ID: <20140320032526.bf0da383131b0010e1d16f49@yahoo.com> Resent-Message-ID: <201403191840.s2JIeAwv002717@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 187769 >Category: ports >Synopsis: audio/amp: Support CC/CFLAGS properly >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Wed Mar 19 18:40:10 UTC 2014 >Closed-Date: >Last-Modified: >Originator: KATO Tsuguru >Release: FreeBSD 8.4-RELEASE-p7 i386 >Organization: >Environment: >Description: - Support CC/CFLAGS properly >How-To-Repeat: >Fix: diff -urN /usr/ports/audio/amp/Makefile audio/amp/Makefile --- /usr/ports/audio/amp/Makefile 2014-03-01 06:21:19.000000000 +0900 +++ audio/amp/Makefile 2014-03-20 00:00:00.000000000 +0900 @@ -10,14 +10,20 @@ MAINTAINER= ports@FreeBSD.org COMMENT= Another mp3 player -GNU_CONFIGURE= yes USES= gmake +GNU_CONFIGURE= yes +CONFIGURE_ENV= ac_cv_prog_gcc=no + +PLIST_FILES= bin/amp man/man1/amp.1.gz -PLIST_FILES= bin/amp \ - man/man1/amp.1.gz +post-patch: + @${REINPLACE_CMD} -e \ + '/CC="gcc"/s|^|#| ; \ + /CFLAGS=$$/s|^|#| ; \ + s|-O6|$$CFLAGS|' ${WRKSRC}/configure do-install: - ${INSTALL_PROGRAM} ${WRKSRC}/amp ${STAGEDIR}${PREFIX}/bin - ${INSTALL_MAN} ${WRKSRC}/amp.1 ${STAGEDIR}${PREFIX}/man/man1 + (cd ${WRKSRC} && ${INSTALL_PROGRAM} amp ${STAGEDIR}${PREFIX}/bin) + (cd ${WRKSRC} && ${INSTALL_MAN} amp.1 ${STAGEDIR}${PREFIX}/man/man1) .include <bsd.port.mk> >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20140320032526.bf0da383131b0010e1d16f49>