pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/p4 Convert to use the pkgsrc emulator framework.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/195c8399cf7c
branches:  trunk
changeset: 532696:195c8399cf7c
user:      jlam <jlam%pkgsrc.org@localhost>
date:      Wed Aug 29 16:58:48 2007 +0000

description:
Convert to use the pkgsrc emulator framework.

diffstat:

 devel/p4/Makefile.common |  49 +++++++++++++++++++----------------------------
 1 files changed, 20 insertions(+), 29 deletions(-)

diffs (77 lines):

diff -r b5a129e990d9 -r 195c8399cf7c devel/p4/Makefile.common
--- a/devel/p4/Makefile.common  Wed Aug 29 15:59:52 2007 +0000
+++ b/devel/p4/Makefile.common  Wed Aug 29 16:58:48 2007 +0000
@@ -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 @@
 MAINTAINER=    schmonz%NetBSD.org@localhost
 
 NO_CONFIGURE=  yes
-NO_BUILD=      yes
+BUILD_DIRS=    # empty
 
 WRKSRC=                ${WRKDIR}
 DIST_SUBDIR=   perforce
@@ -21,40 +21,31 @@
 
 _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
+.  elif ${EMUL_PLATFORM} == "linux-i386"
+.    if defined(EMUL_IS_NATIVE) && !empty(OS_VERSION:M2.6.*)
+P4ARCH?=       linux26x86
+.    else
+P4ARCH?=       linux24x86
 .    endif
-.  elif ${OPSYS} == "Linux"
-.    if ${OS_VERSION:M2.6.*}
-.      if ${MACHINE_ARCH} == "i386"
-P4ARCH?=       linux26x86
-.      elif ${MACHINE_ARCH} == "x86_64"
+.  elif ${EMUL_PLATFORM} == "linux-x86_64"
 P4ARCH?=       linux26x86_64
-.      endif
-.    elif ${OS_VERSION:M2.4.*}
-.      if ${MACHINE_ARCH} == "i386"
-P4ARCH?=       linux24x86
-.      endif
-.    endif
-.  elif ${OPSYS} == "NetBSD"
-.    if ${OS_VERSION:M3.1.*} || ${OS_VERSION:M4.*}
-.      if ${MACHINE_ARCH} == "i386"
+.  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



Home | Main Index | Thread Index | Old Index