1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-21 00:25:50 +00:00

- Support CC/CFLAGS properly

PR:		187769
Submitted by:	Ports Fury
This commit is contained in:
Martin Wilke 2014-04-29 05:10:19 +00:00
parent 3f77298083
commit 7141d57860
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=352572

View File

@ -10,18 +10,20 @@ MASTER_SITES= http://www-users.cs.umn.edu/~wburdick/ftp/
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-configure:
@${REINPLACE_CMD} -e 's|-O6 -ffast-math -fomit-frame-pointer|${CFLAGS}|' \
-e 's|gcc|${CC}|' ${WRKSRC}/Makefile
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>