summaryrefslogtreecommitdiff
path: root/devel/p4/Makefile.common
blob: 3074b0142814888eb33e14e9659b190512e998d7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
# $NetBSD: Makefile.common,v 1.10 2007/02/17 20:59:49 wiz Exp $
#

P4_VERS=	2002.1
PKGNAME=	${DISTNAME}-${P4_VERS}
CATEGORIES=	devel p4
MAINTAINER=	schmonz@NetBSD.org

NO_CONFIGURE=	yes
NO_BUILD=	yes

WRKSRC=		${WRKDIR}
DIST_SUBDIR=	perforce

.if defined(P4BINONLY)

DIST_SUBDIR=	perforce/${P4ARCH}
MASTER_SITES=	ftp://ftp.perforce.com/pub/perforce/r02.1/bin.${P4ARCH}/
DISTFILES=	${DISTNAME}
EXTRACT_ONLY=	# none

_STRIPFLAG_INSTALL=	# none

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

.  if ${OPSYS} == "Darwin"
.    if ${MACHINE_ARCH} == "powerpc"
P4ARCH?=	darwinppc
.    endif
.  elif ${OPSYS} == "Linux"
.    if ${MACHINE_ARCH} == "arm"
P4ARCH?=	linuxarm
.    elif ${MACHINE_ARCH} == "i386"
P4ARCH?=	linux24x86
.    elif ${MACHINE_ARCH} == "powerpc"
P4ARCH?=	linuxppc
.    elif ${MACHINE_ARCH} == "sparc"
P4ARCH?=	linux52sparc
.    endif
.  elif ${OPSYS} == "NetBSD"
.    if ${MACHINE_ARCH} == "alpha"
P4ARCH?=	netbsdaxp
.    elif ${MACHINE_ARCH} == "i386"
.      if ${DISTNAME} == "p4web"
P4ARCH?=	freebsd22		# XXX COMPAT_FREEBSD
.      else
P4ARCH?=	netbsdx86
.      endif
.    elif ${MACHINE_ARCH} == "powerpc"
P4ARCH?=	linuxppc		# XXX COMPAT_LINUX
.    elif ${MACHINE_ARCH} == "sparc"
P4ARCH?=	sunos			# XXX COMPAT_SUNOS
.    endif
.  elif ${OPSYS} == "SunOS"
.    if ${MACHINE_ARCH} == "i386"
P4ARCH?=	solaris26x86
.    elif ${MACHINE_ARCH} == "sparc"
P4ARCH?=	solaris26
.    endif
.  endif

.  if !defined(P4ARCH)
NOT_FOR_PLATFORM=	${MACHINE_PLATFORM}
.  endif

.endif	# P4BINONLY