From 0020f4dd4aa53bdb7902cf0d8bbd77347afe56a2 Mon Sep 17 00:00:00 2001 From: Andrea Brancaleoni Date: Mon, 15 Jun 2015 19:06:15 +0200 Subject: [PATCH] wine: added d3d9 patchset --- srcpkgs/wine/template | 28 ++++++++++++++++++++++------ 1 file changed, 22 insertions(+), 6 deletions(-) diff --git a/srcpkgs/wine/template b/srcpkgs/wine/template index 24485203ee5..5e4b5784fc6 100644 --- a/srcpkgs/wine/template +++ b/srcpkgs/wine/template @@ -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