diff options
author | rillig <rillig@pkgsrc.org> | 2008-10-03 19:15:52 +0000 |
---|---|---|
committer | rillig <rillig@pkgsrc.org> | 2008-10-03 19:15:52 +0000 |
commit | 44c6fcfb0067dad267d2b52cfc86ffd6ba07574a (patch) | |
tree | dc04a0e515495048124f80cd206fe0045e860223 /games | |
parent | 9efe008b7b650e80e371d5c6b27c8cdd0515a75e (diff) | |
download | pkgsrc-44c6fcfb0067dad267d2b52cfc86ffd6ba07574a.tar.gz |
Velena doesn't work on 64-bit platforms.
Diffstat (limited to 'games')
-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 |