summaryrefslogtreecommitdiff
path: root/japanese
diff options
context:
space:
mode:
authorJun Kuriyama <kuriyama@FreeBSD.org>1998-05-13 22:21:18 +0000
committerJun Kuriyama <kuriyama@FreeBSD.org>1998-05-13 22:21:18 +0000
commit5cc86611863b45651fe7f4ff36334f9aa2bf7d74 (patch)
tree4388f64e43ca0dc22cae90654ef9e40f7f7a2232 /japanese
parentmove lib/xjewel.* to lib/X11/xjewel, and portlint (diff)
MS-Windouws emulator. It can use Japanese.
According to submitter, this version (97.11.30) is latest one which can work fine with Japanese patch. Submitted by: Takashi Uozu <j1594016@ed.kagu.sut.ac.jp> PR: ports/5505
Notes
Notes: svn path=/head/; revision=10972
Diffstat (limited to 'japanese')
-rw-r--r--japanese/wine/Makefile47
-rw-r--r--japanese/wine/distinfo2
-rw-r--r--japanese/wine/files/patch-am156
-rw-r--r--japanese/wine/pkg-comment1
-rw-r--r--japanese/wine/pkg-descr13
-rw-r--r--japanese/wine/pkg-plist4
6 files changed, 223 insertions, 0 deletions
diff --git a/japanese/wine/Makefile b/japanese/wine/Makefile
new file mode 100644
index 000000000000..8e24b67ad70b
--- /dev/null
+++ b/japanese/wine/Makefile
@@ -0,0 +1,47 @@
+# New ports collection makefile for: ja-wine
+# Version required: 971130
+# Date created: 14 Jan 1998
+# Whom: Takashi Uozu <j1594016@ed.kagu.sut.ac.jp>
+#
+# $Id$
+
+DISTNAME= ja-Wine-971130
+PKGNAME= ja-wine-97.11.30
+CATEGORIES= japanese emulators
+MASTER_SITES= ${MASTER_SITE_SUNSITE} \
+ http://karin.ip.titech.ac.jp/~takagi/wine/patch/
+MASTER_SITE_SUBDIR= ALPHA/wine/development
+DISTFILES= Wine-971130.tar.gz Wine971130-jp.tar.gz
+
+MAINTAINER= Takashi Uozu <j1594016@ed.kagu.sut.ac.jp>
+
+LIB_DEPENDS= Xpm\\.4\\.:${PORTSDIR}/graphics/xpm
+
+WRKSRC= ${WRKDIR}/wine971130
+PATCH_STRIP= -p1
+GNU_CONFIGURE= yes
+CONFIGURE_ARGS= --with-japanese --with-kinput
+
+MAN1= wine.1
+
+pre-patch:
+ @(cd ${WRKDIR}; \
+ ${PATCH} ${PATCH_ARGS} < ${WRKDIR}/Wine971130-jp.Patch)
+
+pre-configure:
+ @${ECHO} "WINE_INI_GLOBAL \"${PREFIX}/etc/wine.conf\"" \
+ >> ${WRKSRC}/autoconf.h
+
+post-configure:
+ cd ${WRKSRC} && make depend
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/wine ${PREFIX}/bin
+ -@${MKDIR} ${PREFIX}/etc 2>/dev/null
+ [ -f ${PREFIX}/etc/wine.conf ] \
+ || ${INSTALL_DATA} ${WRKSRC}/wine.ini ${PREFIX}/etc/wine.conf
+ ${INSTALL_DATA} ${WRKSRC}/wine.sym ${PREFIX}/etc
+ ${INSTALL_DATA} \
+ ${WRKSRC}/documentation/wine.man ${PREFIX}/man/man1/wine.1
+
+.include <bsd.port.mk>
diff --git a/japanese/wine/distinfo b/japanese/wine/distinfo
new file mode 100644
index 000000000000..289dbfb49319
--- /dev/null
+++ b/japanese/wine/distinfo
@@ -0,0 +1,2 @@
+MD5 (Wine-971130.tar.gz) = 31597f8c149f524fbb910ed72e298a12
+MD5 (Wine971130-jp.tar.gz) = 5eaef41ead880d421047b700583c539a
diff --git a/japanese/wine/files/patch-am b/japanese/wine/files/patch-am
new file mode 100644
index 000000000000..6ad530e98eec
--- /dev/null
+++ b/japanese/wine/files/patch-am
@@ -0,0 +1,156 @@
+diff -ur wine971130-jp.orig/configure wine971130-jp/configure
+--- wine971130-jp.orig/configure Sun Jan 11 08:21:04 1998
++++ wine971130-jp/configure Sun Jan 11 07:39:27 1998
+@@ -2479,6 +2479,8 @@
+
+ trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
+
++LDLIBS="$LDLIBS -lxpg4"
++
+ DEFS=-DHAVE_CONFIG_H
+
+ # Without the "./", some shells look in PATH for config.status.
+diff -ur wine971130-jp.orig/debugger/memory.c wine971130-jp/debugger/memory.c
+--- wine971130-jp.orig/debugger/memory.c Mon Feb 3 03:57:44 1997
++++ wine971130-jp/debugger/memory.c Sun Jan 11 07:38:04 1998
+@@ -19,7 +19,7 @@
+ * write (rwflag == 0)
+ ************************************************************/
+
+-#ifdef linux
++#if defined(linux) || defined(__FreeBSD__)
+ BOOL32 DEBUG_checkmap_bad( const char *addr, size_t size, int rwflag)
+ {
+ FILE *fp;
+@@ -28,6 +28,7 @@
+ 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,12 +42,34 @@
+
+ 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) {
+diff -ur wine971130-jp.orig/memory/selector.c wine971130-jp/memory/selector.c
+--- wine971130-jp.orig/memory/selector.c Sun Jan 11 08:18:57 1998
++++ wine971130-jp/memory/selector.c Sun Jan 11 07:30:51 1998
+@@ -14,7 +14,16 @@
+ #include "debug.h"
+
+
++#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
+
+
+ /***********************************************************************
+diff -ur wine971130-jp.orig/memory/virtual.c wine971130-jp/memory/virtual.c
+--- wine971130-jp.orig/memory/virtual.c Sun Jan 11 08:20:07 1998
++++ wine971130-jp/memory/virtual.c Sun Jan 11 09:10:28 1998
+@@ -1097,6 +1097,9 @@
+ return FALSE;
+ }
+ if (!cbFlush) cbFlush = view->size;
++#ifndef MS_SYNC
++#define MS_SYNC 0
++#endif MS_SYNC
+ if (!msync( addr, cbFlush, MS_SYNC )) return TRUE;
+ SetLastError( ERROR_INVALID_PARAMETER );
+ return FALSE;
+diff -ur wine971130-jp.orig/multimedia/midi.c wine971130-jp/multimedia/midi.c
+--- wine971130-jp.orig/multimedia/midi.c Sun Jan 11 08:17:54 1998
++++ wine971130-jp/multimedia/midi.c Sun Jan 11 07:29:49 1998
+@@ -11,6 +11,10 @@
+ #include <string.h>
+ #include <unistd.h>
+ #include <fcntl.h>
++#ifdef __FreeBSD__
++#include <string.h>
++#include <sys/errno.h>
++#endif
+ #include <sys/ioctl.h>
+ #include "windows.h"
+ #include "ldt.h"
+diff -ur wine971130-jp.orig/windows/dialog.c wine971130-jp/windows/dialog.c
+--- wine971130-jp.orig/windows/dialog.c Sun Jan 11 08:21:30 1998
++++ wine971130-jp/windows/dialog.c Sun Jan 11 07:28:52 1998
+@@ -10,6 +10,9 @@
+ #include <stdlib.h>
+ #include <stdio.h>
+ #include <string.h>
++#ifdef __FreeBSD__
++#include <sys/errno.h>
++#endif
+ #include <errno.h>
+ #include "windows.h"
+ #include "dialog.h"
+diff -ur wine971130-jp.orig/wine.ini wine971130-jp/wine.ini
+--- wine971130-jp.orig/wine.ini Mon Aug 25 00:49:15 1997
++++ wine971130-jp/wine.ini Sun Jan 11 07:27:07 1998
+@@ -42,7 +42,7 @@
+ System=c:\windows\system
+ Temp=e:\
+ Path=c:\windows;c:\windows\system;e:\;e:\test;f:\
+-SymbolTableFile=./wine.sym
++SymbolTableFile=/usr/local/etc/wine.sym
+
+ [options]
+ AllocSystemColors=100
+@@ -53,13 +53,13 @@
+ Default = -adobe-times-
+
+ [serialports]
+-Com1=/dev/cua0
+-Com2=/dev/cua1
++Com1=/dev/ttyd0
++Com2=/dev/ttyd1
+ Com3=/dev/modem,38400
+ Com4=/dev/modem
+
+ [parallelports]
+-Lpt1=/dev/lp0
++Lpt1=/dev/lpt0
+
+ [spooler]
+ LPT1:=|lpr
diff --git a/japanese/wine/pkg-comment b/japanese/wine/pkg-comment
new file mode 100644
index 000000000000..6ccc80e5d56b
--- /dev/null
+++ b/japanese/wine/pkg-comment
@@ -0,0 +1 @@
+MS-Windows 3.1/95/NT emulator for Unix (Alpha release).
diff --git a/japanese/wine/pkg-descr b/japanese/wine/pkg-descr
new file mode 100644
index 000000000000..ed800df3a1cf
--- /dev/null
+++ b/japanese/wine/pkg-descr
@@ -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 ...
diff --git a/japanese/wine/pkg-plist b/japanese/wine/pkg-plist
new file mode 100644
index 000000000000..98f2980b059d
--- /dev/null
+++ b/japanese/wine/pkg-plist
@@ -0,0 +1,4 @@
+bin/wine
+etc/wine.conf
+etc/wine.sym
+man/man1/wine.1.gz