summaryrefslogtreecommitdiff
path: root/lang
diff options
context:
space:
mode:
authordholland <dholland@pkgsrc.org>2008-09-07 04:35:41 +0000
committerdholland <dholland@pkgsrc.org>2008-09-07 04:35:41 +0000
commit5294bc4511f02d5979158b531ff3f391245dfa46 (patch)
tree53a360a10188fc0a001ccf3fbf4e1e7605d3c743 /lang
parent90c42840f45aa1f1ecbfbdaa89b20ab566577853 (diff)
downloadpkgsrc-5294bc4511f02d5979158b531ff3f391245dfa46.tar.gz
Make this configure for NetBSD amd64. While here, add DESTDIR support.
Diffstat (limited to 'lang')
-rw-r--r--lang/gprolog/Makefile4
-rw-r--r--lang/gprolog/distinfo10
-rw-r--r--lang/gprolog/patches/patch-aa12
-rw-r--r--lang/gprolog/patches/patch-ab15
-rw-r--r--lang/gprolog/patches/patch-ac22
-rw-r--r--lang/gprolog/patches/patch-ad13
-rw-r--r--lang/gprolog/patches/patch-ae22
-rw-r--r--lang/gprolog/patches/patch-af22
-rw-r--r--lang/gprolog/patches/patch-ba27
9 files changed, 138 insertions, 9 deletions
diff --git a/lang/gprolog/Makefile b/lang/gprolog/Makefile
index 025b0f54d69..ca522c121e1 100644
--- a/lang/gprolog/Makefile
+++ b/lang/gprolog/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.11 2007/12/01 12:27:59 rillig Exp $
+# $NetBSD: Makefile,v 1.12 2008/09/07 04:35:41 dholland Exp $
DISTNAME= gprolog-1.3.0
CATEGORIES= lang
@@ -8,6 +8,8 @@ MAINTAINER= brook@nmsu.edu
HOMEPAGE= http://www.gprolog.org/
COMMENT= GNU prolog compiler and interpreter
+PKG_DESTDIR_SUPPORT= user-destdir
+
GNU_CONFIGURE= yes
CONFIGURE_DIRS= src
CONFIGURE_ARGS+= --with-install-dir=${PREFIX}/lib/${PKGNAME_NOREV} \
diff --git a/lang/gprolog/distinfo b/lang/gprolog/distinfo
index 663b6650980..e460428f503 100644
--- a/lang/gprolog/distinfo
+++ b/lang/gprolog/distinfo
@@ -1,6 +1,12 @@
-$NetBSD: distinfo,v 1.7 2007/12/01 12:27:59 rillig Exp $
+$NetBSD: distinfo,v 1.8 2008/09/07 04:35:41 dholland Exp $
SHA1 (gprolog-1.3.0.tar.gz) = 1ad7b7764c8e8d92f4f18619f29155001fe7d78f
RMD160 (gprolog-1.3.0.tar.gz) = 56a7e6f0dab343d162620bccb177e67bca639797
Size (gprolog-1.3.0.tar.gz) = 3016665 bytes
-SHA1 (patch-ba) = 226ca02c9a70b49278237cebc66eda3439df2f88
+SHA1 (patch-aa) = 5a277c8653e6df10ef2fd6a7e0edc6a6a3b5e606
+SHA1 (patch-ab) = b4b2183c6054061ac68c2904527b63482174534c
+SHA1 (patch-ac) = edd1fbe7816fd07cf377dc513cd48c11aaf9470d
+SHA1 (patch-ad) = bf95eace095f8a0ce92f678b0401c86db4f89ffa
+SHA1 (patch-ae) = 10d1af60aed05009a08f95c90e7c8607d64c7b9b
+SHA1 (patch-af) = 228a7b4f5a3d1c30a8f8f00b83b19304c29e9ca9
+SHA1 (patch-ba) = ccf0dc3c57fcd611ac03ef16dc28b08348d620fd
diff --git a/lang/gprolog/patches/patch-aa b/lang/gprolog/patches/patch-aa
new file mode 100644
index 00000000000..33679ad8f8d
--- /dev/null
+++ b/lang/gprolog/patches/patch-aa
@@ -0,0 +1,12 @@
+$NetBSD: patch-aa,v 1.5 2008/09/07 04:35:41 dholland Exp $
+
+--- src/configure.in~ 2007-01-04 05:21:52.000000000 -0500
++++ src/configure.in 2008-09-06 23:58:31.000000000 -0400
+@@ -328,6 +328,7 @@ else
+ alpha*osf*) AC_DEFINE(M_alpha_osf);;
+ alpha*linux*) AC_DEFINE(M_alpha_linux);;
+ x86_64*linux*) AC_DEFINE(M_x86_64_linux);;
++ x86_64*bsd*) AC_DEFINE(M_x86_64_bsd);;
+ i*86*linux*) AC_DEFINE(M_ix86_linux);;
+ i*86*solaris*) AC_DEFINE(M_ix86_solaris);;
+ i*86*sco*) AC_DEFINE(M_ix86_sco);;
diff --git a/lang/gprolog/patches/patch-ab b/lang/gprolog/patches/patch-ab
new file mode 100644
index 00000000000..0ca7d655c8d
--- /dev/null
+++ b/lang/gprolog/patches/patch-ab
@@ -0,0 +1,15 @@
+$NetBSD: patch-ab,v 1.6 2008/09/07 04:35:41 dholland Exp $
+
+--- src/configure~ 2007-01-05 07:13:28.000000000 -0500
++++ src/configure 2008-09-06 23:58:51.000000000 -0400
+@@ -3554,6 +3554,10 @@ _ACEOF
+ #define M_x86_64_linux 1
+ _ACEOF
+ ;;
++ x86_64*bsd*) cat >>confdefs.h <<\_ACEOF
++#define M_x86_64_bsd 1
++_ACEOF
++;;
+ i*86*linux*) cat >>confdefs.h <<\_ACEOF
+ #define M_ix86_linux 1
+ _ACEOF
diff --git a/lang/gprolog/patches/patch-ac b/lang/gprolog/patches/patch-ac
new file mode 100644
index 00000000000..e995462b600
--- /dev/null
+++ b/lang/gprolog/patches/patch-ac
@@ -0,0 +1,22 @@
+$NetBSD: patch-ac,v 1.6 2008/09/07 04:35:41 dholland Exp $
+
+--- src/Ma2Asm/FromC/mach.h~ 2007-01-04 05:21:48.000000000 -0500
++++ src/Ma2Asm/FromC/mach.h 2008-09-07 00:03:37.000000000 -0400
+@@ -13,7 +13,7 @@
+
+ #if defined(M_sony_news) || defined(M_ultrix_dec) || defined(M_alpha_osf) ||\
+ defined(M_ix86_linux) || defined(M_ix86_sco) || defined(M_ix86_bsd) ||\
+- defined(M_x86_64_linux) || \
++ defined(M_x86_64_linux) || defined(m_x86_64_bsd) || \
+ defined(M_powerpc_bsd) || defined(M_sparc_bsd) || defined(__ELF__)
+
+ # define M_Asm_Symbol1(name) #name
+@@ -64,7 +64,7 @@
+
+ # define M_Direct_Goto(lab) {_asm {jmp M_Asm_Symbol(lab)}; return;}
+
+-#elif defined(M_x86_64_linux)
++#elif defined(M_x86_64)
+
+ # define M_Direct_Goto(lab) {asm("jmp " M_Asm_Symbol(lab)); return;}
+
diff --git a/lang/gprolog/patches/patch-ad b/lang/gprolog/patches/patch-ad
new file mode 100644
index 00000000000..32c47715b18
--- /dev/null
+++ b/lang/gprolog/patches/patch-ad
@@ -0,0 +1,13 @@
+$NetBSD: patch-ad,v 1.5 2008/09/07 04:35:41 dholland Exp $
+
+--- src/EnginePl/gp_config.h.in~ 2007-01-04 05:21:49.000000000 -0500
++++ src/EnginePl/gp_config.h.in 2008-09-07 00:04:54.000000000 -0400
+@@ -177,6 +177,8 @@
+ /* Define if the system is a x86-64/linux */
+ #undef M_x86_64_linux
+
++/* Define if the system is a x86-64/bsd */
++#undef M_x86_64_bsd
+
+
+ /* Constant definitions */
diff --git a/lang/gprolog/patches/patch-ae b/lang/gprolog/patches/patch-ae
new file mode 100644
index 00000000000..cbfbd205294
--- /dev/null
+++ b/lang/gprolog/patches/patch-ae
@@ -0,0 +1,22 @@
+$NetBSD: patch-ae,v 1.6 2008/09/07 04:35:41 dholland Exp $
+
+--- src/EnginePl/engine1.c~ 2007-01-04 05:35:13.000000000 -0500
++++ src/EnginePl/engine1.c 2008-09-07 00:09:12.000000000 -0400
+@@ -100,7 +100,7 @@ Call_Compiled(CodePtr codep)
+ register WamWord *rb asm("%l0") = reg_bank;
+ ensure_reserved = (WamWord *) rb; /* to avoid gcc warning */
+
+-#elif defined(M_x86_64_linux)
++#elif defined(M_x86_64)
+
+ register WamWord *rb asm("%r12") = reg_bank;
+ ensure_reserved = (WamWord *) rb; /* to avoid gcc warning */
+@@ -113,7 +113,7 @@ Call_Compiled(CodePtr codep)
+ #if defined(M_ix86_darwin) /* see comment in Ma2Asm/ix86_any.c */
+ asm("andl $0xfffffff0,%esp");
+ asm("addl $4,%esp");
+-#elif defined(M_x86_64_linux) /* see comment in Ma2Asm/x86_64_any.c */
++#elif defined(M_x86_64) /* see comment in Ma2Asm/x86_64_any.c */
+ asm("andq $0xfffffffffffffff0,%rsp");
+ asm("addq $8,%rsp");
+ #endif
diff --git a/lang/gprolog/patches/patch-af b/lang/gprolog/patches/patch-af
new file mode 100644
index 00000000000..4faef71b39b
--- /dev/null
+++ b/lang/gprolog/patches/patch-af
@@ -0,0 +1,22 @@
+$NetBSD: patch-af,v 1.6 2008/09/07 04:35:41 dholland Exp $
+
+--- src/EnginePl/engine.c~ 2007-01-04 05:35:13.000000000 -0500
++++ src/EnginePl/engine.c 2008-09-07 00:10:33.000000000 -0400
+@@ -455,7 +455,7 @@ Call_Prolog_Fail(void)
+ {
+ #ifdef M_ix86_darwin /* see comment in Ma2Asm/ix86_any.c */
+ asm("subl $4,%esp");
+-#elif defined(M_x86_64_linux) /* see comment in Ma2Asm/x86_64_any.c */
++#elif defined(M_x86_64) /* see comment in Ma2Asm/x86_64_any.c */
+ asm("subq $8,%rsp");
+ #endif
+ Save_Machine_Regs(p_buff_save);
+@@ -475,7 +475,7 @@ Call_Prolog_Success(void)
+ {
+ #ifdef M_ix86_darwin /* see comment in Ma2Asm/ix86_any.c */
+ asm("subl $4,%esp");
+-#elif defined(M_x86_64_linux) /* see comment in Ma2Asm/x86_64_any.c */
++#elif defined(M_x86_64) /* see comment in Ma2Asm/x86_64_any.c */
+ asm("subq $8,%rsp");
+ #endif
+ Save_Machine_Regs(p_buff_save);
diff --git a/lang/gprolog/patches/patch-ba b/lang/gprolog/patches/patch-ba
index 879eee5d3ab..0bc53a237c8 100644
--- a/lang/gprolog/patches/patch-ba
+++ b/lang/gprolog/patches/patch-ba
@@ -1,10 +1,7 @@
-$NetBSD: patch-ba,v 1.1 2007/12/01 12:28:04 rillig Exp $
+$NetBSD: patch-ba,v 1.2 2008/09/07 04:35:41 dholland Exp $
-On NetBSD, the sigcontext struct is so well-protected from userland that
-I didn't find a way to access it.
-
---- src/EnginePl/machine.c.orig 2007-01-04 11:35:13.000000000 +0100
-+++ src/EnginePl/machine.c 2007-12-01 13:18:32.000000000 +0100
+--- src/EnginePl/machine.c.orig 2007-01-04 05:35:13.000000000 -0500
++++ src/EnginePl/machine.c 2008-09-07 00:07:29.000000000 -0400
@@ -469,7 +469,7 @@ SIGSEGV_Handler(int sig, struct sigconte
static void
SIGSEGV_Handler(int sig, siginfo_t * si)
@@ -14,6 +11,24 @@ I didn't find a way to access it.
static void
SIGSEGV_Handler(int sig, int code, struct sigcontext *scp)
+@@ -482,7 +482,7 @@ SIGSEGV_Handler(WamWord *addr)
+ void
+ SIGSEGV_Handler(int sig, int code, struct sigcontext *scp)
+
+-#elif defined(M_x86_64_linux)
++#elif defined(M_x86_64_linux) || defined(M_x86_64_bsd)
+ void
+ SIGSEGV_Handler(int sig, siginfo_t *sip, void *scp)
+
+@@ -509,7 +509,7 @@ SIGSEGV_Handler(int sig)
+
+ WamWord *addr = (WamWord *) scp.cr2;
+
+-#elif defined(M_x86_64_linux)
++#elif defined(M_x86_64_linux) || defined(M_x86_64_bsd)
+
+ WamWord *addr = (WamWord *) sip->si_addr;
+
@@ -517,7 +517,7 @@ SIGSEGV_Handler(int sig)
WamWord *addr = (WamWord *) si->si_addr;