diff options
author | dholland <dholland@pkgsrc.org> | 2015-01-04 03:26:34 +0000 |
---|---|---|
committer | dholland <dholland@pkgsrc.org> | 2015-01-04 03:26:34 +0000 |
commit | 3faad3ed7d73c0580a9b401e40aeecd5bd67991e (patch) | |
tree | 48b2ec2150693c07815e879b26193996eed27d56 /lang/nhc98 | |
parent | 72d6f7af5e8345335ffdc6be3557dd51c0558ef2 (diff) | |
download | pkgsrc-3faad3ed7d73c0580a9b401e40aeecd5bd67991e.tar.gz |
Systematize 32-on-64 handling.
Diffstat (limited to 'lang/nhc98')
-rw-r--r-- | lang/nhc98/Makefile | 23 |
1 files changed, 14 insertions, 9 deletions
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` |