ports/103249: [PATCH] games/palomino: Fix build on sparc64 -- honor CC/CXX

Michael Johnson ahze at FreeBSD.org
Thu Sep 14 02:10:19 UTC 2006


>Number:         103249
>Category:       ports
>Synopsis:       [PATCH] games/palomino: Fix build on sparc64 -- honor CC/CXX
>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:   Thu Sep 14 02:10:17 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Michael Johnson
>Release:        FreeBSD 6.1-STABLE i386
>Organization:
>Environment:
System: FreeBSD blueherron.ahze.net 6.1-STABLE FreeBSD 6.1-STABLE #110: Tue Jun 27 10:39:17 UTC 2006
>Description:
- Fix build on sparc64 by not using -march=$ARCH since sparc64 is not 
  a valid march. This also partly respects C[XX]FLAGS
- Honor CC/CXX

Port maintainer (infofarmer at FreeBSD.org) is cc'd.

Generated with FreeBSD Port Tools 0.77
>How-To-Repeat:
>Fix:

--- palomino-20060827_1.patch begins here ---
Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/games/palomino/Makefile,v
retrieving revision 1.3
diff -u -r1.3 Makefile
--- Makefile	3 Sep 2006 18:48:07 -0000	1.3
+++ Makefile	14 Sep 2006 02:02:42 -0000
@@ -26,12 +26,14 @@
 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/
--- palomino-20060827_1.patch ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list