# $Id$ PNAME="wine" PVER="1.7.55" PBUILD="r1" PCAT="app-emulation" DESCRIPTION="Wine is an Open Source implementation of the Windows API on top of X and Unix." HOMEPAGE="http://www.winehq.com/" # todo: # libgphoto2, capi, gsm, jack, mpg123, sane, openldap DEPEND=">= virtual/opengl >= media-libs/glu-9 >= x11-libs/libXcursor-1.1 >= x11-libs/libXrandr-1.3 >= x11-libs/libXext-1.3 >= x11-libs/libXi-1.7 >= x11-libs/libXmu-1.1 >= x11-libs/libXxf86vm-1.1 >= x11-libs/libXinerama-1.1 >= x11-libs/libXcomposite-0.4.4 >= x11-apps/xmessage-1 >= media-libs/lcms2-2.7 >= media-libs/alsa-lib-1.0.29 >= media-libs/freetype-2.6 >= media-libs/fontconfig-2.11 >= media-libs/libjpeg-8 >= media-libs/libpng-1.5 >= media-libs/openal-1.16 >= media-libs/libv4l-1.8 >= media-libs/gstreamer0.10-0.10 >= media-libs/gstreamer0.10-plugins-base-0.10 >= media-sound/libpulse-6.0 >= media-sound/mpg123-1.21 >= dev-libs/libxslt-1.1.26 >= dev-libs/libxml2-2.9 >= dev-libs/openssl-1.0.2 >= dev-lang/perl-5.22 >= dev-perl/xml-simple-2.20 >= sys-apps/dbus-1.10 >= sys-fs/udisks2-2.1 >= sys-libs/ncurses-5.9 >= media-fonts/corefonts-2 >= net-print/libcups-2.0 >= net-fs/samba-4.3 >= app-crypt/gnutls-3.4" SDEPEND=">= sys-dev/bison-2.7 >= sys-dev/flex-2.5.35 >= sys-dev/gettext-0.18" SRCFILE="${PNAME}-${PVER}.tar.bz2" SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" # no check supported msetfeature "!check" sminclude mbuild multilib fdo-mime # only build for 32bit abi export MULTILIB_ABIS="m32" SRC_URI=( sourceforge://${PNAME}/${SRCFILE} mirror://${PNAME}/${SRCFILE} ) UP2TARBALL="${PNAME}" UP2DATE="updatecmd_sourceforge ${PNAME} Source" src_compile() { #export LDCONFIG=/bin/true # fixme: $ORIGIN seems to be broken in glibc # see: http://bugs.gentoo.org/show_bug.cgi?format=multiple&id=225925 #export LD_LIBRARY_PATH=${SRCDIR}/libs/wine mconfigure \ --sysconfdir=/etc/wine \ --disable-tests \ --disable-win64 \ --with-pthread \ --with-alsa \ --with-cms \ --with-cups \ --with-curses \ --with-dbus \ --with-fontconfig \ --with-freetype \ --with-gnutls \ --with-gstreamer \ --with-gettext \ --with-jpeg \ --with-mpg123 \ --with-openal \ --with-opengl \ --with-openssl \ --with-png \ --with-pulse \ --with-v4l \ --with-x \ --with-xcomposite \ --with-xinerama \ --with-xml \ --with-xslt \ \ --without-capi \ --without-gphoto \ --without-gsm \ --without-hal \ --without-ldap \ --without-opencl \ --without-oss \ --without-sane \ || die mmake -j1 depend || die mmake all || die } src_install() { mmake DESTDIR=${BINDIR} install || die # allow users to launch win32 programs by just clicking on the .exe file minstalldir /etc/binfmt.d || die MCONFIG="/etc/binfmt.d/wine.conf" mclearconfig || die maddconfig '# Pre-PE Windows Executables' maddconfig ':windows:M::MZ::/usr/bin/wine:' maddconfig '# PE Windows Executables' maddconfig ':windowsPE:M::PE::/usr/bin/wine:' minstalldocs ANNOUNCE AUTHORS COPYING* LICENSE* README VERSION || die } postinstall() { fdo-mime_update_desktop_db } postremove() { fdo-mime_update_desktop_db }