[BACK]Return to arch.mk CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / parallel / pvm3

File: [cvs.NetBSD.org] / pkgsrc / parallel / pvm3 / arch.mk (download)

Revision 1.12, Fri Feb 3 04:06:08 2012 UTC (9 years, 10 months ago) by sbd
Branch: MAIN
CVS Tags: pkgsrc-2019Q3-base, pkgsrc-2019Q3, pkgsrc-2019Q2-base, pkgsrc-2019Q2, pkgsrc-2019Q1-base, pkgsrc-2019Q1, pkgsrc-2018Q4-base, pkgsrc-2018Q4, pkgsrc-2018Q3-base, pkgsrc-2018Q3, pkgsrc-2018Q2-base, pkgsrc-2018Q2, pkgsrc-2018Q1-base, pkgsrc-2018Q1, pkgsrc-2017Q4-base, pkgsrc-2017Q4, pkgsrc-2017Q3-base, pkgsrc-2017Q3, pkgsrc-2017Q2-base, pkgsrc-2017Q2, pkgsrc-2017Q1-base, pkgsrc-2017Q1, pkgsrc-2016Q4-base, pkgsrc-2016Q4, pkgsrc-2016Q3-base, pkgsrc-2016Q3, pkgsrc-2016Q2-base, pkgsrc-2016Q2, pkgsrc-2016Q1-base, pkgsrc-2016Q1, pkgsrc-2015Q4-base, pkgsrc-2015Q4, pkgsrc-2015Q3-base, pkgsrc-2015Q3, pkgsrc-2015Q2-base, pkgsrc-2015Q2, pkgsrc-2015Q1-base, pkgsrc-2015Q1, pkgsrc-2014Q4-base, pkgsrc-2014Q4, pkgsrc-2014Q3-base, pkgsrc-2014Q3, pkgsrc-2014Q2-base, pkgsrc-2014Q2, pkgsrc-2014Q1-base, pkgsrc-2014Q1, pkgsrc-2013Q4-base, pkgsrc-2013Q4, pkgsrc-2013Q3-base, pkgsrc-2013Q3, pkgsrc-2013Q2-base, pkgsrc-2013Q2, pkgsrc-2013Q1-base, pkgsrc-2013Q1, pkgsrc-2012Q4-base, pkgsrc-2012Q4, pkgsrc-2012Q3-base, pkgsrc-2012Q3, pkgsrc-2012Q2-base, pkgsrc-2012Q2, pkgsrc-2012Q1-base, pkgsrc-2012Q1
Changes since 1.11: +3 -1 lines

Set _PVM_ARCH=64 on x86_64-linux.

# $NetBSD: arch.mk,v 1.12 2012/02/03 04:06:08 sbd Exp $
#

.include "../../mk/bsd.prefs.mk"

.if ${OPSYS} == "NetBSD"
_PVM_OPSYS=	NETBSD
_PVM_ARCH_cmd=	${ECHO} ${MACHINE_ARCH} | ${TR} "[a-z]" "[A-Z]"
_PVM_ARCH=	${_PVM_ARCH_cmd:sh}
.elif ${OPSYS} == "Linux"
_PVM_OPSYS=	LINUX
.  if !empty(MACHINE_ARCH:Malpha*)
_PVM_ARCH=	ALPHA
.  elif !empty(MACHINE_ARCH:Marm*)
_PVM_ARCH=	ARM
.  elif !empty(MACHINE_ARCH:Msparc*)
_PVM_ARCH=	SPARC
.  elif !empty(MACHINE_ARCH:Mhp_pa*)
_PVM_ARCH=	HPPA
.  elif !empty(MACHINE_ARCH:Mppc*)
_PVM_ARCH=	PPC
.  elif !empty(MACHINE_ARCH:Mx86_64)
_PVM_ARCH=	64
.  else
_PVM_ARCH=	# empty
.  endif
.elif ${OPSYS} == "SunOS"
.  if !empty(MACHINE_ARCH:Mi386*) || !empty(MACHINE_ARCH:Mx86_64*)
_PVM_OPSYS=	X86
.  else
_PVM_OPSYS=	SUN4
.  endif
_PVM_ARCH=	SOL2	# Solaris (SunOS 5.*)
.elif ${OPSYS} == "Darwin"
_PVM_OPSYS=    DARWIN
_PVM_ARCH=     # empty
.elif ${OPSYS} == "DragonFly"
_PVM_OPSYS=	DRAGONFLY
_PVM_ARCH=	# empty
.elif ${OPSYS} == "FreeBSD"
_PVM_OPSYS=	FREEBSD
_PVM_ARCH=	# empty
.else
_PVM_OPSYS=	UNKNOWN
_PVM_ARCH=	# empty
.endif

PVM_ARCH=	${_PVM_OPSYS}${_PVM_ARCH}
PLIST_SUBST+=	PVM_ARCH=${PVM_ARCH:Q}
FILES_SUBST+=	PVM_ARCH=${PVM_ARCH:Q}