diff options
author | dholland <dholland@pkgsrc.org> | 2015-01-04 03:07:51 +0000 |
---|---|---|
committer | dholland <dholland@pkgsrc.org> | 2015-01-04 03:07:51 +0000 |
commit | e0ed10d20655a015de76cf19be31e3bf7a8b9e77 (patch) | |
tree | eaecd16439473a529c1690cc9998f5bfdb4887f2 /games | |
parent | b2fbe4fbf169cf88e3235f47f962d734a0c37da7 (diff) | |
download | pkgsrc-e0ed10d20655a015de76cf19be31e3bf7a8b9e77.tar.gz |
Systematize handling of 32-on-64 binaries.
XXX: We need common infrastructure for this; there's more of them than
XXX: I realized.
Diffstat (limited to 'games')
-rw-r--r-- | games/velena/Makefile | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/games/velena/Makefile b/games/velena/Makefile index b1b938eabf9..5885cd1a73a 100644 --- a/games/velena/Makefile +++ b/games/velena/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.14 2012/10/06 11:54:57 asau Exp $ +# $NetBSD: Makefile,v 1.15 2015/01/04 03:07:51 dholland Exp $ # DISTNAME= veleng10 @@ -17,7 +17,9 @@ RESTRICTED= You must not charge a fee for this software nor for any derived wor NO_BIN_ON_CDROM= ${RESTRICTED} NO_SRC_ON_CDROM= ${RESTRICTED} -NOT_FOR_PLATFORM= DragonFly-*-x86_64 # Can't build 32-bit binaries +# These platforms cannot build 32-on-64 binaries. +NOT_FOR_PLATFORM+= *-*-alpha +NOT_FOR_PLATFORM+= DragonFly-*-x86_64 EXTRACT_OPTS_ZIP= -LLaqo WRKSRC= ${WRKDIR} @@ -39,19 +41,19 @@ SUBST_STAGE.cflags= pre-configure SUBST_FILES.cflags= makefile SUBST_SED.cflags= -e s,^CFLAGS.*,, +.include "../../mk/bsd.prefs.mk" + # Velena isn't 64bit-safe, which results in a "fatal error" for some # board positions. # # Try for example "c170", which works with -m32 and fails without. # -.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 +.for P in ${LP64PLATFORMS} +.if ${MACHINE_PLATFORM:M${P}} +CFLAGS+= -m32 +LDFLAGS+= -m32 .endif +.endfor do-install: ${INSTALL_PROGRAM} ${WRKSRC}/veleng ${DESTDIR}${PREFIX}/bin/velena |