WINE for 32/64bit FreeBSD

Table of Contents

Prepare 64bit FreeBSD (a.k.a. amd64)
Installation
Configuration

Prepare 64bit FreeBSD (a.k.a. amd64)

by ross at 14:59:33 on October 27, 2016

Update: You don't need this guide anymore. Just run "pkg install playonbsd" and run it. It has everything including 32bit Wine for 64bit FreeBSD.

Nowdays Wine compiles on amd64 too. But it is still experimental and last time I checked it is barely usable, I wasn't even been able to install Steam. Using this guide you can install Wine in 32bit mode on a 64bit host. If you are on 32bit system or want a 64bit Wine on 64bit system skip to the next page.

Install 32bit world

Skip this page if you are on 32bit (a.k.a. i386).

32bit Wine needs a 32bit environment in order to build and install:

# cd /usr/src
# make buildworld   TARGET=i386

# mkdir -p /compat/i386
# make distrib-dirs TARGET=i386 DESTDIR=/compat/i386
# make distribution TARGET=i386 DESTDIR=/compat/i386
# make installworld TARGET=i386 DESTDIR=/compat/i386
# cp /etc/resolv.conf /compat/i386/etc
# mkdir /compat/i386/usr/ports

Prepare chroot

In order to build ports in /compat/i386:

# mount -t devfs devfs /compat/i386/dev
# mount -t nullfs /usr/src /compat/i386/usr/src
# mount -t nullfs /usr/ports /compat/i386/usr/ports
# chroot /compat/i386
# service ldconfig start

If your shell is (t)csh:
# setenv MACHINE i386
# setenv UNAME_p i386
# setenv UNAME_m i386

If your shell is (ba)sh:
# export MACHINE=i386
# export UNAME_p=i386
# export UNAME_m=i386

Initialize newly created chroot

Add to /etc/make.conf in chroot:

.if ${.CURDIR:M*/print/freetype2}
OPTIONS_SET=WITH_LCD_FILTERING
.endif

Install nVidia drivers in chroot:

# cd /usr/ports/x11/nvidia-driver
# make config-recursive

Options for nvidia-driver:

  • Uncheck LINUX
# make install clean

Install portupgrade in chroot:

# /usr/ports/ports-mgmt/portupgrade
# make install clean

Now follow the next page, install Wine and plugins (all in 32bit chroot invironment).

 

Comments
Excellent.. I was struggling with Wine on FreeBSD amd64.. no mention of Wine being experimental, but now it all makes sense.

I was trying to get pipelight to work with the Silverlight & Widevine plugins, fore Netflix on Firefox.

Thanks for the info.

GQ
-- GQ
Friday, February 12, 2016, 3:32:58