--- wine-1.7.19-r1.ebuild 2014-06-18 21:31:05.000000000 +0200 +++ wine-1.7.19-r2.ebuild 2014-10-05 00:05:51.663063076 +0200 @@ -28,4 +28,6 @@ WINE_GENTOO="wine-gentoo-2013.06.24" +GSTREAMERV="1.7.12" +GSTREAMER_PATCHES="wine-gstreamer-patches-${GSTREAMERV}" DESCRIPTION="Free implementation of Windows(tm) on Unix" HOMEPAGE="http://www.winehq.org/" SRC_URI="${SRC_URI} @@ -35,4 +37,5 @@ abi_x86_32? ( mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86.msi ) abi_x86_64? ( mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86_64.msi ) ) + gstreamer? ( https://googledrive.com/host/0BwvWj1tAgHFpcmMwY1hsbUo3Nk0 -> ${GSTREAMER_PATCHES}.tar.xz ) mono? ( mirror://sourceforge/${PN}/Wine%20Mono/${MV}/wine-mono-${MV}.msi ) @@ -292,4 +295,5 @@ unpack ${MY_P}.tar.bz2 fi + use gstreamer && unpack "${GSTREAMER_PATCHES}.tar.xz" use pulseaudio && unpack "${PULSE_PATCHES}.tar.bz2" @@ -314,6 +318,13 @@ "${FILESDIR}"/${PN}-1.7.12-osmesa-check.patch #429386 "${FILESDIR}"/${PN}-1.6-memset-O3.patch #480508 ) + if use gstreamer; then + # See http://bugs.winehq.org/show_bug.cgi?id=30557 + ewarn "Applying experimental patch to fix GStreamer support. Note that" + ewarn "this patch has been reported to cause crashes in certain games." + + PATCHES+=( "../${GSTREAMER_PATCHES}"/*.patch ) + fi use pulseaudio && PATCHES+=( "../${PULSE_PATCHES}"/*.patch #421365 )