--- /home/davide/download/gentoo/ebuilds/bugs.gentoo.org/games-fps/uhexen2-1.3.0.ebuild 2005-11-07 19:12:13.904116624 +0100 +++ /usr/local/portage/games-fps/uhexen2/uhexen2-1.3.0.ebuild 2005-11-14 23:01:28.000000000 +0100 @@ -10,7 +10,7 @@ LICENSE="GPL-2" SLOT="0" -KEYWORDS="~x86" +KEYWORDS="~x86 ~amd64" IUSE="alsa opengl timidity" @@ -19,7 +19,9 @@ virtual/x11 alsa? ( >=media-libs/alsa-lib-1.0.7 ) opengl? ( virtual/opengl ) - timidity? ( media-sound/timidity++ )" + timidity? ( media-sound/timidity++ ) + amd64? ( >=app-emulation/emul-linux-x86-sdl-2.1 )" + DEPEND="${RDEPEND} >=dev-lang/nasm-0.98.38" @@ -33,6 +35,18 @@ GLPREFIX="" use opengl && GLPREFIX="gl" +pkg_setup () { + if use amd64; then + if has_multilib_profile ; then + export ABI=x86 + else + append-flags -m32 + append-ldflags -m32 + fi + fi +} + + src_unpack() { unpack ${A} @@ -107,7 +121,7 @@ einfo "Example command-line:" einfo "hexen2 -fullscreen -sndalsa -fsaa 4 -sndspeed 44100 -nocdaudio" einfo "" - einfo "You may need to patch the data files to version 1.1 using 'update_sh' in" + einfo "You may need to patch the data files to version 1.1 using 'update_h2' in" einfo "http://prdownloads.sourceforge.net/uhexen2/hexen2-1.3.0-linux.i586.tgz" games_pkg_postinst