From 3faad3ed7d73c0580a9b401e40aeecd5bd67991e Mon Sep 17 00:00:00 2001 From: dholland Date: Sun, 4 Jan 2015 03:26:34 +0000 Subject: Systematize 32-on-64 handling. --- lang/nhc98/Makefile | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) (limited to 'lang/nhc98') diff --git a/lang/nhc98/Makefile b/lang/nhc98/Makefile index cff1f5247a3..b6946db0288 100644 --- a/lang/nhc98/Makefile +++ b/lang/nhc98/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.47 2014/03/09 11:59:09 roy Exp $ +# $NetBSD: Makefile,v 1.48 2015/01/04 03:26:34 dholland Exp $ DISTNAME= nhc98src-1.22 PKGNAME= nhc98-1.22 @@ -18,15 +18,20 @@ USE_TOOLS+= gmake CONFIGURE_ARGS+= --buildwith=gcc --installdir=${PREFIX} \ +docs --docdir=${PREFIX}/share/doc/nhc98 -.if (${MACHINE_ARCH} == "alpha") || (${MACHINE_ARCH} == "amd64") || \ - (${MACHINE_ARCH} == "sparc64") || (${MACHINE_ARCH} == "x86_64") || \ - (${MACHINE_ARCH} == "powerpc64") || (defined(ABI) && ${ABI} == "64") -# 64-bit platform -BUILD_MAKE_FLAGS+= PKGSRC_M32=-m32 -.else -# not a 64-bit platform -BUILD_MAKE_FLAGS+= PKGSRC_M32= +.include "../../mk/bsd.prefs.mk" + +# These platforms cannot build 32-on-64 binaries. +NOT_FOR_PLATFORM+= *-*-alpha +NOT_FOR_PLATFORM+= DragonFly-*-x86_64 + +# This package has LP64 issues, so must build as 32-bit binary. +M32= +.for P in ${LP64PLATFORMS} +.if ${MACHINE_PLATFORM:M${P}} +M32= -m32 .endif +.endfor +BUILD_MAKE_FLAGS+= PKGSRC_M32=${M32} PLIST_SUBST+= HARCH=`${WRKSRC}/script/harch` -- cgit v1.2.3