wine: added d3d9 patchset

This commit is contained in:
Andrea Brancaleoni 2015-06-15 19:06:15 +02:00
parent ee801f6071
commit 0020f4dd4a

View file

@ -1,7 +1,7 @@
# Template file for 'wine'
pkgname=wine
version=1.7.45
revision=1
revision=2
build_style=gnu-configure
configure_args="--without-gstreamer"
short_desc="Run Microsoft Windows applications"
@ -27,21 +27,37 @@ makedepends="gettext-devel lcms2-devel zlib-devel ncurses-devel
depends="libXi libXinerama libXcomposite libXcursor libOSMesa
desktop-file-utils hicolor-icon-theme liberation-fonts-ttf"
build_options="staging"
build_options="staging d3d9"
desc_option_staging="Enable wine-staging patchset"
desc_option_d3d9="Enable d3d9 state tracker patchset"
build_options_default="staging"
if [ ${build_option_staging} ]; then
if [ ${build_option_staging} ] || [ ${build_option_d3d9} ]; then
hostmakedepends+=" automake"
fi
if [ ${build_option_staging} ]; then
makedepends+=" pulseaudio-devel"
distfiles+=" https://github.com/wine-compholio/${pkgname}-staging/archive/v${version}.tar.gz"
checksum+=" 06180e1189e8669892e8b3d640810306b0310c508842272eccc65034534e9411"
fi
post_extract() {
if [ ${build_option_d3d9} ]; then
distfiles+=" https://github.com/NP-Hardass/wine-d3d9-patches/archive/wine-d3d9-${version}.tar.gz"
checksum+=" 3f33e48ee0c661f59e91bf2156fb954aa4d240b930c40f2530547b2959783011"
configure_args+=" --with-d3dadapter"
fi
post_extract() {
if [ ${build_option_d3d9} ]; then
patch -p1 < ${XBPS_BUILDDIR}/wine-d3d9-patches-wine-d3d9-${version}/wine-d3d9.patch
autoreconf -f
fi
if [ ${build_option_staging} ]; then
cd ${XBPS_BUILDDIR}/${pkgname}-staging-${version}/patches/
DESTDIR="$wrksrc" ./patchinstall.sh --all
}
fi
fi
}
post_install() {
# Font aliasing settings for Win32 applications