View | Details | Raw Unified | Return to bug 187769 | Differences between
and this patch

Collapse All | Expand All

(-)audio/amp/Makefile (-8 / +10 lines)
Lines 10-27 Link Here
10
MAINTAINER=	ports@FreeBSD.org
10
MAINTAINER=	ports@FreeBSD.org
11
COMMENT=	Another mp3 player
11
COMMENT=	Another mp3 player
12
12
13
GNU_CONFIGURE=	yes
14
USES=		gmake
13
USES=		gmake
14
GNU_CONFIGURE=	yes
15
CONFIGURE_ENV=	ac_cv_prog_gcc=no
15
16
16
PLIST_FILES=	bin/amp \
17
PLIST_FILES=	bin/amp man/man1/amp.1.gz
17
		man/man1/amp.1.gz
18
18
19
post-configure:
19
post-patch:
20
	@${REINPLACE_CMD} -e 's|-O6 -ffast-math -fomit-frame-pointer|${CFLAGS}|' \
20
	@${REINPLACE_CMD} -e \
21
		-e 's|gcc|${CC}|' ${WRKSRC}/Makefile
21
		'/CC="gcc"/s|^|#| ; \
22
		 /CFLAGS=$$/s|^|#| ; \
23
		 s|-O6|$$CFLAGS|' ${WRKSRC}/configure
22
24
23
do-install:
25
do-install:
24
	${INSTALL_PROGRAM} ${WRKSRC}/amp ${STAGEDIR}${PREFIX}/bin
26
	(cd ${WRKSRC} && ${INSTALL_PROGRAM} amp ${STAGEDIR}${PREFIX}/bin)
25
	${INSTALL_MAN} ${WRKSRC}/amp.1 ${STAGEDIR}${PREFIX}/man/man1
27
	(cd ${WRKSRC} && ${INSTALL_MAN} amp.1 ${STAGEDIR}${PREFIX}/man/man1)
26
28
27
.include <bsd.port.mk>
29
.include <bsd.port.mk>

Return to bug 187769