Wine + FreeBSD amd64
Rédigé par Xavier - -
Wine is neither available in FreeBSD ports or packages in amd64 version. It was the same for Linux in 2006, as I remember when I started using it, but today it has been fixed for a long time.

A proper solution is to create a 32 bits chroot environment, get all the files for wine's port and get 32 bits video drivers. It seems more like a hack and not a true solution. And not very easy. Fortunately, some users have created a ready-to-install packages for freebsd64, which automatically set the 32 bits chrooted environment and deals with wine files and video drivers.
Step 1: wine
Packages can be found here. Just download the right version and install it with:
# pkg_add filename.tbz
That's it. You should not even need to install lib32 because they are included in the package. Now you should be able to use wine normaly. If you get a error message refering to Xorg, try the following parameter prior to every command:
DISPLAY=":0"
For example, if you want to run winecfg:
DISPLAY=":0" winecfg
After a restart of my computer, that parameter was not necessary anymore.
Step 2: 3D Acceleration
Nothing was mentioned about Intel and ATI adapters, assuming they work. But for Nvidia - with proprietary driver - you need to fetch 32 bits libraries and copy them in your chroot environment. Fortunately, there is a script designed to do it. It is mentioned in the page where you can find the .tbz packages. Direct link. Just copy and past all the content in a file named "nvidiafix.sh" for example, then run a chmod to get it executable.
# chmod +x nvidiafix.sh # ./nvidiafix.sh
This script will download the same release for nvidia driver than currently installed, in 32 bits version (x86) and will extract/copy the needed libraries.
Step 3: enjoy!
Now you should be able to play your favorite games.