Mon Dec 12 07:11:06 2011 UTC ()
games/velena: Mask DragonFly-x86_64

DragonFly x86_64 can't build 32-bit binaries.


(marino)
diff -r1.12 -r1.13 pkgsrc/games/velena/Makefile

cvs diff -r1.12 -r1.13 pkgsrc/games/velena/Makefile (switch to unified diff)

--- pkgsrc/games/velena/Makefile 2011/05/28 22:41:43 1.12
+++ pkgsrc/games/velena/Makefile 2011/12/12 07:11:06 1.13
@@ -1,61 +1,62 @@ @@ -1,61 +1,62 @@
1# $NetBSD: Makefile,v 1.12 2011/05/28 22:41:43 dholland Exp $ 1# $NetBSD: Makefile,v 1.13 2011/12/12 07:11:06 marino Exp $
2# 2#
3 3
4DISTNAME= veleng10 4DISTNAME= veleng10
5PKGNAME= velena-1.0 5PKGNAME= velena-1.0
6PKGREVISION= 4 6PKGREVISION= 4
7CATEGORIES= games 7CATEGORIES= games
8MASTER_SITES= http://www.ce.unipr.it/~gbe/ 8MASTER_SITES= http://www.ce.unipr.it/~gbe/
9EXTRACT_SUFX= .zip 9EXTRACT_SUFX= .zip
10 10
11MAINTAINER= pkgsrc-users@NetBSD.org 11MAINTAINER= pkgsrc-users@NetBSD.org
12HOMEPAGE= http://www.ce.unipr.it/~gbe/ 12HOMEPAGE= http://www.ce.unipr.it/~gbe/
13COMMENT= Perfect-play engine for connect four 13COMMENT= Perfect-play engine for connect four
14LICENSE= velena-license 14LICENSE= velena-license
15 15
16RESTRICTED= You must not charge a fee for this software nor for any derived work in which this software is included. 16RESTRICTED= You must not charge a fee for this software nor for any derived work in which this software is included.
17NO_BIN_ON_CDROM= ${RESTRICTED} 17NO_BIN_ON_CDROM= ${RESTRICTED}
18NO_SRC_ON_CDROM= ${RESTRICTED} 18NO_SRC_ON_CDROM= ${RESTRICTED}
19 19
 20NOT_FOR_PLATFORM= DragonFly-*-x86_64 # Can't build 32-bit binaries
20PKG_DESTDIR_SUPPORT= user-destdir 21PKG_DESTDIR_SUPPORT= user-destdir
21 22
22EXTRACT_OPTS_ZIP= -LLaqo 23EXTRACT_OPTS_ZIP= -LLaqo
23WRKSRC= ${WRKDIR} 24WRKSRC= ${WRKDIR}
24MAKE_FILE= makefile 25MAKE_FILE= makefile
25AUTO_MKDIRS= yes 26AUTO_MKDIRS= yes
26 27
27SUBST_CLASSES+= path 28SUBST_CLASSES+= path
28SUBST_STAGE.path= pre-configure 29SUBST_STAGE.path= pre-configure
29SUBST_FILES.path= connect4.h 30SUBST_FILES.path= connect4.h
30SUBST_SED.path= -e 's,"white_ob.cn4","${PREFIX}/share/velena/white_ob.cn4",' 31SUBST_SED.path= -e 's,"white_ob.cn4","${PREFIX}/share/velena/white_ob.cn4",'
31 32
32SUBST_CLASSES+= ansi-c 33SUBST_CLASSES+= ansi-c
33SUBST_STAGE.ansi-c= pre-configure 34SUBST_STAGE.ansi-c= pre-configure
34SUBST_FILES.ansi-c= *.c *.h 35SUBST_FILES.ansi-c= *.c *.h
35SUBST_SED.ansi-c= -e 's,<malloc\.h>,<stdlib.h>,' 36SUBST_SED.ansi-c= -e 's,<malloc\.h>,<stdlib.h>,'
36 37
37SUBST_CLASSES+= cflags 38SUBST_CLASSES+= cflags
38SUBST_STAGE.cflags= pre-configure 39SUBST_STAGE.cflags= pre-configure
39SUBST_FILES.cflags= makefile 40SUBST_FILES.cflags= makefile
40SUBST_SED.cflags= -e s,^CFLAGS.*,, 41SUBST_SED.cflags= -e s,^CFLAGS.*,,
41 42
42# Velena isn't 64bit-safe, which results in a "fatal error" for some 43# Velena isn't 64bit-safe, which results in a "fatal error" for some
43# board positions. 44# board positions.
44# 45#
45# Try for example "c170", which works with -m32 and fails without. 46# Try for example "c170", which works with -m32 and fails without.
46# 47#
47.include "../../mk/bsd.prefs.mk" 48.include "../../mk/bsd.prefs.mk"
48.if ${MACHINE_ARCH:M*64} != "" 49.if ${MACHINE_ARCH:M*64} != ""
49. if ${PKGSRC_COMPILER:Mgcc} != "" 50. if ${PKGSRC_COMPILER:Mgcc} != ""
50CFLAGS+= -m32 51CFLAGS+= -m32
51. else 52. else
52PKG_FAIL_REASON+= "Velena doesn't work on 64-bit platforms." 53PKG_FAIL_REASON+= "Velena doesn't work on 64-bit platforms."
53. endif 54. endif
54.endif 55.endif
55 56
56do-install: 57do-install:
57 ${INSTALL_PROGRAM} ${WRKSRC}/veleng ${DESTDIR}${PREFIX}/bin/velena 58 ${INSTALL_PROGRAM} ${WRKSRC}/veleng ${DESTDIR}${PREFIX}/bin/velena
58 ${INSTALL_DATA} ${WRKSRC}/readme ${DESTDIR}${PREFIX}/share/doc/velena/README 59 ${INSTALL_DATA} ${WRKSRC}/readme ${DESTDIR}${PREFIX}/share/doc/velena/README
59 ${INSTALL_DATA} ${WRKSRC}/white_ob.cn4 ${DESTDIR}${PREFIX}/share/velena/. 60 ${INSTALL_DATA} ${WRKSRC}/white_ob.cn4 ${DESTDIR}${PREFIX}/share/velena/.
60 61
61.include "../../mk/bsd.pkg.mk" 62.include "../../mk/bsd.pkg.mk"