Added wine ebuild which incl. pulseaudio driver
This commit is contained in:
parent
9e8bfc1327
commit
a3a634b24e
7
app-emulation/wine/Manifest
Normal file
7
app-emulation/wine/Manifest
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
AUX pulseaudio.patch 99783 RMD160 667509a570bd422d8b7c390451294bb47902289d SHA1 4a9c40daede96368f6841e9897047f4464398b14 SHA256 be851e7fc33ef3744a2517a4d185f7a0b969a0edd321af43e63648c71184ed57
|
||||||
|
AUX wine-1.1.15-winegcc.patch 1556 RMD160 ca7e0df0a45507e7d31ed81c5712111b83ed9bfa SHA1 4b155fe7cb5e831b7f92757d52aa1ab12569b232 SHA256 dbd89db561d7583faf317d795b8c11231575d885e21c6414add39079604dbd0d
|
||||||
|
AUX wine-1.4_rc2-multilib-portage.patch 1256 RMD160 6445df9cc97ad523f54de256f37810366a0693fd SHA1 8d0d794f74952a53d38c75a8cb586f784a3b9357 SHA256 9d0acd304d11d1bf73f56699754aaa1bfe1facba90648ee330fdbe08d9ff4938
|
||||||
|
DIST wine-1.4.tar.bz2 20035856 RMD160 ee523c4cf15984197487432790c0e5bbba3ec495 SHA1 ce5d56b9b949c01dde663ab39739ffcfb41a73c4 SHA256 99a437bb8bd350bb1499d59183635e58217e73d631379c43cfd0d6020428ee65
|
||||||
|
DIST wine_gecko-1.4-x86.msi 14732288 RMD160 02363538a77a954f2bf1014b28ec1ed8fe2d1b6e SHA1 c30aa99621e98336eb4b7e2074118b8af8ea2ad5 SHA256 b30e0ac29a91a6fc40c73b5b760a56360a1d5323282545e32efaa40c75d8986d
|
||||||
|
DIST wine_gecko-1.4-x86_64.msi 14980096 RMD160 5613e27d474085c31b53c868ed020445bdee37ae SHA1 bf0aaf56a8cf9abd75be02b56b05e5c4e9a4df93 SHA256 ceab7f1866e85175ed4cd3b5d081ee4f77c8d32ac7adf489a19c1f7329187219
|
||||||
|
EBUILD wine-1.4.ebuild 6236 RMD160 aea6af88d59cfcb02d72c1194a85b26d59fd40a4 SHA1 c03b0d215b10f4d5f6230796a9becf2925693f49 SHA256 8e6ed9bdaa8ff6f89d72f0eccc580a689fbc8aae8692c481893a1a5aa307cea4
|
3131
app-emulation/wine/files/pulseaudio.patch
Normal file
3131
app-emulation/wine/files/pulseaudio.patch
Normal file
File diff suppressed because it is too large
Load Diff
55
app-emulation/wine/files/wine-1.1.15-winegcc.patch
Normal file
55
app-emulation/wine/files/wine-1.1.15-winegcc.patch
Normal file
@ -0,0 +1,55 @@
|
|||||||
|
http://bugs.gentoo.org/260726
|
||||||
|
|
||||||
|
--- wine-1.1.15/tools/winegcc/winegcc.c
|
||||||
|
+++ wine-1.1.15/tools/winegcc/winegcc.c
|
||||||
|
@@ -215,10 +215,13 @@
|
||||||
|
strarray* files;
|
||||||
|
};
|
||||||
|
|
||||||
|
+#undef FORCE_POINTER_SIZE
|
||||||
|
#ifdef __i386__
|
||||||
|
static const enum target_cpu build_cpu = CPU_x86;
|
||||||
|
+#define FORCE_POINTER_SIZE
|
||||||
|
#elif defined(__x86_64__)
|
||||||
|
static const enum target_cpu build_cpu = CPU_x86_64;
|
||||||
|
+#define FORCE_POINTER_SIZE
|
||||||
|
#elif defined(__sparc__)
|
||||||
|
static const enum target_cpu build_cpu = CPU_SPARC;
|
||||||
|
#elif defined(__ALPHA__)
|
||||||
|
@@ -968,6 +971,9 @@
|
||||||
|
opts.linker_args = strarray_alloc();
|
||||||
|
opts.compiler_args = strarray_alloc();
|
||||||
|
opts.winebuild_args = strarray_alloc();
|
||||||
|
+#ifdef FORCE_POINTER_SIZE
|
||||||
|
+ opts.force_pointer_size = sizeof(size_t);
|
||||||
|
+#endif
|
||||||
|
|
||||||
|
/* determine the processor type */
|
||||||
|
if (strendswith(argv[0], "winecpp")) opts.processor = proc_cpp;
|
||||||
|
--- wine-1.1.15/tools/winebuild/main.c
|
||||||
|
+++ wine-1.1.15/tools/winebuild/main.c
|
||||||
|
@@ -50,10 +50,13 @@
|
||||||
|
int link_ext_symbols = 0;
|
||||||
|
int force_pointer_size = 0;
|
||||||
|
|
||||||
|
+#undef FORCE_POINTER_SIZE
|
||||||
|
#ifdef __i386__
|
||||||
|
enum target_cpu target_cpu = CPU_x86;
|
||||||
|
+#define FORCE_POINTER_SIZE
|
||||||
|
#elif defined(__x86_64__)
|
||||||
|
enum target_cpu target_cpu = CPU_x86_64;
|
||||||
|
+#define FORCE_POINTER_SIZE
|
||||||
|
#elif defined(__sparc__)
|
||||||
|
enum target_cpu target_cpu = CPU_SPARC;
|
||||||
|
#elif defined(__ALPHA__)
|
||||||
|
@@ -574,6 +577,10 @@
|
||||||
|
signal( SIGTERM, exit_on_signal );
|
||||||
|
signal( SIGINT, exit_on_signal );
|
||||||
|
|
||||||
|
+#ifdef FORCE_POINTER_SIZE
|
||||||
|
+ force_pointer_size = sizeof(size_t);
|
||||||
|
+#endif
|
||||||
|
+
|
||||||
|
output_file = stdout;
|
||||||
|
argv = parse_options( argc, argv, spec );
|
||||||
|
|
40
app-emulation/wine/files/wine-1.4_rc2-multilib-portage.patch
Normal file
40
app-emulation/wine/files/wine-1.4_rc2-multilib-portage.patch
Normal file
@ -0,0 +1,40 @@
|
|||||||
|
https://bugs.gentoo.org/show_bug.cgi?id=395615
|
||||||
|
|
||||||
|
Explicitly add the required -m32/m64 to *FLAGS; this overrides any
|
||||||
|
arch-specific -m* flags that may have been appended by multilib-portage.
|
||||||
|
|
||||||
|
Even though -m32/m64 is now added to *FLAGS, -m32/m64 still has to be
|
||||||
|
explicitly added to CC and CXX due to wine's build system. For example,
|
||||||
|
winegcc saves the build-time value of CC and uses it at runtime.
|
||||||
|
|
||||||
|
--- a/configure.ac
|
||||||
|
+++ b/configure.ac
|
||||||
|
@@ -133,12 +133,18 @@
|
||||||
|
then
|
||||||
|
CC="$CC -m64"
|
||||||
|
CXX="$CXX -m64"
|
||||||
|
+ CFLAGS="$CFLAGS -m64"
|
||||||
|
+ LDFLAGS="$LDFLAGS -m64"
|
||||||
|
+ CXXFLAGS="$CXXFLAGS -m64"
|
||||||
|
host_cpu="x86_64"
|
||||||
|
notice_platform="64-bit "
|
||||||
|
AC_SUBST(TARGETFLAGS,"-m64")
|
||||||
|
else
|
||||||
|
CC="$CC -m32"
|
||||||
|
CXX="$CXX -m32"
|
||||||
|
+ CFLAGS="$CFLAGS -m32"
|
||||||
|
+ LDFLAGS="$LDFLAGS -m32"
|
||||||
|
+ CXXFLAGS="$CXXFLAGS -m32"
|
||||||
|
host_cpu="i386"
|
||||||
|
notice_platform="32-bit "
|
||||||
|
AC_SUBST(TARGETFLAGS,"-m32")
|
||||||
|
@@ -150,6 +156,9 @@
|
||||||
|
then
|
||||||
|
CC="$CC -m32"
|
||||||
|
CXX="$CXX -m32"
|
||||||
|
+ CFLAGS="$CFLAGS -m32"
|
||||||
|
+ LDFLAGS="$LDFLAGS -m32"
|
||||||
|
+ CXXFLAGS="$CXXFLAGS -m32"
|
||||||
|
AC_MSG_CHECKING([whether $CC works])
|
||||||
|
AC_LINK_IFELSE([AC_LANG_PROGRAM()],AC_MSG_RESULT([yes]),
|
||||||
|
[AC_MSG_RESULT([no])
|
232
app-emulation/wine/wine-1.4.ebuild
Normal file
232
app-emulation/wine/wine-1.4.ebuild
Normal file
@ -0,0 +1,232 @@
|
|||||||
|
# Copyright 1999-2012 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
# $Header: /var/cvsroot/gentoo-x86/app-emulation/wine/wine-1.4.ebuild,v 1.1 2012/03/07 23:49:32 tetromino Exp $
|
||||||
|
|
||||||
|
EAPI="4"
|
||||||
|
|
||||||
|
inherit autotools eutils flag-o-matic multilib pax-utils
|
||||||
|
|
||||||
|
if [[ ${PV} == "9999" ]] ; then
|
||||||
|
EGIT_REPO_URI="git://source.winehq.org/git/wine.git"
|
||||||
|
inherit git-2
|
||||||
|
SRC_URI=""
|
||||||
|
#KEYWORDS=""
|
||||||
|
else
|
||||||
|
MY_P="${PN}-${PV/_/-}"
|
||||||
|
SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.bz2"
|
||||||
|
KEYWORDS="-* ~amd64 ~x86 ~x86-fbsd"
|
||||||
|
S=${WORKDIR}/${MY_P}
|
||||||
|
fi
|
||||||
|
|
||||||
|
GV="1.4"
|
||||||
|
DESCRIPTION="free implementation of Windows(tm) on Unix"
|
||||||
|
HOMEPAGE="http://www.winehq.org/"
|
||||||
|
SRC_URI="${SRC_URI}
|
||||||
|
gecko? (
|
||||||
|
mirror://sourceforge/wine/wine_gecko-${GV}-x86.msi
|
||||||
|
win64? ( mirror://sourceforge/wine/wine_gecko-${GV}-x86_64.msi )
|
||||||
|
)"
|
||||||
|
|
||||||
|
LICENSE="LGPL-2.1"
|
||||||
|
SLOT="0"
|
||||||
|
IUSE="alsa capi cups custom-cflags elibc_glibc fontconfig +gecko gnutls gphoto2
|
||||||
|
gsm gstreamer hardened jpeg lcms ldap mp3 ncurses nls odbc openal opencl +opengl
|
||||||
|
+oss +perl png pulseaudio samba scanner selinux ssl test +threads +truetype udisks v4l +win32 +win64 +X xcomposite xinerama xml"
|
||||||
|
REQUIRED_USE="elibc_glibc? ( threads )" #286560
|
||||||
|
RESTRICT="test" #72375
|
||||||
|
|
||||||
|
MLIB_DEPS="amd64? (
|
||||||
|
truetype? ( >=app-emulation/emul-linux-x86-xlibs-2.1 )
|
||||||
|
X? (
|
||||||
|
>=app-emulation/emul-linux-x86-xlibs-2.1
|
||||||
|
>=app-emulation/emul-linux-x86-soundlibs-2.1
|
||||||
|
)
|
||||||
|
mp3? ( app-emulation/emul-linux-x86-soundlibs )
|
||||||
|
odbc? ( app-emulation/emul-linux-x86-db )
|
||||||
|
openal? ( app-emulation/emul-linux-x86-sdl )
|
||||||
|
opengl? ( app-emulation/emul-linux-x86-opengl )
|
||||||
|
scanner? ( app-emulation/emul-linux-x86-medialibs )
|
||||||
|
v4l? ( app-emulation/emul-linux-x86-medialibs )
|
||||||
|
app-emulation/emul-linux-x86-baselibs
|
||||||
|
>=sys-kernel/linux-headers-2.6
|
||||||
|
)"
|
||||||
|
RDEPEND="truetype? ( >=media-libs/freetype-2.0.0 media-fonts/corefonts )
|
||||||
|
perl? ( dev-lang/perl dev-perl/XML-Simple )
|
||||||
|
capi? ( net-dialup/capi4k-utils )
|
||||||
|
ncurses? ( >=sys-libs/ncurses-5.2 )
|
||||||
|
fontconfig? ( media-libs/fontconfig )
|
||||||
|
gphoto2? ( media-libs/libgphoto2 )
|
||||||
|
openal? ( media-libs/openal )
|
||||||
|
udisks? (
|
||||||
|
sys-apps/dbus
|
||||||
|
sys-fs/udisks
|
||||||
|
)
|
||||||
|
gnutls? ( net-libs/gnutls )
|
||||||
|
gstreamer? ( media-libs/gstreamer media-libs/gst-plugins-base )
|
||||||
|
X? (
|
||||||
|
x11-libs/libXcursor
|
||||||
|
x11-libs/libXrandr
|
||||||
|
x11-libs/libXi
|
||||||
|
x11-libs/libXmu
|
||||||
|
x11-libs/libXxf86vm
|
||||||
|
x11-apps/xmessage
|
||||||
|
)
|
||||||
|
xinerama? ( x11-libs/libXinerama )
|
||||||
|
alsa? ( media-libs/alsa-lib )
|
||||||
|
cups? ( net-print/cups )
|
||||||
|
opencl? ( virtual/opencl )
|
||||||
|
opengl? ( virtual/opengl )
|
||||||
|
gsm? ( media-sound/gsm )
|
||||||
|
jpeg? ( virtual/jpeg )
|
||||||
|
ldap? ( net-nds/openldap )
|
||||||
|
lcms? ( =media-libs/lcms-1* )
|
||||||
|
mp3? ( >=media-sound/mpg123-1.5.0 )
|
||||||
|
nls? ( sys-devel/gettext )
|
||||||
|
odbc? ( dev-db/unixODBC )
|
||||||
|
samba? ( >=net-fs/samba-3.0.25 )
|
||||||
|
selinux? ( sec-policy/selinux-wine )
|
||||||
|
xml? ( dev-libs/libxml2 dev-libs/libxslt )
|
||||||
|
scanner? ( media-gfx/sane-backends )
|
||||||
|
ssl? ( dev-libs/openssl )
|
||||||
|
png? ( media-libs/libpng )
|
||||||
|
v4l? ( media-libs/libv4l )
|
||||||
|
!win64? ( ${MLIB_DEPS} )
|
||||||
|
win32? ( ${MLIB_DEPS} )
|
||||||
|
xcomposite? ( x11-libs/libXcomposite )
|
||||||
|
pulseaudio? ( media-sound/pulseaudio )"
|
||||||
|
DEPEND="${RDEPEND}
|
||||||
|
X? (
|
||||||
|
x11-proto/inputproto
|
||||||
|
x11-proto/xextproto
|
||||||
|
x11-proto/xf86vidmodeproto
|
||||||
|
)
|
||||||
|
xinerama? ( x11-proto/xineramaproto )
|
||||||
|
!hardened? ( sys-devel/prelink )
|
||||||
|
dev-util/pkgconfig
|
||||||
|
virtual/yacc
|
||||||
|
sys-devel/flex"
|
||||||
|
|
||||||
|
src_unpack() {
|
||||||
|
if use win64 ; then
|
||||||
|
[[ $(( $(gcc-major-version) * 100 + $(gcc-minor-version) )) -lt 404 ]] \
|
||||||
|
&& die "you need gcc-4.4+ to build 64bit wine"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if use win32 && use opencl; then
|
||||||
|
[[ x$(eselect opencl show) = "xintel" ]] &&
|
||||||
|
die "Cannot build wine[opencl,win32]: intel-ocl-sdk is 64-bit only" # 403947
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [[ ${PV} == "9999" ]] ; then
|
||||||
|
git-2_src_unpack
|
||||||
|
else
|
||||||
|
unpack ${MY_P}.tar.bz2
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
epatch "${FILESDIR}"/${PN}-1.1.15-winegcc.patch #260726
|
||||||
|
epatch "${FILESDIR}"/${PN}-1.4_rc2-multilib-portage.patch #395615
|
||||||
|
epatch "${FILESDIR}"/pulseaudio.patch
|
||||||
|
epatch_user #282735
|
||||||
|
eautoreconf
|
||||||
|
sed -i '/^UPDATE_DESKTOP_DATABASE/s:=.*:=true:' tools/Makefile.in || die
|
||||||
|
sed -i '/^MimeType/d' tools/wine.desktop || die #117785
|
||||||
|
}
|
||||||
|
|
||||||
|
do_configure() {
|
||||||
|
local builddir="${WORKDIR}/wine$1"
|
||||||
|
mkdir -p "${builddir}"
|
||||||
|
pushd "${builddir}" >/dev/null
|
||||||
|
|
||||||
|
ECONF_SOURCE=${S} \
|
||||||
|
econf \
|
||||||
|
--sysconfdir=/etc/wine \
|
||||||
|
$(use_with alsa) \
|
||||||
|
$(use_with capi) \
|
||||||
|
$(use_with lcms cms) \
|
||||||
|
$(use_with cups) \
|
||||||
|
$(use_with ncurses curses) \
|
||||||
|
$(use_with udisks dbus) \
|
||||||
|
$(use_with fontconfig) \
|
||||||
|
$(use_with gnutls) \
|
||||||
|
$(use_with gphoto2 gphoto) \
|
||||||
|
$(use_with gsm) \
|
||||||
|
$(use_with gstreamer) \
|
||||||
|
--without-hal \
|
||||||
|
$(use_with jpeg) \
|
||||||
|
$(use_with ldap) \
|
||||||
|
$(use_with mp3 mpg123) \
|
||||||
|
$(use_with nls gettext) \
|
||||||
|
$(use_with openal) \
|
||||||
|
$(use_with opencl) \
|
||||||
|
$(use_with opengl) \
|
||||||
|
$(use_with ssl openssl) \
|
||||||
|
$(use_with oss) \
|
||||||
|
$(use_with png) \
|
||||||
|
$(use_with pulseaudio) \
|
||||||
|
$(use_with threads pthread) \
|
||||||
|
$(use_with scanner sane) \
|
||||||
|
$(use_enable test tests) \
|
||||||
|
$(use_with truetype freetype) \
|
||||||
|
$(use_with v4l) \
|
||||||
|
$(use_with X x) \
|
||||||
|
$(use_with xcomposite) \
|
||||||
|
$(use_with xinerama) \
|
||||||
|
$(use_with xml) \
|
||||||
|
$(use_with xml xslt) \
|
||||||
|
$2
|
||||||
|
|
||||||
|
emake -j1 depend
|
||||||
|
|
||||||
|
popd >/dev/null
|
||||||
|
}
|
||||||
|
|
||||||
|
src_configure() {
|
||||||
|
export LDCONFIG=/bin/true
|
||||||
|
use custom-cflags || strip-flags
|
||||||
|
|
||||||
|
if use win64 ; then
|
||||||
|
do_configure 64 --enable-win64
|
||||||
|
use win32 && ABI=x86 do_configure 32 --with-wine64=../wine64
|
||||||
|
else
|
||||||
|
ABI=x86 do_configure 32 --disable-win64
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
src_compile() {
|
||||||
|
local b
|
||||||
|
for b in 64 32 ; do
|
||||||
|
local builddir="${WORKDIR}/wine${b}"
|
||||||
|
[[ -d ${builddir} ]] || continue
|
||||||
|
emake -C "${builddir}" all
|
||||||
|
done
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
local b
|
||||||
|
for b in 64 32 ; do
|
||||||
|
local builddir="${WORKDIR}/wine${b}"
|
||||||
|
[[ -d ${builddir} ]] || continue
|
||||||
|
emake -C "${builddir}" install DESTDIR="${D}"
|
||||||
|
done
|
||||||
|
dodoc ANNOUNCE AUTHORS README
|
||||||
|
if use gecko ; then
|
||||||
|
insinto /usr/share/wine/gecko
|
||||||
|
doins "${DISTDIR}"/wine_gecko-${GV}-x86.msi
|
||||||
|
use win64 && doins "${DISTDIR}"/wine_gecko-${GV}-x86_64.msi
|
||||||
|
fi
|
||||||
|
if ! use perl ; then
|
||||||
|
rm "${D}"usr/bin/{wine{dump,maker},function_grep.pl} "${D}"usr/share/man/man1/wine{dump,maker}.1 || die
|
||||||
|
fi
|
||||||
|
|
||||||
|
if use win32 || ! use win64; then
|
||||||
|
pax-mark psmr "${D}"usr/bin/wine{,-preloader} #255055
|
||||||
|
fi
|
||||||
|
use win64 && pax-mark psmr "${D}"usr/bin/wine64{,-preloader}
|
||||||
|
|
||||||
|
if use win64 && ! use win32; then
|
||||||
|
dosym /usr/bin/wine{64,} # 404331
|
||||||
|
dosym /usr/bin/wine{64,}-preloader
|
||||||
|
fi
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user