wine-971116

This commit is contained in:
todd 1997-11-30 08:31:06 +00:00
parent c1ec254f13
commit d741bef34e
9 changed files with 218 additions and 0 deletions

38
emulators/wine/Makefile Normal file
View File

@ -0,0 +1,38 @@
# New ports collection makefile for: wine
# Version required: 971116
# Date created: 17 Nov 1997
# Whom: todd@OpenBSD.org
#
DATE= 971116
DISTNAME= Wine-${DATE}
PKGNAME= wine-97.11.16
CATEGORIES= emulators x11
MASTER_SITES= ${MASTER_SITE_SUNSITE}
MASTER_SITE_SUBDIR= ALPHA/wine/development
ONLY_FOR_ARCHS= i386
MAINTAINER= todd@OpenBSD.ORG
LIB_DEPENDS= Xpm\\.4\\.:${PORTSDIR}/graphics/xpm
WRKSRC= ${WRKDIR}/wine${DATE}
GNU_CONFIGURE= yes
MAN1= wine.1
pre-configure:
@${ECHO} "WINE_INI_GLOBAL \"${PREFIX}/etc/wine.conf\"" \
>> ${WRKSRC}/autoconf.h
post-configure:
cd ${WRKSRC} && make depend
do-install:
${INSTALL} -c ${WRKSRC}/wine ${PREFIX}/bin
-@${MKDIR} ${PREFIX}/etc 2>/dev/null
[ -f ${PREFIX}/etc/wine.conf ] \
|| ${CP} ${WRKSRC}/wine.ini ${PREFIX}/etc/wine.conf
${CP} ${WRKSRC}/wine.sym ${PREFIX}/etc
${CP} ${WRKSRC}/documentation/wine.man ${PREFIX}/man/man1/wine.1
.include <bsd.port.mk>

1
emulators/wine/files/md5 Normal file
View File

@ -0,0 +1 @@
MD5 (Wine-971116.tar.gz) = 0fa11955b8ed44b20523a0be021681cc

View File

@ -0,0 +1,40 @@
*** wine.ini.orig Wed Jul 17 22:00:24 1996
--- wine.ini Mon Aug 12 19:51:38 1996
***************
*** 35,39 ****
Temp=e:\
Path=c:\windows;c:\windows\system;e:\;e:\test;f:\
! SymbolTableFile=./wine.sym
[options]
--- 35,39 ----
Temp=e:\
Path=c:\windows;c:\windows\system;e:\;e:\test;f:\
! SymbolTableFile=/usr/local/etc/wine.sym
[options]
***************
*** 54,64 ****
[serialports]
! Com1=/dev/cua0
! Com2=/dev/cua1
Com3=/dev/modem,38400
Com4=/dev/modem
[parallelports]
! Lpt1=/dev/lp0
[spy]
--- 54,64 ----
[serialports]
! Com1=/dev/cua00
! Com2=/dev/cua01
Com3=/dev/modem,38400
Com4=/dev/modem
[parallelports]
! Lpt1=/dev/lpt0
[spy]

View File

@ -0,0 +1,36 @@
*** debugger/stabs.c~ Sun Dec 22 21:42:50 1996
--- debugger/stabs.c Mon Dec 23 01:29:26 1996
***************
*** 5,8 ****
--- 5,9 ----
*/
+ #include <sys/types.h>
#include <sys/mman.h>
#include <fcntl.h>
*** windows/dialog.c~ Mon Jan 20 23:59:13 1997
--- windows/dialog.c Mon Jan 20 23:59:42 1997
***************
*** 10,13 ****
--- 10,16 ----
#include <stdio.h>
#include <string.h>
+ #if defined(__FreeBSD__) || defined(__OpenBSD__)
+ #include <sys/errno.h>
+ #endif
#include "windows.h"
#include "dialog.h"
*** multimedia/midi.c~ Mon May 26 14:13:17 1997
--- multimedia/midi.c Mon May 26 14:11:25 1997
***************
*** 9,13 ****
--- 9,17 ----
#include <unistd.h>
#include <fcntl.h>
+ #if defined(__FreeBSD__) || defined(__OpenBSD__)
+ #include <string.h>
+ #include <sys/errno.h>
+ #endif
#include <sys/ioctl.h>
#include "windows.h"
#include "ldt.h"

