#!/bin/sh
# Script showing how to set up a Wine development environment
# on Ubuntu 06.06 (Dapper Drake).
#
# A few Ubuntu tips:
#
# Some packages, like cogito and libjack-dev, are only available 
# in the Universe repository, so you need to uncomment out
# the appropriate line in /etc/apt/sources.list or check the 'universe'
# checkbox in the GUI package manager 'synaptic'.
#
# If you see a prompt to insert the CD when installing software
# with apt-get, comment out the initial reference to the cdrom in /etc/apt/sources.list.
# See https://launchpad.net/distros/ubuntu/+source/apt/+bug/37888
#
# If you see "open /dev/snd/seq failed",
# add snd_seq_oss to /etc/modules
# See http://ubuntuforums.org/archive/index.php/t-1654.html
#
# If you see "cannot create mcop directory" 
# when you run winecfg and click on the audio tag,
# do "mkdir -p $HOME/.kde/socket-`hostname`".
# See https://launchpad.net/distros/ubuntu/+source/alsa-lib/+bug/31699
#
# Caution: this will install git-1.1.3, so before wine-0.9.30, 'make' will fail with
# main.o: In function `check_command_line':/home/dank/wine-git/loader/main.c:89: undefined reference to `wine_version'
# If you run into this, add the word HEAD to loader/Makefile.in as described in
# http://www.winehq.org/pipermail/wine-cvs/2007-January/029470.html

# Get basic source management tools
apt-get install cvs git-core cogito 

# Get basic C compiler tools
apt-get install gcc libc6-dev flex bison make

# Get font tools
apt-get install fontforge

# Get libraries needed by Wine
apt-get install \
libarts1-dev \
libartsc0-dev \
libasound2-dev \
libaudio-dev \
libaudiofile-dev \
libcapi20-dev \
libcupsys2-dev \
libdbus-1-dev \
libesd0-dev \
libexif-dev \
libexpat1-dev \
libfontconfig1-dev \
libfreetype6-dev \
libgcrypt11-dev \
libglib1.2-dev \
libglib2.0-dev \
libgnutls-dev \
libgpg-error-dev \
libgphoto2-dev \
libhal-dev \
libice-dev \
libicu34-dev \
libieee1284-3-dev \
libjack-dev \
libjpeg62-dev \
liblcms1-dev \
libldap2-dev \
libltdl3-dev \
libmad0-dev \
libmng-dev \
libncurses5-dev \
libogg-dev \
libopencdk8-dev \
libpng12-dev \
libqt3-mt-dev \
libsane-dev \
libsm-dev \
libssl-dev \
libtasn1-2-dev \
libungif4-dev \
libusb-dev \
libvorbis-dev \
libx11-dev \
libxcursor-dev \
libxext-dev \
libxft-dev \
libxi-dev \
libxml2-dev \
libxmu-dev \
libxrandr-dev \
libxrender-dev \
libxslt1-dev \
libxt-dev \
libxv-dev \
libxxf86dga-dev \
libxxf86vm-dev \
render-dev \
unixodbc-dev \
x-dev \
xlibs-dev \
zlib1g-dev

