summaryrefslogtreecommitdiff
path: root/emulators/twin/patches
diff options
context:
space:
mode:
authorjmc <jmc@pkgsrc.org>2003-03-08 03:15:49 +0000
committerjmc <jmc@pkgsrc.org>2003-03-08 03:15:49 +0000
commit0fcdab00b6c44e3abd27afa3522ecdaa9f7e47dd (patch)
tree258daed6e26f7a0e2ba59c1e4269033ad6547592 /emulators/twin/patches
parentbcf598b1a6777930fb11f3fb27de997c265b72f8 (diff)
downloadpkgsrc-0fcdab00b6c44e3abd27afa3522ecdaa9f7e47dd.tar.gz
Add support for NetBSD powerpc.
Requires splitting up PLIST as x86 is the only platform that supports the win32 loader and the debugger libraries. Not extensively tested but appears to run basic 16 bit windows apps
Diffstat (limited to 'emulators/twin/patches')
-rw-r--r--emulators/twin/patches/patch-aa10
-rw-r--r--emulators/twin/patches/patch-ab33
-rw-r--r--emulators/twin/patches/patch-ah19
-rw-r--r--emulators/twin/patches/patch-ai13
-rw-r--r--emulators/twin/patches/patch-aj13
5 files changed, 78 insertions, 10 deletions
diff --git a/emulators/twin/patches/patch-aa b/emulators/twin/patches/patch-aa
index 3e51ab7a2a5..7a154c64480 100644
--- a/emulators/twin/patches/patch-aa
+++ b/emulators/twin/patches/patch-aa
@@ -1,12 +1,12 @@
-$NetBSD: patch-aa,v 1.1.1.1 2001/05/15 09:46:37 agc Exp $
+$NetBSD: patch-aa,v 1.2 2003/03/08 03:15:51 jmc Exp $
---- configure.in.orig Sun Jan 14 00:23:50 2001
-+++ configure.in Sun May 13 09:37:19 2001
+--- configure.in.orig Sun Jan 14 08:23:50 2001
++++ configure.in Fri Apr 5 22:31:14 2002
@@ -147,6 +147,10 @@
TARGET=freebsd
;;
-+ i*86-*-netbsd* )
++ *netbsd* )
+ TARGET=netbsd
+ ;;
+
@@ -19,7 +19,7 @@ $NetBSD: patch-aa,v 1.1.1.1 2001/05/15 09:46:37 agc Exp $
TWIN_CFLAGS=-g
+ ;;
+
-+ i*86-*-netbsd* )
++ *netbsd* )
+ LIBTWIN_LDFLAGS="$LDFLAGS $LIBTWIN_LDFLAGS"
+ DLL_LDFLAGS="$LDFLAGS $DLL_LDFLAGS"
;;
diff --git a/emulators/twin/patches/patch-ab b/emulators/twin/patches/patch-ab
index df22defa40a..47a6b6df521 100644
--- a/emulators/twin/patches/patch-ab
+++ b/emulators/twin/patches/patch-ab
@@ -1,18 +1,41 @@
-$NetBSD: patch-ab,v 1.1.1.1 2001/05/15 09:46:37 agc Exp $
+$NetBSD: patch-ab,v 1.2 2003/03/08 03:15:51 jmc Exp $
---- osdll/Makefile.in.orig Sun May 13 00:21:55 2001
-+++ osdll/Makefile.in Sun May 13 00:23:18 2001
-@@ -18,6 +18,7 @@
+--- osdll/Makefile.in.orig Sun Aug 22 05:55:20 1999
++++ osdll/Makefile.in Fri Apr 5 20:42:06 2002
+@@ -8,16 +8,22 @@
+
+ THREAD_alpha_linux = DrvThreads_nothreads.c
+ THREAD_alpha_freebsd = DrvThreads_nothreads.c
++THREAD_alpha_netbsd = DrvThreads_generic.c
+ THREAD_alpha_osf = DrvThreads_nothreads.c
++THREAD_arm_netbsd = DrvThreads_generic.c
+ THREAD_arm_linux = DrvThreads_nothreads.c
+ #THREAD_hppa_hpux = DrvThreads_generic.c FIXME: temporary fix.
+ THREAD_hppa_hpux = DrvThreads_nothreads.c
++THREAD_mips_netbsd = DrvThreads_generic.c
+ THREAD_mips_irix = DrvThreads_generic.c
+ THREAD_ppc_aix = DrvThreads_nothreads.c
+ THREAD_ppc_linux = DrvThreads_generic.c
++THREAD_ppc_netbsd = DrvThreads_generic.c
THREAD_sparc_solaris = DrvThreads_generic.c
++THREAD_sparc_netbsd = DrvThreads_generic.c
THREAD_sparc_sunos = DrvThreads_generic.c
THREAD_X386_freebsd = DrvThreads_X386.c
+THREAD_X386_netbsd = DrvThreads_X386.c
THREAD_X386_linux = DrvThreads_X386.c
THREAD_X386_sco = DrvThreads_X386.c
THREAD_X386_solaris = DrvThreads_X386.c
-@@ -35,6 +36,7 @@
+@@ -30,11 +36,15 @@
+ #SYSTEM_hppa_hpux = DrvSystem_hppa.s FIXME: bad assembly code.
+ SYSTEM_hppa_hpux =
+ SYSTEM_mips_irix = DrvSystem_mips.s
++SYSTEM_mips_netbsd = DrvSystem_mips.s
+ SYSTEM_ppc_aix = DrvSystem_ppc.s
+ SYSTEM_ppc_linux = DrvSystem_ppc-gcc.s
++SYSTEM_ppc_netbsd = DrvSystem_ppc-gcc.s
SYSTEM_sparc_solaris = DrvSystem_sparc.s
SYSTEM_sparc_sunos = DrvSystem_sparc.s
++SYSTEM_sparc_netbsd = DrvSystem_sparc.s
SYSTEM_X386_freebsd =
+SYSTEM_X386_netbsd =
SYSTEM_X386_linux =
diff --git a/emulators/twin/patches/patch-ah b/emulators/twin/patches/patch-ah
new file mode 100644
index 00000000000..d5edd6e9ccc
--- /dev/null
+++ b/emulators/twin/patches/patch-ah
@@ -0,0 +1,19 @@
+$NetBSD: patch-ah,v 1.1 2003/03/08 03:15:51 jmc Exp $
+
+--- windows/WSprintf.c.orig Fri Apr 5 20:42:48 2002
++++ windows/WSprintf.c Fri Apr 5 20:43:47 2002
+@@ -56,6 +56,14 @@
+ int WINAPI
+ wvsprintf(LPSTR buf, LPCSTR fmt, void *args)
+ {
++#ifdef __NetBSD__
++#ifdef __powerpc__
++ va_list *ap = args;
++
++ vsprintf(buf,fmt,*ap);
++#endif
++#else
+ vsprintf(buf,fmt,args);
++#endif
+ return strlen(buf);
+ }
diff --git a/emulators/twin/patches/patch-ai b/emulators/twin/patches/patch-ai
new file mode 100644
index 00000000000..bdd6b4aa46f
--- /dev/null
+++ b/emulators/twin/patches/patch-ai
@@ -0,0 +1,13 @@
+$NetBSD: patch-ai,v 1.1 2003/03/08 03:15:52 jmc Exp $
+
+--- osdll/DrvSystem_ppc-gcc.s.orig Fri Apr 5 21:29:15 2002
++++ osdll/DrvSystem_ppc-gcc.s Fri Apr 5 21:29:27 2002
+@@ -61,7 +61,7 @@
+ mr SP,r3
+ # gcc/gas breaks on this
+ # bl .TWIN_InitStackEnd{PR}
+- bl TWIN_InitStackEnd
++ bl TWIN_InitStackEnd@plt
+ nop
+ nop
+ nop
diff --git a/emulators/twin/patches/patch-aj b/emulators/twin/patches/patch-aj
new file mode 100644
index 00000000000..4ece0c06613
--- /dev/null
+++ b/emulators/twin/patches/patch-aj
@@ -0,0 +1,13 @@
+$NetBSD: patch-aj,v 1.1 2003/03/08 03:15:52 jmc Exp $
+
+--- windows/Makefile.in.orig Fri Apr 5 21:33:13 2002
++++ windows/Makefile.in Fri Apr 5 20:46:17 2002
+@@ -17,7 +17,7 @@
+
+ target = $(LIBTWIN)
+
+-LIBTWIN_LDFLAGS = @LIBTWIN_LDFLAGS@
++LIBTWIN_LDFLAGS = @LIBTWIN_LDFLAGS@ ${LDFLAGS}
+
+ ############################################################################
+ #