From 942667ae51505958eb6c73237d4a7b188c1c57c7 Mon Sep 17 00:00:00 2001 From: Andrew Pantyukhin Date: Sat, 23 Sep 2006 18:05:29 +0000 Subject: [PATCH] - 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 --- games/palomino/Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/games/palomino/Makefile b/games/palomino/Makefile index a734e564a5bf..3d933ed24c99 100644 --- a/games/palomino/Makefile +++ b/games/palomino/Makefile @@ -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/