summaryrefslogtreecommitdiffstats
path: root/devel/p4/Makefile.inc
blob: d0e769f4e6b33dcf59b5b268a875aba792289e25 (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
# Figure out what to install
.if ${OPSYS} == FreeBSD

ONLY_FOR_ARCHS?= amd64 i386

.if ${ARCH} == amd64
. if ${OSVERSION} >= 1000100
PLATFORM=	freebsd100x86_64
. else
PLATFORM=	freebsd70x86_64
. endif

.elif ${ARCH} == i386
. if ${OSVERSION} >= 1000100
PLATFORM=	freebsd100x86
. else
PLATFORM=	freebsd70x86
. endif

.else
IGNORE=		unsupported OS release, sorry
.endif

.else
IGNORE=		${OPSYS} is unsupported, sorry
.endif

P4VERSION?=	r${PORTVERSION:S/^20//:C/\.[0-9]+$//}
DIST_SUBDIR?=	perforce/${PORTVERSION}/bin.${PLATFORM}
DISTINFO_FILE?=	${MASTERDIR}/distinfo.${PLATFORM}
OpenPOWER on IntegriCloud