summaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2007-08-29 16:58:48 +0000
committerjlam <jlam@pkgsrc.org>2007-08-29 16:58:48 +0000
commitb53c9e14d1864e2fab2f228af647cda0aa09effd (patch)
treef4c633f761e8e3f09778caac1fb46b89ed6d1d6a /devel
parenta57e707ad8e7911fcd713cd55a229f32416c08c0 (diff)
downloadpkgsrc-b53c9e14d1864e2fab2f228af647cda0aa09effd.tar.gz
Convert to use the pkgsrc emulator framework.
Diffstat (limited to 'devel')
-rw-r--r--devel/p4/Makefile.common47
1 files changed, 19 insertions, 28 deletions
diff --git a/devel/p4/Makefile.common b/devel/p4/Makefile.common
index e0db12f89c3..b48e09c7d29 100644
--- a/devel/p4/Makefile.common
+++ b/devel/p4/Makefile.common
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.common,v 1.11 2007/03/15 07:14:27 schmonz Exp $
+# $NetBSD: Makefile.common,v 1.12 2007/08/29 16:58:48 jlam Exp $
#
P4_VERS= 2006.1
@@ -7,7 +7,7 @@ CATEGORIES= devel scm
MAINTAINER= schmonz@NetBSD.org
NO_CONFIGURE= yes
-NO_BUILD= yes
+BUILD_DIRS= # empty
WRKSRC= ${WRKDIR}
DIST_SUBDIR= perforce
@@ -21,40 +21,31 @@ EXTRACT_ONLY= # none
_STRIPFLAG_INSTALL= # none
-.include "../../mk/bsd.prefs.mk"
+EMUL_PLATFORMS+= darwin-i386 darwin-powerpc
+EMUL_PLATFORMS+= linux-i386 linux-x86_64
+EMUL_PLATFORMS+= netbsd-i386 netbsd-x86_64
+EMUL_REQD= netbsd>=3.0
-. if ${OPSYS} == "Darwin"
-. if ${OS_VERSION:M8.*}
-. if ${MACHINE_ARCH} == "i386"
+. include "../../mk/bsd.prefs.mk"
+
+. if ${EMUL_PLATFORM} == "darwin-i386"
P4ARCH?= darwin80x86
-. elif ${MACHINE_ARCH} == "powerpc"
+. elif ${EMUL_PLATFORM} == "darwin-powerpc"
P4ARCH?= darwin80ppc
-. endif
-. endif
-. elif ${OPSYS} == "Linux"
-. if ${OS_VERSION:M2.6.*}
-. if ${MACHINE_ARCH} == "i386"
+. elif ${EMUL_PLATFORM} == "linux-i386"
+. if defined(EMUL_IS_NATIVE) && !empty(OS_VERSION:M2.6.*)
P4ARCH?= linux26x86
-. elif ${MACHINE_ARCH} == "x86_64"
-P4ARCH?= linux26x86_64
-. endif
-. elif ${OS_VERSION:M2.4.*}
-. if ${MACHINE_ARCH} == "i386"
+. else
P4ARCH?= linux24x86
-. endif
. endif
-. elif ${OPSYS} == "NetBSD"
-. if ${OS_VERSION:M3.1.*} || ${OS_VERSION:M4.*}
-. if ${MACHINE_ARCH} == "i386"
+. elif ${EMUL_PLATFORM} == "linux-x86_64"
+P4ARCH?= linux26x86_64
+. elif ${EMUL_PLATFORM} == "netbsd-i386"
P4ARCH?= netbsd31x86
-. elif ${MACHINE_ARCH} == "x86_64"
+. elif ${EMUL_PLATFORM} == "netbsd-x86_64"
P4ARCH?= netbsd31x86_64
-. endif
-. endif
-. endif
-
-. if !defined(P4ARCH)
-NOT_FOR_PLATFORM= ${MACHINE_PLATFORM}
+. else
+P4ARCH?= none
. endif
.endif # P4BINONLY