1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-24 04:33:24 +00:00

- Fix build on some archs by not using -march=$ARCH

- Honor CC/CXX

Reported by:	pointyhat via kris
PR:		ports/103249
Submitted by:	Michael Johnson <ahze@FreeBSD.org>
This commit is contained in:
Andrew Pantyukhin 2006-09-23 18:05:29 +00:00
parent 3e359bb0dc
commit 942667ae51
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=173661

View File

@ -26,12 +26,14 @@ USE_GMAKE= yes
WRKSRC= ${WRKDIR}/${PORTNAME}
INSTALL_WRKSRC= ${WRKSRC}/${PORTNAME}/game/pony
MAKEFILE= GNUmakefile
MAKE_ENV= CC="${CC}" CXX="${CXX}"
post-patch:
@${REINPLACE_CMD} -Ee 's!(string installDir = ).*$$!\1"${DATADIR}/";!' \
-e 's!../game/!!' ${WRKSRC}/palomino/game/pony/src/game_pony_init.cc
@${REINPLACE_CMD} -Ee 's!(CC_FLAGS.*:=)!\1 $$(CFLAGS)!' ${WRKSRC}/gfx/GNUmakefile_common
@${REINPLACE_CMD} -Ee 's!(-O[0-9s]?|-funroll-loops|-fno-inline)!!g' ${WRKSRC}/gfx/tools/cc-config.sh
@${REINPLACE_CMD} -e 's|-march=$$ARCH||' ${WRKSRC}/gfx/tools/cc-config.sh
do-install:
@${INSTALL_PROGRAM} ${INSTALL_WRKSRC}/out/palomino ${PREFIX}/bin/