View File

@ -0,0 +1,19 @@
*** memory/selector.c.orig Thu Jan 2 01:19:12 1997
--- memory/selector.c Thu Jan 2 01:40:25 1997
***************
*** 14,18 ****
--- 14,27 ----
+ #ifdef __FreeBSD__
+ #include <osreldate.h>
+ #if __FreeBSD_version < 220000
+ #define FIRST_LDT_ENTRY_TO_ALLOC 17
+ #else
#define FIRST_LDT_ENTRY_TO_ALLOC 17
+ #endif
+ #else
+ #define FIRST_LDT_ENTRY_TO_ALLOC 6
+ #endif

View File

@ -0,0 +1,66 @@
*** debugger/memory.c.orig Sun Feb 2 13:57:44 1997
--- debugger/memory.c Tue Mar 25 07:52:12 1997
***************
*** 19,25 ****
* write (rwflag == 0)
************************************************************/
! #ifdef linux
BOOL32 DEBUG_checkmap_bad( const char *addr, size_t size, int rwflag)
{
FILE *fp;
--- 19,25 ----
* write (rwflag == 0)
************************************************************/
! #if defined(linux) || defined(__FreeBSD__) || defined(__OpenBSD__)
BOOL32 DEBUG_checkmap_bad( const char *addr, size_t size, int rwflag)
{
FILE *fp;
***************
*** 28,33 ****
--- 28,34 ----
char *start, *end;
int ret = TRUE;
+ #ifdef linux
/*
The entries in /proc/self/maps are of the form:
08000000-08002000 r-xp 00000000 03:41 2361
***************
*** 41,52 ****
--- 42,75 ----
Only permissions start and end are used here
*/
+ #else
+ /*
+ % cat /proc/curproc/map
+ start end resident private perm type
+ 0x1000 0xe000 12 0 r-x COW vnode
+ 0xe000 0x10000 2 2 rwx COW vnode
+ 0x10000 0x27000 4 4 rwx default
+ 0x800e000 0x800f000 1 1 rw- default
+ 0xefbde000 0xefbfe000 1 1 rwx default
+
+ COW = "copy on write"
+ */
+ #endif
+
+ #ifdef linux
if (!(fp = fopen("/proc/self/maps", "r")))
+ #else
+ if (!(fp = fopen("/proc/curproc/map", "r")))
+ #endif
return FALSE;
while (fgets( buf, 79, fp)) {
+ #ifdef linux
sscanf(buf, "%x-%x %3s", (int *) &start, (int *) &end, prot);
+ #else
+ sscanf(buf, "%x %x %*d %*d %3s", (int *) &start, (int *) &end, prot);
+ #endif
if ( end < addr)
continue;
if (start <= addr && addr+size < end) {

View File

@ -0,0 +1 @@
MS-Windows 3.1/95/NT emulator for Unix (Alpha release).

13
emulators/wine/pkg/DESCR Normal file
View File

@ -0,0 +1,13 @@
Wine is a Windows emulator running under Unix on i386 (and higher) CPUs.
It is still Alpha quality, i.e. don't expect it to run your typical large
MS-Windows application package, but it is definitely on its way ...
To use Wine, your kernel must be rebuilt with the following line added
to your kernel config file (/sys/i386/conf/<YourMachine>):
options USER_LDT
Wine relies on the configuration file /usr/local/etc/wine.conf to
contain valid assignments of Unix directories to DOS drive letters,
and for certain other options (see "man wine" for details).
You will most probably have to to edit it, after the install ...

4
emulators/wine/pkg/PLIST Normal file
View File

@ -0,0 +1,4 @@
bin/wine
etc/wine.conf
etc/wine.sym
man/man1/wine.1.gz