# Template file for 'wine-unstable'
__pkgname=wine
pkgname=${__pkgname}-unstable
version=1.5.14
wrksrc=${__pkgname}-${version}
build_style=gnu-configure
configure_args="--with-x"
homepage="http://www.winehq.org/"
distfiles="${SOURCEFORGE_SITE}/${__pkgname}/${__pkgname}-${version}.tar.bz2"
depends="libwine-unstable"
makedepends="flex gettext-devel autoconf lcms-devel zlib-devel ncurses-devel
MesaLib-devel>=8.0.4_3 libSM-devel libXext-devel libX11-devel libXpm-devel
libXinerama-devel libXcomposite-devel libXmu-devel libXxf86vm-devel
libXcursor-devel libXrandr-devel libXdamage-devel libXi-devel libldap-devel
alsa-lib-devel libgphoto2-devel libxml2-devel libxslt-devel glib-devel
gst-plugins-base-devel freetype-devel mpg123-devel libgsm-devel libopenal-devel
giflib-devel libpng-devel v4l-utils-devel fontconfig-devel gnutls-devel
dbus-devel cups-devel sane-devel prelink"
fulldepends="desktop-file-utils hicolor-icon-theme liberation-fonts-ttf
fontconfig libOSMesa"
# libOSMesa is loaded with dlopen(3) at runtime
revision=1
short_desc="Run Windows apps on Linux, BSD, Solaris and Mac OS X. (unstable)"
maintainer="davehome <davehome@redthumb.info.tm>"
license="LGPL-2.1"
checksum=3e70ff0f900bf459dd6fa767bdac5543a27b76364f8ef89088300b867351df42
long_desc="
 Wine lets you run Windows software on other operating systems. With Wine,
 you can install and run these applications just like you would in
 Windows. (unstable)"

only_for_archs=i686
build_requires=11
replaces="wine>=0"
provides="wine-$version"
conflicts="wine>=0"
subpackages="lib$pkgname $pkgname-devel"

gtk_iconcache_dirs="/usr/share/icons/hicolor"

# XXX OpenCL
# XXX libcapi20 (ISDN support)

pre_configure()
{
	autoreconf -fi
	sed -i 's/\(libncurses\)/\1w/g' configure
}
