diff options
author | rillig <rillig> | 2008-10-03 19:15:52 +0000 |
---|---|---|
committer | rillig <rillig> | 2008-10-03 19:15:52 +0000 |
commit | a3efa40631be66aa7e8a2774bb9ff2fcf32c2a01 (patch) | |
tree | dc04a0e515495048124f80cd206fe0045e860223 /games/velena | |
parent | 88d3991611f9d7be98b1a0d3b4cca9d3ec3a10c9 (diff) | |
download | pkgsrc-a3efa40631be66aa7e8a2774bb9ff2fcf32c2a01.tar.gz |
Velena doesn't work on 64-bit platforms.
Diffstat (limited to 'games/velena')
-rw-r--r-- | games/velena/Makefile | 18 |
1 files changed, 17 insertions, 1 deletions
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,<malloc\.h>,<stdlib.h>,' +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 |