summaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
authorrillig <rillig@pkgsrc.org>2008-10-03 19:15:52 +0000
committerrillig <rillig@pkgsrc.org>2008-10-03 19:15:52 +0000
commit32d182cacb38c72e5fe9adb6dbbb944b1a2a5c8b (patch)
treedc04a0e515495048124f80cd206fe0045e860223 /games
parent511c66fb2d7d7b26b543c83c466a15fb569ae7d9 (diff)
downloadpkgsrc-32d182cacb38c72e5fe9adb6dbbb944b1a2a5c8b.tar.gz
Velena doesn't work on 64-bit platforms.
Diffstat (limited to 'games')
-rw-r--r--games/velena/Makefile18
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