The wiki page for emulators/i386-wine(-devel), the port for delivering a 32-bit Wine (for running 32-bit Microsoft Windows applications) capable of installing and running under FreeBSD/amd64.

This port can only be built in an i386 environment as the FreeBSD Port's Collection does not support cross compiling. Also, this port is required since FreeBSD does not support cross installing of packages.

Packages

Packages for wine-devel are provided for all supported FreeBSD releases and FreeBSD-current (WIP).

The next two sections describe how to install and update i386-wine while the third and forth sections details the availablility of the packages and the options used to build the packages.

pkg-1.1.4 or later is required when installing the packages using the method described below.

Setting up multi-repo mode

To setup the repo and do initial port install (as root):

# mkdir -p /usr/local/etc/pkg/repos
# fetch -o /usr/local/etc/pkg/repos http://people.freebsd.org/~dbn/repos/wine.conf
# fetch -o /usr/local/etc/pkg/repos http://people.freebsd.org/~dbn/repos/wine.cert
# pkg update

To install the 'stable' version of the port:

# pkg install -r wine i386-wine

To install the 'unstable' version of the port (cannot be installed at the same time as i386-wine):

# pkg install -r wine i386-wine-devel

Please consider editing /usr/local/etc/pkg/repos/wine.conf to use one of the many available mirrors. To install an older version of wine change the suffix "latest" to a version listed below.

Updating port

To update already installed port (as root)

# pkg upgrade -r wine

Available Packages

The packages are hosted at http://ftp.freebsd.org/pub/FreeBSD/ports/local-distfiles/dbn/repos/wine/. Please consider using one of the many available mirrors.

The following table lists the available i386-Wine packages and indicates the version of FreeBSD the packages were built on. The FreeBSD release used is the oldest supported for the given stable branch and the packages are forward compatible (i.e. packages built on FreeBSD 9.1 will run on FreeBSD 9.2 but may not run on FreeBSD 9.0).

Package Name

Wine Version

FreeBSD version

Notes

i386-wine-devel

1.7.15

8.3; 9.1; 10.0; 11

2

i386-wine-devel

1.7.14

8.3; 9.1; 10.0; 11

i386-wine-devel

1.7.13

8.3; 9.1; 10.0; 11

i386-wine-devel

1.7.12

8.3; 9.1; 10.0; 11

i386-wine-devel

1.7.11

8.3; 9.1

i386-wine-devel

1.7.10

8.3; 9.1

i386-wine-devel

1.7.9

8.3; 9.1

i386-wine-devel

1.7.8

8.3; 9.1

i386-wine-devel

1.7.7

8.3; 9.1

i386-wine-devel

1.7.6

8.3; 9.1

i386-wine-devel

1.7.5

8.3, 9.1

i386-wine-devel

1.7.4

8.3, 9.1

i386-wine

1.7.3

8.3; 9.1

i386-wine

1.7.2

8.3; 9.1

i386-wine

1.7.1

9.1

3

i386-wine

1.7.0

8.3; 9.1

i386-wine

1.6.2

8.3; 9.1; 10.0; 11

1

i386-wine

1.6.1

8.3; 9.1

i386-wine

1.6

8.3; 9.1

i386-wine

1.6.r5

8.3; 9.1

i386-wine

1.6.r4

8.3; 9.1

i386-wine

1.6.r3

8.3; 9.1

i386-wine

1.6.r2

8.3; 9.1

i386-wine

1.6.r1

8.3; 9.1

i386-wine

1.5.31

8.3; 9.1

i386-wine

1.5.30_1

8.3; 9.1

i386-wine

1.5.29

8.3; 9.1

i386-wine

1.4.1_2

8.3; 9.1

Notes:

  1. Latest 'stable' version
  2. Latest 'unstable' version
  3. Build failure on FreeBSD 8.3 prevented creation of package.

Port options

The port that produces the packages are compiled using the following options:

Option

Description

CUPS

CUPS printing system support

GNUTLS

SSL/TLS support via GnuTLS

HAL

HAL (Hardware Abstraction Layer) support

LIBXSLT

Use libxslt (only used by msxml3.dll)

OPENAL

OpenAL support

X11

X11 (graphics) support

Building

To build the i386-Wine port an i386 environment is required. If such an environment is not available then it can be created from FreeBSD/amd64:

# cd /usr/src
# make buildworld TARGET=i386
# make installworld TARGET=i386 DESTDIR=/compat/i386
# make distribution TARGET=i386 DESTDIR=/compat/i386
# mkdir /compat/i386/usr/ports
# mount -t devfs devfs /compat/i386/dev
# mount -t nullfs /usr/ports /compat/i386/usr/ports

When chrooting to /compat/i386 do these additional setups:

# chroot /compat/i386
# setenv MACHINE i386
# setenv UNAME_m i386
# setenv UNAME_p i386
# service ldconfig start

Lastly, the package can be created:

# cd /usr/ports/emulators/i386-wine-devel
# make package

The package is available at

# echo /compat/i386/$(make -V PKGFILE)

TODO

i386-Wine (last edited 2014-03-26 16:20:08 by DavidNaylor)