diff options
author | kristerw <kristerw@pkgsrc.org> | 2004-03-19 22:55:30 +0000 |
---|---|---|
committer | kristerw <kristerw@pkgsrc.org> | 2004-03-19 22:55:30 +0000 |
commit | 03d5cfbeb58a31a3f8a9eaa10ffffa6363e0b432 (patch) | |
tree | 4c599f5d57c92ed834f08acde5808bacf8999e30 | |
parent | 5ad6b0e6ebd2a0e8042063a70281a53f0e6216bb (diff) | |
download | pkgsrc-03d5cfbeb58a31a3f8a9eaa10ffffa6363e0b432.tar.gz |
Add support for amd64.
-rw-r--r-- | devel/libgtop2/Makefile | 5 | ||||
-rw-r--r-- | devel/libgtop2/distinfo | 4 | ||||
-rw-r--r-- | devel/libgtop2/patches/patch-al | 11 |
3 files changed, 12 insertions, 8 deletions
diff --git a/devel/libgtop2/Makefile b/devel/libgtop2/Makefile index 2fa5ffdc68a..7253ce92758 100644 --- a/devel/libgtop2/Makefile +++ b/devel/libgtop2/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.25 2004/03/12 22:30:35 minskim Exp $ +# $NetBSD: Makefile,v 1.26 2004/03/19 22:55:30 kristerw Exp $ DISTNAME= libgtop-2.0.8 PKGNAME= ${DISTNAME:S/-/2-/} @@ -22,7 +22,8 @@ OSVERSION_SPECIFIC= YES (${MACHINE_ARCH} != arm) && (${MACHINE_ARCH} != arm32) && \ (${MACHINE_ARCH} != i386) && (${MACHINE_ARCH} != m68k) && \ (${MACHINE_ARCH} != mipsel) && (${MACHINE_ARCH} != powerpc) && \ - (${MACHINE_ARCH} != sparc) && (${MACHINE_ARCH} != sparc64) + (${MACHINE_ARCH} != sparc) && (${MACHINE_ARCH} != sparc64) && \ + (${MACHINE_ARCH} != x86_64) PKG_FAIL_REASON= "${PKGNAME} has not yet been ported to ${MACHINE_ARCH}." PKG_FAIL_REASON+= "Please look at /usr/include/${MACHINE_ARCH}/pcb.h" PKG_FAIL_REASON+= "and update patches/patch-al appropriately." diff --git a/devel/libgtop2/distinfo b/devel/libgtop2/distinfo index 02776340909..51370090475 100644 --- a/devel/libgtop2/distinfo +++ b/devel/libgtop2/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.8 2004/02/06 21:40:19 jmmv Exp $ +$NetBSD: distinfo,v 1.9 2004/03/19 22:55:30 kristerw Exp $ SHA1 (libgtop-2.0.8.tar.bz2) = 32f6f3b94a42a9cd53ad9715d3922debcf3ebbba Size (libgtop-2.0.8.tar.bz2) = 916084 bytes @@ -13,7 +13,7 @@ SHA1 (patch-ah) = 29cfc8b7f98610efb2b6013367c06f0e09a32312 SHA1 (patch-ai) = 07a83340eb9d6a36a3f5b2db33eb50c74fbc4777 SHA1 (patch-aj) = 0a0ca01be2a33a1a3b9f17e1d52db1a1b7502177 SHA1 (patch-ak) = 95170aa2786c5313f859b2381031be9bc7f7cd76 -SHA1 (patch-al) = 93dbdb01e268005f231c00ce7e640dc68b7d6ca2 +SHA1 (patch-al) = e18c0d13a3aeb6a4357147e32c9cc650a5e2a1ad SHA1 (patch-am) = cc12e383f36e7f3c0f25fd3a3ea2e0ceff04d43c SHA1 (patch-an) = 5ea04c27db91067733ab75d4ce4959446031cb91 SHA1 (patch-ao) = f54754a2bdcce99a0d953186aee6d2bcbc5d7bae diff --git a/devel/libgtop2/patches/patch-al b/devel/libgtop2/patches/patch-al index 39d5be0d874..d19748e85cd 100644 --- a/devel/libgtop2/patches/patch-al +++ b/devel/libgtop2/patches/patch-al @@ -1,7 +1,7 @@ -$NetBSD: patch-al,v 1.3 2003/12/13 20:27:42 xtraeme Exp $ +$NetBSD: patch-al,v 1.4 2004/03/19 22:55:30 kristerw Exp $ ---- sysdeps/freebsd/prockernel.c.orig Sat Sep 6 00:34:15 2003 -+++ sysdeps/freebsd/prockernel.c Sat Sep 6 00:45:41 2003 +--- sysdeps/freebsd/prockernel.c.orig 2003-10-19 18:55:32.000000000 +0200 ++++ sysdeps/freebsd/prockernel.c 2004-03-19 23:39:38.000000000 +0100 @@ -34,12 +34,9 @@ #if (!defined __OpenBSD__) && (!defined __bsdi__) #include <sys/user.h> @@ -123,7 +123,7 @@ $NetBSD: patch-al,v 1.3 2003/12/13 20:27:42 xtraeme Exp $ (unsigned long) &u_addr->u_pcb, (char *) &pcb, sizeof (pcb)) == sizeof (pcb)) { -@@ -167,18 +215,52 @@ +@@ -167,18 +215,55 @@ /*xxx FreeBSD/Alpha? */ #endif #else @@ -140,6 +140,9 @@ $NetBSD: patch-al,v 1.3 2003/12/13 20:27:42 xtraeme Exp $ +#if defined(__m68k__) + buf->kstk_esp = (u_int64_t) pcb.pcb_usp; + buf->kstk_eip = (u_int64_t) 0; ++#elif defined(__x86_64__) ++ buf->kstk_esp = (u_int64_t) pcb.pcb_usersp; ++ buf->kstk_eip = (u_int64_t) 0; +#elif (defined(__arm32__) || defined(__powerpc__)) + buf->kstk_esp = (u_int64_t) pcb.pcb_sp; + buf->kstk_eip = (u_int64_t) 0; |