# $Header: /magellan-cvs/smage/wine/wine-1.0-r2.smage2,v 1.1 2008/08/13 18:33:45 niro Exp $ PNAME="wine" PVER="1.0" PBUILD="r2" PCATEGORIE="app-emulation" STATE="unstable" DESCRIPTION="Wine is an Open Source implementation of the Windows API on top of X and Unix." HOMEPAGE="http://www.winehq.com/" DEPEND=">= virtual/opengl >= x11-libs/libXcursor-1 >= x11-libs/libXrandr-1 >= x11-libs/libXi-1 >= x11-libs/libXmu-1 >= x11-libs/libXxf86vm-1 >= x11-apps/xmessage-1 >= media-libs/lcms-1.17 >= media-libs/alsa-lib-1.0.16 >= dev-libs/libxslt-1.1.22 >= dev-libs/libxml2-2.6.31 >= dev-libs/libusb-0.1.12 >= sys-apps/dbus-1.1 >= dev-libs/dbus-glib-0.74 >= sys-apps/hal-0.5.10 >= media-fonts/corefonts-1 >= media-gfx/fontforge-2008" SDEPEND=">= x11-proto/inputproto-1 >= x11-proto/xextproto-1 >= x11-proto/xf86vidmodeproto-1 >= sys-dev/bison-2 >= sys-dev/flex-2.5.33" SRCFILE="${PNAME}-${PVER}.tar.bz2" SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" sminclude mbuild # # FixMe: wine needs wine to compile successfully! # sfnt2fnt does not run without libwine and the LDPATH seems to be wrong! # # maybe we need newer binutils which handle ORIGIN correctly # -> fix targeted for mage090 branch # SRC_URI=( sourceforge://${PNAME}/${SRCFILE} mirror://${PNAME}/${SRCFILE} ) src_compile() { cd ${SRCDIR} 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 --enable-opengl || die mmake -j1 depend || die mmake all || die }