Date: Sun, 7 Mar 2004 02:34:17 -0500 From: "Josh Elsasser" <jre@vineyard.net> To: "FreeBSD gnats submit" <FreeBSD-gnats-submit@FreeBSD.org> Subject: ports/63866: [patch] games/heroes: fix build on alpha (hopefully) Message-ID: <1078644857.0@jade.elsasser.org> Resent-Message-ID: <200403070740.i277eJ01006802@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 63866 >Category: ports >Synopsis: [patch] games/heroes: fix build on alpha (hopefully) >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: maintainer-update >Submitter-Id: current-users >Arrival-Date: Sat Mar 06 23:40:19 PST 2004 >Closed-Date: >Last-Modified: >Originator: Josh Elsasser >Release: FreeBSD 5.2-CURRENT i386 >Organization: >Environment: System: FreeBSD 5.2-CURRENT #11: Sat Feb 7 15:09:05 EST 2004 joshe@jade.elsasser.org:/usr/local/obj/usr/src/sys/JADE >Description: According to bento, games/heroes fails to link on alpha. I don't have access to alpha hardware, but I think that passing -ffast-math to the compiler is the culprit. >How-To-Repeat: >Fix: --- heroes-alpha-breakage.patch begins here --- --- Makefile.orig Sun Mar 7 01:46:22 2004 +++ Makefile Sun Mar 7 01:47:15 2004 @@ -43,18 +43,18 @@ MAKEINFO="makeinfo --no-split" CONFIGURE_ARGS= --with-sdl_mixer=${LOCALBASE} --without-gii --without-ggi +.if defined(WITH_OPTIMIZED_CFLAGS) +CONFIGURE_ARGS+= --enable-optimizations +.else +CONFIGURE_ARGS+= --disable-optimizations +.endif + MAN6= heroes.6 heroeslvl.6 INFO= heroes CPPFLAGS= -I${LOCALBASE}/include ${PTHREAD_CFLAGS} LDFLAGS= -L${LOCALBASE}/lib -lsmpeg ${PTHREAD_LIBS} -.include <bsd.port.pre.mk> - -.if ${ARCH} == "alpha" && ${OSVERSION} >= 502102 -BROKEN= "Does not compile on alpha >=5.x" -.endif - post-patch: @for dir in ${DATASRC} ${SOUNDSRC} ${MUSICSRC}; do \ ${FIND} $${dir} -name "Makefile*" | ${XARGS} ${RM}; \ @@ -72,4 +72,4 @@ ${MKDIR} ${DATADIR}/mod ${INSTALL_DATA} ${MUSICSRC}/*.xm ${MUSICSRC}/sound.conf ${DATADIR}/mod -.include <bsd.port.post.mk> +.include <bsd.port.mk> --- heroes-alpha-breakage.patch ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1078644857.0>