pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/games/velena Velena doesn't work on 64-bit platforms.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/a8313e745421
branches:  trunk
changeset: 547807:a8313e745421
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Fri Oct 03 19:15:52 2008 +0000

description:
Velena doesn't work on 64-bit platforms.

diffstat:

 games/velena/Makefile |  18 +++++++++++++++++-
 1 files changed, 17 insertions(+), 1 deletions(-)

diffs (32 lines):

diff -r 8db432a51aad -r a8313e745421 games/velena/Makefile
--- a/games/velena/Makefile     Fri Oct 03 19:01:14 2008 +0000
+++ b/games/velena/Makefile     Fri Oct 03 19:15:52 2008 +0000
@@ -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_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



Home | Main Index | Thread Index | Old Index