2007-03-15 08:14:27 +01:00
|
|
|
# $NetBSD: Makefile.common,v 1.11 2007/03/15 07:14:27 schmonz Exp $
|
2002-09-01 04:22:54 +02:00
|
|
|
#
|
|
|
|
|
2007-03-15 08:14:27 +01:00
|
|
|
P4_VERS= 2006.1
|
2002-09-01 04:22:54 +02:00
|
|
|
PKGNAME= ${DISTNAME}-${P4_VERS}
|
2007-03-15 08:14:27 +01:00
|
|
|
CATEGORIES= devel scm
|
2003-07-17 23:31:04 +02:00
|
|
|
MAINTAINER= schmonz@NetBSD.org
|
2002-09-01 04:22:54 +02:00
|
|
|
|
2005-05-23 00:29:50 +02:00
|
|
|
NO_CONFIGURE= yes
|
|
|
|
NO_BUILD= yes
|
2002-09-01 04:22:54 +02:00
|
|
|
|
2004-01-20 13:07:06 +01:00
|
|
|
WRKSRC= ${WRKDIR}
|
2002-09-01 04:22:54 +02:00
|
|
|
DIST_SUBDIR= perforce
|
|
|
|
|
|
|
|
.if defined(P4BINONLY)
|
|
|
|
|
|
|
|
DIST_SUBDIR= perforce/${P4ARCH}
|
2007-03-15 08:14:27 +01:00
|
|
|
MASTER_SITES= ftp://ftp.perforce.com/pub/perforce/r06.1/bin.${P4ARCH}/
|
2002-09-01 04:22:54 +02:00
|
|
|
DISTFILES= ${DISTNAME}
|
|
|
|
EXTRACT_ONLY= # none
|
|
|
|
|
|
|
|
_STRIPFLAG_INSTALL= # none
|
|
|
|
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
|
2006-06-17 22:44:03 +02:00
|
|
|
. if ${OPSYS} == "Darwin"
|
2007-03-15 08:14:27 +01:00
|
|
|
. if ${OS_VERSION:M8.*}
|
|
|
|
. if ${MACHINE_ARCH} == "i386"
|
|
|
|
P4ARCH?= darwin80x86
|
|
|
|
. elif ${MACHINE_ARCH} == "powerpc"
|
|
|
|
P4ARCH?= darwin80ppc
|
|
|
|
. endif
|
2006-06-17 22:44:03 +02:00
|
|
|
. endif
|
|
|
|
. elif ${OPSYS} == "Linux"
|
2007-03-15 08:14:27 +01:00
|
|
|
. if ${OS_VERSION:M2.6.*}
|
|
|
|
. if ${MACHINE_ARCH} == "i386"
|
|
|
|
P4ARCH?= linux26x86
|
|
|
|
. elif ${MACHINE_ARCH} == "x86_64"
|
|
|
|
P4ARCH?= linux26x86_64
|
|
|
|
. endif
|
|
|
|
. elif ${OS_VERSION:M2.4.*}
|
|
|
|
. if ${MACHINE_ARCH} == "i386"
|
2002-09-01 04:22:54 +02:00
|
|
|
P4ARCH?= linux24x86
|
2007-03-15 08:14:27 +01:00
|
|
|
. endif
|
2006-06-17 22:44:03 +02:00
|
|
|
. endif
|
|
|
|
. elif ${OPSYS} == "NetBSD"
|
2007-03-15 08:14:27 +01:00
|
|
|
. if ${OS_VERSION:M3.1.*} || ${OS_VERSION:M4.*}
|
|
|
|
. if ${MACHINE_ARCH} == "i386"
|
|
|
|
P4ARCH?= netbsd31x86
|
|
|
|
. elif ${MACHINE_ARCH} == "x86_64"
|
|
|
|
P4ARCH?= netbsd31x86_64
|
2006-06-17 22:44:03 +02:00
|
|
|
. endif
|
|
|
|
. endif
|
2004-01-22 09:47:32 +01:00
|
|
|
. endif
|
2002-09-01 04:22:54 +02:00
|
|
|
|
2006-06-17 22:44:03 +02:00
|
|
|
. if !defined(P4ARCH)
|
2002-09-01 04:22:54 +02:00
|
|
|
NOT_FOR_PLATFORM= ${MACHINE_PLATFORM}
|
2006-06-17 22:44:03 +02:00
|
|
|
. endif
|
2002-09-01 04:22:54 +02:00
|
|
|
|
|
|
|
.endif # P4BINONLY
|