-# Copyright 1999-2009 Gentoo Foundation
+# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
-inherit versionator
+inherit versionator flag-o-matic
MY_P="${PN}-$(replace_version_separator 2 '-')"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
-IUSE=""
+IUSE="mmx sse"
+
+DEPEND="media-libs/libsdl
+ media-libs/alsa-lib"
+RDEPEND="${DEPEND}"
S=${WORKDIR}/${MY_P}
+src_compile() {
+ use sse && append-flags -DSSE
+ use mmx && append-flags -DMMX
+ econf
+ emake || die "emake failed"
+}
+
src_install() {
emake DESTDIR="${D}" install || die "emake install failed"
}