From 44c6fcfb0067dad267d2b52cfc86ffd6ba07574a Mon Sep 17 00:00:00 2001 From: rillig Date: Fri, 3 Oct 2008 19:15:52 +0000 Subject: Velena doesn't work on 64-bit platforms. --- games/velena/Makefile | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) (limited to 'games') diff --git a/games/velena/Makefile b/games/velena/Makefile index c4f3eaacefb..157eadae7f8 100644 --- a/games/velena/Makefile +++ b/games/velena/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.9 2008/03/04 11:02:24 rillig Exp $ +# $NetBSD: Makefile,v 1.10 2008/10/03 19:15:52 rillig Exp $ # DISTNAME= veleng10 @@ -34,6 +34,22 @@ SUBST_STAGE.ansi-c= pre-configure SUBST_FILES.ansi-c= *.c *.h SUBST_SED.ansi-c= -e 's,,,' +SUBST_CLASSES+= cflags +SUBST_STAGE.cflags= pre-configure +SUBST_FILES.cflags= makefile +SUBST_SED.cflags= -e s,^CFLAGS.*,, + +# Velena isn't 64bit-safe, which results in a "fatal error" for some +# board positions. +.include "../../mk/bsd.prefs.mk" +.if ${MACHINE_ARCH:M*64} != "" +. if ${PKGSRC_COMPILER:Mgcc} != "" +CFLAGS+= -m32 +. else +PKG_FAIL_REASON+= "Velena doesn't work on 64-bit platforms." +. endif +.endif + do-install: ${INSTALL_PROGRAM} ${WRKSRC}/veleng ${DESTDIR}${PREFIX}/bin/velena ${INSTALL_DATA} ${WRKSRC}/readme ${DESTDIR}${PREFIX}/share/doc/velena/README -- cgit v1.2.3