ports/63866: [patch] games/heroes: fix build on alpha (hopefully)

Josh Elsasser jre at vineyard.net
Sun Mar 7 07:40:20 UTC 2004


>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 at 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:



More information about the freebsd-ports-bugs mailing list