diff options
author | agc <agc> | 2001-05-15 09:46:37 +0000 |
---|---|---|
committer | agc <agc> | 2001-05-15 09:46:37 +0000 |
commit | 32cfc50943c73e74a2f5147f1b119f1faaa39222 (patch) | |
tree | 0798a9ad151804e21bb9b0f9e5506c31086e05c3 /emulators/twin | |
parent | 028077f7a15b19a2e00d2091e045a03ee1f3a260 (diff) | |
download | pkgsrc-32cfc50943c73e74a2f5147f1b119f1faaa39222.tar.gz |
Initial import of twin-3.1.14 into NetBSD Packages Collection.
Provided in PR 12928 by Ben Collver (collver@linuxfreemail.com)
"Willows TWIN is a GNU software package for emulating the Microsoft
Win32 API. It consists of a library set and an emulator program. The
emulator program allows the execution of Windows binary applications
on supported platforms; using the native Intel x86 processors, or
through the built-in instruction set interpreter. The native
libraries allow programmers natively to build Win32 and MFC
applications from source code."
Diffstat (limited to 'emulators/twin')
-rw-r--r-- | emulators/twin/Makefile | 35 | ||||
-rw-r--r-- | emulators/twin/distinfo | 11 | ||||
-rw-r--r-- | emulators/twin/patches/patch-aa | 27 | ||||
-rw-r--r-- | emulators/twin/patches/patch-ab | 20 | ||||
-rw-r--r-- | emulators/twin/patches/patch-ac | 12 | ||||
-rw-r--r-- | emulators/twin/patches/patch-ad | 12 | ||||
-rw-r--r-- | emulators/twin/patches/patch-ae | 25 | ||||
-rw-r--r-- | emulators/twin/patches/patch-af | 13 | ||||
-rw-r--r-- | emulators/twin/patches/patch-ag | 13 | ||||
-rw-r--r-- | emulators/twin/pkg/DESCR | 7 | ||||
-rw-r--r-- | emulators/twin/pkg/MESSAGE | 14 | ||||
-rw-r--r-- | emulators/twin/pkg/PLIST | 124 |
12 files changed, 313 insertions, 0 deletions
diff --git a/emulators/twin/Makefile b/emulators/twin/Makefile new file mode 100644 index 00000000000..f7dad3b89c2 --- /dev/null +++ b/emulators/twin/Makefile @@ -0,0 +1,35 @@ +# $NetBSD: Makefile,v 1.1.1.1 2001/05/15 09:46:37 agc Exp $ +# + +DISTNAME= twin-src-3.1.14 +PKGNAME= twin-3.1.14 +CATEGORIES= emulators +MASTER_SITES= ftp://ftp.willows.com/pub/twin/ + +MAINTAINER= collver@linuxfreemail.com +HOMEPAGE= http://www.willows.com +COMMENT= cross-platform implementation of the win32 api + +BUILD_DEPENDS+= autoconf-2.13:../../devel/autoconf + +GNU_CONFIGURE= yes +USE_GMAKE= yes +USE_X11= yes +WRKSRC= ${WRKDIR}/twin +ALL_TARGET= depend world + +pre-configure: + cd ${WRKSRC} && ${LOCALBASE}/bin/autoreconf --force + +pre-build: + ${CP} ${WRKSRC}/windows/Execfreebsd.c ${WRKSRC}/windows/Execnetbsd.c + +post-install: + ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/twin + ${INSTALL_DATA} ${WRKSRC}/documentation/* ${PREFIX}/share/doc/twin/ + ${INSTALL_DATA} ${WRKSRC}/include/* ${PREFIX}/include/ + ${INSTALL_DATA} ${WRKSRC}/documentation/rc.1 ${PREFIX}/man/man1 + ${INSTALL_DATA} ${WRKSRC}/documentation/debugger.1 ${PREFIX}/man/man1 + ${INSTALL_PROGRAM} ${WRKSRC}/tools/rc/rc ${PREFIX}/bin + +.include "../../mk/bsd.pkg.mk" diff --git a/emulators/twin/distinfo b/emulators/twin/distinfo new file mode 100644 index 00000000000..03e4edcaf25 --- /dev/null +++ b/emulators/twin/distinfo @@ -0,0 +1,11 @@ +$NetBSD: distinfo,v 1.1.1.1 2001/05/15 09:46:37 agc Exp $ + +SHA1 (twin-src-3.1.14.tar.gz) = b1652f07adcc2c98948a4458480b2d8436cc893f +Size (twin-src-3.1.14.tar.gz) = 2216218 bytes +SHA1 (patch-aa) = da04ff7d0e7b2644b6bed81817189dcd9192dae1 +SHA1 (patch-ab) = f54fb80ba0c45e11e446aa652596768304b1f580 +SHA1 (patch-ac) = ead087b78674b30c076f132d71c3d372c77f0e1f +SHA1 (patch-ad) = baf4144bf251e5eef3613fc7b2a4cc9168fa7292 +SHA1 (patch-ae) = 284da616e3e55716b2eb1faa0e86c16c3643d230 +SHA1 (patch-af) = 818f91cce6010145756221b90bd3461557c53d9a +SHA1 (patch-ag) = 2f6f51e9f837920c7d0db11686071a6de2d66887 diff --git a/emulators/twin/patches/patch-aa b/emulators/twin/patches/patch-aa new file mode 100644 index 00000000000..3e51ab7a2a5 --- /dev/null +++ b/emulators/twin/patches/patch-aa @@ -0,0 +1,27 @@ +$NetBSD: patch-aa,v 1.1.1.1 2001/05/15 09:46:37 agc Exp $ + +--- configure.in.orig Sun Jan 14 00:23:50 2001 ++++ configure.in Sun May 13 09:37:19 2001 +@@ -147,6 +147,10 @@ + TARGET=freebsd + ;; + ++ i*86-*-netbsd* ) ++ TARGET=netbsd ++ ;; ++ + i*86-*-linux* ) + TARGET=linux + ;; +@@ -349,6 +353,11 @@ + powerpc-*-linux* ) + # egcs still broken on ppc + TWIN_CFLAGS=-g ++ ;; ++ ++ i*86-*-netbsd* ) ++ LIBTWIN_LDFLAGS="$LDFLAGS $LIBTWIN_LDFLAGS" ++ DLL_LDFLAGS="$LDFLAGS $DLL_LDFLAGS" + ;; + esac + diff --git a/emulators/twin/patches/patch-ab b/emulators/twin/patches/patch-ab new file mode 100644 index 00000000000..df22defa40a --- /dev/null +++ b/emulators/twin/patches/patch-ab @@ -0,0 +1,20 @@ +$NetBSD: patch-ab,v 1.1.1.1 2001/05/15 09:46:37 agc 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 @@ + THREAD_sparc_solaris = 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 @@ + SYSTEM_sparc_solaris = DrvSystem_sparc.s + SYSTEM_sparc_sunos = DrvSystem_sparc.s + SYSTEM_X386_freebsd = ++SYSTEM_X386_netbsd = + SYSTEM_X386_linux = + SYSTEM_X386_sco = + SYSTEM_X386_solaris = diff --git a/emulators/twin/patches/patch-ac b/emulators/twin/patches/patch-ac new file mode 100644 index 00000000000..5321dde6e2c --- /dev/null +++ b/emulators/twin/patches/patch-ac @@ -0,0 +1,12 @@ +$NetBSD: patch-ac,v 1.1.1.1 2001/05/15 09:46:37 agc Exp $ + +--- dlls/winsock/WinSock.c.orig Sun May 13 02:24:38 2001 ++++ dlls/winsock/WinSock.c Sun May 13 02:24:39 2001 +@@ -28,6 +28,7 @@ + + */ + ++#include <sys/types.h> + #include <netinet/in.h> + #include <sys/socket.h> + #include <sys/time.h> diff --git a/emulators/twin/patches/patch-ad b/emulators/twin/patches/patch-ad new file mode 100644 index 00000000000..e7755ed5114 --- /dev/null +++ b/emulators/twin/patches/patch-ad @@ -0,0 +1,12 @@ +$NetBSD: patch-ad,v 1.1.1.1 2001/05/15 09:46:37 agc Exp $ + +--- dlls/winsock/WinSockIF.c.orig Sun May 13 02:25:35 2001 ++++ dlls/winsock/WinSockIF.c Sun May 13 02:25:47 2001 +@@ -28,6 +28,7 @@ + + */ + ++#include <sys/types.h> + #include <netinet/in.h> + #include <sys/socket.h> + #include <sys/time.h> diff --git a/emulators/twin/patches/patch-ae b/emulators/twin/patches/patch-ae new file mode 100644 index 00000000000..1a6da2cf304 --- /dev/null +++ b/emulators/twin/patches/patch-ae @@ -0,0 +1,25 @@ +$NetBSD: patch-ae,v 1.1.1.1 2001/05/15 09:46:37 agc Exp $ + +--- debugger/sig_context.h.orig Sun May 13 03:01:07 2001 ++++ debugger/sig_context.h Sun May 13 03:25:31 2001 +@@ -59,6 +59,20 @@ + + #if defined(__NetBSD__) || defined(__FreeBSD__) || defined(__OpenBSD__) + ++enum { ++ REG_GS = 0, REG_FS, REG_ES, REG_DS, ++ REG_EDI, REG_ESI, REG_EBP, ++ REG_EBX, REG_EDX, REG_ECX, REG_EAX, ++ REG_EIP, REG_CS, REG_EFL, REG_ESP, ++ REG_SS, REG_BSD_ONSTACK, REG_BSD_MASK13, ++ REG_TRAPNO, REG_ERR, ++ ++ REG_AX = 100, REG_BX, REG_CX, REG_DX, ++ REG_BP, REG_IP, REG_SP, ++ REG_DI, REG_SI, ++ REG_FL ++}; ++ + #include <signal.h> + typedef struct sigcontext SIGCONTEXT; + diff --git a/emulators/twin/patches/patch-af b/emulators/twin/patches/patch-af new file mode 100644 index 00000000000..41569557940 --- /dev/null +++ b/emulators/twin/patches/patch-af @@ -0,0 +1,13 @@ +$NetBSD: patch-af,v 1.1.1.1 2001/05/15 09:46:37 agc Exp $ + +--- tools/rc/cmdline.c.orig Wed Aug 11 01:34:18 1999 ++++ tools/rc/cmdline.c Sun May 13 10:09:31 2001 +@@ -61,7 +61,7 @@ + extern char cpp_module_name[]; + extern char libentry_name[]; + extern char tbl_name[]; +-static char *system_include_path[1] = { STDINC }; ++static char *system_include_path[2] = { STDINC, __INCPATH__ }; + static int n_system_include_path = sizeof(system_include_path) / + sizeof(*system_include_path); + static char **user_include_path = NULL; diff --git a/emulators/twin/patches/patch-ag b/emulators/twin/patches/patch-ag new file mode 100644 index 00000000000..17236027e82 --- /dev/null +++ b/emulators/twin/patches/patch-ag @@ -0,0 +1,13 @@ +$NetBSD: patch-ag,v 1.1.1.1 2001/05/15 09:46:37 agc Exp $ + +--- tools/rc/Makefile.in.orig Sun Mar 21 02:47:49 1999 ++++ tools/rc/Makefile.in Sun May 13 10:38:04 2001 +@@ -20,6 +20,8 @@ + + include $(blddir)/Make.rules + ++CFLAGS += -D__INCPATH__=\"${prefix}/include\" ++ + $(target): $(OBJS) + $(CC) $(LDFLAGS) -o $@ $(OBJS) + diff --git a/emulators/twin/pkg/DESCR b/emulators/twin/pkg/DESCR new file mode 100644 index 00000000000..83daa301d2a --- /dev/null +++ b/emulators/twin/pkg/DESCR @@ -0,0 +1,7 @@ +Willows TWIN is a GNU software package for emulating the Microsoft +Win32 API. It consists of a library set and an emulator program. The +emulator program allows the execution of Windows binary applications +on supported platforms; using the native Intel x86 processors, or +through the built-in instruction set interpreter. The native +libraries allow programmers natively to build Win32 and MFC +applications from source code. diff --git a/emulators/twin/pkg/MESSAGE b/emulators/twin/pkg/MESSAGE new file mode 100644 index 00000000000..37b9496c7ce --- /dev/null +++ b/emulators/twin/pkg/MESSAGE @@ -0,0 +1,14 @@ +TWIN gotchas: + * Only tested on NetBSD i386 and requires USER_LDT kernel option + + * Some w32 functions are implemented but not prototyped in the + TWIN headers. Many functions are not implemented and the TWIN + headers are out of date. devel/w32api may be a useful reference + + * When building programs, some libraries must be + explicitly linked to, unlike in Windows. ie: you + need to specify -lshell to get RegOpenKeyEx() + + * The resource compiler doesn't understand "" to mean ", so replace + "" with \042 in your resource files. There is no winresrc.h, + replace it with windows.h in your resource files. diff --git a/emulators/twin/pkg/PLIST b/emulators/twin/pkg/PLIST new file mode 100644 index 00000000000..31a8228c2f4 --- /dev/null +++ b/emulators/twin/pkg/PLIST @@ -0,0 +1,124 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2001/05/15 09:46:37 agc Exp $ +bin/xwin32 +bin/rc +man/man1/rc.1 +man/man1/debugger.1 +lib/libdll.a +lib/libcommdlg.so +lib/libshell.so +lib/libkeyboard.so +lib/libversion.so +lib/libsystem.so +lib/liblzexpand.so +lib/libtoolhelp.so +lib/libcomm.so +lib/libwinsock.so +lib/libddeml.so +lib/libsound.so +lib/libw32sys.so +lib/libwin87em.so +lib/libwinspool.so +lib/libcomctl32.so +lib/libadvapi32.so +lib/libmsvcrt.so +lib/libolesvr.so +lib/libolecli.so +lib/libreadline.a +lib/libdebug.so +lib/libpe32.so +lib/libmmsystem.so +lib/libtwin32.so +include/LZExpand.h +include/Bin32.h +include/ModTable.h +include/Log.h +include/Module.h +include/MsgCode.h +include/Net.h +include/OEM.h +include/ObjEngine.h +include/Printer.h +include/Resources.h +include/Segment.h +include/System.h +include/Ver.h +include/WSA.h +include/WinMalloc.h +include/WinSockUtil.h +include/WinSocktypes.h +include/tchar.h +include/winnls.h +include/winerror.h +include/commctrl.h +include/shellapi.h +include/platform.h.in +include/winbase.h +include/windef.h +include/windows.h +include/cderr.h +include/coguid.h +include/colordlg.h +include/wingdi.h +include/commdlg.h +include/compobj.h +include/dde.h +include/ddeml.h +include/debug.h +include/debugdefs.h +include/debugtools.h +include/dir.h +include/direct.h +include/dlgs.h +include/dos.h +include/inifile.h +include/initguid.h +include/io.h +include/kerndef.h +include/ldt.h +include/mmsystem.h +include/mtlock.h +include/ole.h +include/ole2ver.h +include/print.h +include/winmaptypes.h +include/prsht.h +include/share.h +include/winnt.h +include/toolhelp.h +include/twindlfcn.h +include/twindll.h +include/twinhelp.h +include/twinlog.h +include/twinrt.h +include/win_con.h +include/winreg.h +include/winuser.h +include/windowsx.h +include/winsock.h +include/wincon.h +include/windowsx16.h +include/winmapclib.h +include/windowsx32.h +include/winspool.h +include/winver.h +include/thread.h +include/platform.h +share/doc/twin/bin-convert.txt +share/doc/twin/config.doc +share/doc/twin/debugger.1 +share/doc/twin/dll-binary.txt +share/doc/twin/dll-native.txt +share/doc/twin/lib-config.txt +share/doc/twin/lib-debug.txt +share/doc/twin/lib-porting.txt +share/doc/twin/lib-qna.txt +share/doc/twin/lib-thunk.c +share/doc/twin/lib-verify.txt +share/doc/twin/rc.1 +share/doc/twin/readme.twinrc +share/doc/twin/sample.twinrc +share/doc/twin/src-issues.txt +share/doc/twin/twinrc.doc +share/doc/twin/win.ini +share/doc/twin/wrt-setup.txt +@dirrm share/doc/twin |