Thanks for the tutorial snares. I used it with my gentoo installaton, but it took a little tinkering. For the benefit of those running gentoo, this is how to download and compile in a portage friendly way (hope this helps):
We dont need git, as we will be using the version from the portage tree. However, you can emerge git if it makes you happy (as root):
Code:
emerge -pv git - to see what is going to be compiled
emerge -av git - to compile it
Now we want to compile wine...
It would be very wise to enable oss and other nice things in wine, in case you need them later, so run (as root):
Code:
echo "app-emulation/wine dbus jpeg opengl oss scanner xml" >> /etc/portage/package.use
If you want the latest (unstable) version of wine (for some reason) (as root):
Code:
echo "app-emulation/wine ~x86" >> /etc/portage/package.keywords
Now, check what is going to be emerged. This is important - you will need to know the version of wine you are going to be building, and the ebuild file that corresponds to this.
Before we merge wine, we need to patch it, which involves a little portage trickery.
First, download your patch. The link below is to the LinuxGamers Tutorial, the link below that is to the patch:
Tutorial:
http://www.linux-gamers.net/modules/...DEX+Wine+Games
Patch:
http://bugs.winehq.org/attachment.cgi?id=8548
Download the patch (right click -> save as), name it as something useful or recognisable eg wine_directx_patch.patch
Now, copy the patch into your portage tree (as root):
Code:
cp /path/to/patch/wine_directx_patch.patch /usr/portage/app-emulation/wine/files/
Now we need to edit the ebuild. To make this easier, change directory into the folder where the ebuilds are:
Code:
cd /usr/portage/app-emulation/wine/
Now edit it using your favorite editor - I used nano. (as root):
Code:
nano -w wine-0.9.51.ebuild
IMPORTANT: Make sure you edit the ebuild of the package you are compiling! If you are not sure, run emerge -pv wine and check first!
Look through the ebuild, and locate the section "src_unpack" (if you are using nano, you can press ctrl+w to search).
At the end of this section add the line:
Code:
epatch "${FILESDIR}"/wine_directx_patch.patch
Then exit nano (ctrl+x), making sure you save changes, and run (as root)
Code:
ebuild wine-0.9.51.ebuild digest
IMPORTANT: Make sure you are ebuilding the ebuild for the correct package!
Now you can emerge wine (as root):
This one might take a while, so grab yourself some coffee, and download the directx 9.0c file posted in snares tutorial above.
Now you should follow the rest of snares tutorial, step five and beyond (this is where the ideas behind most of this stuff came from - thanks).
You can also install the wine reccomended packages (and take a look on the gentoo page).
Also worth reading:
http://www.linux-gamers.net/modules/...DEX+Wine+Games
Read the linux-gamers tutorial. It has valuable information in it.
http://bugs.winehq.org/attachment.cgi?id=8548
Take a quick look at the patch, even if you cant program. You may find it interesting to see what it is doing.
http://www.fallennights.net/tech/wine/eve-online.shtml
Has a quick section on how to play with the portage tree and ebuilds, which was relevant to this.
Of course, read snares tutorial too - it explains what is going on.
This compiles fine on my computer. Now just got to install directx and cod4


